This commit is contained in:
Nicolas Mowen
2026-03-23 10:04:43 -06:00
parent e6be843923
commit 9bd430216e
+1 -3
View File
@@ -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