Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: More Fault Tolerance with OpenAI Schemas #4328

Conversation

michael-genson
Copy link
Collaborator

What type of PR is this?

(REQUIRED)

  • bug

What this PR does / why we need it:

(REQUIRED)

Some LLMs don't properly read our schema. While in general it should be the burden of the model/training-data to handle things correctly, we can be a bit more fault tolerant.

This PR coerces empty strings as a value of "0" for float fields.

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #4327

@andrewgdunn
Copy link

I'll be very excited to provide feedback when this is released. Is there an incremental container build that I could test from this PR?

@michael-genson
Copy link
Collaborator Author

Yes, once this is merged you can try out the nightly branch. More info here: https://docs.mealie.io/documentation/getting-started/installation/installation-checklist/#docker-tags

@hay-kot hay-kot enabled auto-merge (squash) October 12, 2024 00:16
@hay-kot hay-kot merged commit a2bdb02 into mealie-recipes:mealie-next Oct 12, 2024
13 checks passed
@andrewgdunn
Copy link

Can confirm this works with my local instance of ollama now. Sadly though it appears to be less valuable than using NLP or Brute. Is there a place that people are discussing the model performance with mealie parsing?

@michael-genson michael-genson deleted the fix/make-openai-responses-more-fault-tolerant branch October 12, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Parsing with Ollama, "Unable to parse string as a number"
3 participants