mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 20:47:42 +03:00
feat: add openai base_url setting
This commit is contained in:
parent
e373b8adc7
commit
f16f6f95b8
@ -21,6 +21,10 @@ class OpenAIClient(GenAIClient):
|
||||
|
||||
def _init_provider(self):
|
||||
"""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)
|
||||
|
||||
def _send(self, prompt: str, images: list[bytes]) -> Optional[str]:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user