diff --git a/app/plugins/chatgpt/openai.py b/app/plugins/chatgpt/openai.py index e2fd4620..ac8ac404 100644 --- a/app/plugins/chatgpt/openai.py +++ b/app/plugins/chatgpt/openai.py @@ -15,6 +15,7 @@ class OpenAi: def __init__(self, api_key: str = None, api_url: str = None): self._api_key = api_key self._api_url = api_url + openai.api_base = self._api_url + "/v1" def get_state(self) -> bool: return True if self._api_key else False