From e2d6acb92fa3a1611867e443e2c18a58efa7c1b4 Mon Sep 17 00:00:00 2001 From: taylor Date: Mon, 14 Oct 2024 00:20:04 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0chatgpt=20chat=20api?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/thrid_platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot_llmplus/thrid_platform.py b/maubot_llmplus/thrid_platform.py index f6cd84d..2003b5c 100644 --- a/maubot_llmplus/thrid_platform.py +++ b/maubot_llmplus/thrid_platform.py @@ -26,7 +26,7 @@ class OpenAi(Platform): headers = { "Content-Type": "application/json", - "Authorization": f"Bearer {self.config['gpt_api_key']}" + "Authorization": f"Bearer {self.api_key}" } data = { "model": self.model,