mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix openai api_url
This commit is contained in:
@@ -16,6 +16,7 @@ class OpenAi:
|
|||||||
self._api_key = api_key
|
self._api_key = api_key
|
||||||
self._api_url = api_url
|
self._api_url = api_url
|
||||||
openai.api_base = self._api_url + "/v1"
|
openai.api_base = self._api_url + "/v1"
|
||||||
|
openai.api_key = self._api_key
|
||||||
|
|
||||||
def get_state(self) -> bool:
|
def get_state(self) -> bool:
|
||||||
return True if self._api_key else False
|
return True if self._api_key else False
|
||||||
|
|||||||
Reference in New Issue
Block a user