mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Cleanup
This commit is contained in:
parent
e6be843923
commit
9bd430216e
@ -54,9 +54,7 @@ class OllamaClient(GenAIClient):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _clean_schema_for_ollama(
|
def _clean_schema_for_ollama(schema: dict, *, _is_properties: bool = False) -> dict:
|
||||||
schema: dict, *, _is_properties: bool = False
|
|
||||||
) -> dict:
|
|
||||||
"""Strip Pydantic metadata from a JSON schema for Ollama compatibility.
|
"""Strip Pydantic metadata from a JSON schema for Ollama compatibility.
|
||||||
|
|
||||||
Ollama's grammar-based constrained generation works best with minimal
|
Ollama's grammar-based constrained generation works best with minimal
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user