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