强制使用0613模型

This commit is contained in:
quzard 2023-06-17 10:03:26 +08:00
parent 9d85e8f79d
commit 735fb0c7bd

View File

@ -182,6 +182,12 @@ func relayHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
} else if channelType == common.ChannelTypePaLM {
err := relayPaLM(textRequest, c)
return err
} else {
// 强制使用0613模型
textRequest.Model = strings.TrimSuffix(textRequest.Model, "-0301")
textRequest.Model = strings.TrimSuffix(textRequest.Model, "-0314")
textRequest.Model = strings.TrimSuffix(textRequest.Model, "-0613")
textRequest.Model = textRequest.Model + "-0613"
}
var promptTokens int
switch relayMode {