This commit is contained in:
Nicolas Mowen 2026-03-23 10:04:43 -06:00
parent e6be843923
commit 9bd430216e

View File

@ -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