bugfix for #515 最新版本谷歌PaLM模型无法使用
This commit is contained in:
parent
bc7c9105f4
commit
a34c70f5b8
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user