Commit 084a4fdf by JustSong

refactor: rename function

parent 39949aa2
......@@ -13,7 +13,7 @@ import (
"strings"
)
func relayHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
channelType := c.GetInt("channel")
tokenId := c.GetInt("token_id")
consumeQuota := c.GetBool("consume_quota")
......
......@@ -108,7 +108,7 @@ func Relay(c *gin.Context) {
case RelayModeImagesGenerations:
err = relayImageHelper(c, relayMode)
default:
err = relayHelper(c, relayMode)
err = relayTextHelper(c, relayMode)
}
if err != nil {
if err.StatusCode == http.StatusTooManyRequests {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment