From 3b568bd33c5cdbad990d6b16f424685b0e03d8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E4=BC=9F=E6=B4=B2?= Date: Mon, 15 Apr 2024 14:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20request=20error=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot/AI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot/AI.py b/robot/AI.py index 0730d2b7..a860829e 100644 --- a/robot/AI.py +++ b/robot/AI.py @@ -298,10 +298,10 @@ def stream_chat(self, texts): header = { "Content-Type": "application/json", - # "Authorization": "Bearer " + self.openai.api_key, + # "Authorization": "Bearer " + self.openai.api_key } if self.provider == 'openai': - header['Authorization'] = "Bearer " + self.openai.api_key, + header['Authorization'] = "Bearer " + self.openai.api_key elif self.provider == 'azure': header['api-key'] = self.openai.api_key else: