From 987552558a1472d287d07950193fcff605f28e93 Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 11 Aug 2023 14:39:04 +0800 Subject: [PATCH] fix openai api_url --- app/plugins/chatgpt/openai.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/plugins/chatgpt/openai.py b/app/plugins/chatgpt/openai.py index ac8ac404..4108c43a 100644 --- a/app/plugins/chatgpt/openai.py +++ b/app/plugins/chatgpt/openai.py @@ -16,6 +16,7 @@ class OpenAi: self._api_key = api_key self._api_url = api_url openai.api_base = self._api_url + "/v1" + openai.api_key = self._api_key def get_state(self) -> bool: return True if self._api_key else False