mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
revert: revert openai base_url setting
This commit is contained in:
parent
cf8ee499f9
commit
263acc0ba6
@ -21,10 +21,6 @@ class OpenAIClient(GenAIClient):
|
|||||||
|
|
||||||
def _init_provider(self):
|
def _init_provider(self):
|
||||||
"""Initialize the client."""
|
"""Initialize the client."""
|
||||||
if self.genai_config.base_url:
|
|
||||||
return OpenAI(
|
|
||||||
api_key=self.genai_config.api_key, base_url=self.genai_config.base_url
|
|
||||||
)
|
|
||||||
return OpenAI(api_key=self.genai_config.api_key)
|
return OpenAI(api_key=self.genai_config.api_key)
|
||||||
|
|
||||||
def _send(self, prompt: str, images: list[bytes]) -> Optional[str]:
|
def _send(self, prompt: str, images: list[bytes]) -> Optional[str]:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user