Skip to content

Enable parsing malformed structured generation outputs. #1371

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aymeric-roucher
Copy link
Collaborator

Just putting here @akseljoonas's commits from https://github.com/huggingface/smolagents/pull/1346/files#diff-3efefb79d738090c51049e6ef432ac488c1f8b1ecb2ed2310ceae8e64c114450, to continue this work!

I'd advise to keep it as simple as possible: clearly identify some edge cases, make sure that we do want to fix them (as opposed to just not enabling structured outputs for these providers who don't implement structured outputs properly), then use a fix that's as simple as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant