Skip to content

Conversation

@arsaboo
Copy link

@arsaboo arsaboo commented Dec 6, 2025

Introduce Pydantic models for structured output schemas related to recipes and nutrition information.

Implement validation functions to ensure responses from the AI conform to these schemas, enhancing response integrity and usability. Update response formats in API requests to utilize the new schemas.

Fixes #4246

@CLAassistant
Copy link

CLAassistant commented Dec 6, 2025

CLA assistant check
All committers have signed the CLA.

@arsaboo
Copy link
Author

arsaboo commented Dec 6, 2025

@vabene1111 would love for you to test this approach out. I think recipes will be more reliable with such structured outputs in the long run.

@vabene1111
Copy link
Collaborator

interesting approach, looks good on first glance. Currently not much time but will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

AI import with Ollama does not work (json.decoder.JSONDecodeError)

3 participants