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