From a34c70f5b864ae576bddd0741b66a66795c96972 Mon Sep 17 00:00:00 2001 From: mylxsw Date: Mon, 6 Nov 2023 15:50:03 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20for=20#515=20=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=B0=B7=E6=AD=8CPaLM=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/relay-text.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/relay-text.go b/controller/relay-text.go index a61c6f7c..830fd24c 100644 --- a/controller/relay-text.go +++ b/controller/relay-text.go @@ -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) }