You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@echo "Generate JSON schema compatible with Ollama..."
@ollama run mistral "Convert this JSON schema to the simplified version supported by Ollama. Do not include description or examples. Do not create new fields. Only work with the JSON: $$(cat $(SCHEMA_FILE))" --format json > ollama_schema.json
@echo "Done!"
schema:
@datamodel-codegen --input-file-type jsonschema \
--output-model-type pydantic_v2.BaseModel \
--use-default \
--reuse-model \
--use-double-quotes \
--input $(SCHEMA_FILE) \
--output opensyndrome/to_be_updated__schema.py
echo "\033[33mDon't forget to check the generated Criterion class.\033[0m"