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: