bugfix for #515 最新版本谷歌PaLM模型无法使用

This commit is contained in:
mylxsw 2023-11-06 15:50:03 +08:00
parent bc7c9105f4
commit a34c70f5b8

View File

@ -367,6 +367,7 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
}
case APITypeTencent:
req.Header.Set("Authorization", apiKey)
case APITypePaLM:
default:
req.Header.Set("Authorization", "Bearer "+apiKey)
}