fix: open-ai relayText 地址拼接错误

This commit is contained in:
peng zhang 2023-08-01 11:12:05 +08:00
parent 30a7f1a1c7
commit 3307574388

View File

@ -102,7 +102,7 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
apiType = APITypeXunfei
}
baseURL := common.ChannelBaseURLs[channelType]
requestURL := c.Request.URL.String()
requestURL := c.Request.URL.Path
if c.GetString("base_url") != "" {
baseURL = c.GetString("base_url")
}