mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 16:31:14 +03:00
Fix formatting
This commit is contained in:
parent
ba9100b1ff
commit
2ec85a9b2f
@ -106,9 +106,7 @@ class OllamaClient(GenAIClient):
|
|||||||
if response_format and response_format.get("type") == "json_schema":
|
if response_format and response_format.get("type") == "json_schema":
|
||||||
schema = response_format.get("json_schema", {}).get("schema")
|
schema = response_format.get("json_schema", {}).get("schema")
|
||||||
if schema:
|
if schema:
|
||||||
ollama_options["format"] = self._clean_schema_for_ollama(
|
ollama_options["format"] = self._clean_schema_for_ollama(schema)
|
||||||
schema
|
|
||||||
)
|
|
||||||
result = self.provider.generate(
|
result = self.provider.generate(
|
||||||
self.genai_config.model,
|
self.genai_config.model,
|
||||||
prompt,
|
prompt,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user