-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Structured output parsing cutted by ' #27065
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Comments
dosubot
bot
added
the
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
label
Oct 3, 2024
Looks like the quote is giving issues. Can you run another prompt which doesn't return a single quote. For example: |
Sometimes it works the model output
output :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checked other resources
Example Code
output :
Joke(setup='Why don’t cats play poker?', punchline='Why don', rating=7)
Adding
include_raw=True
doesn't solve the issueError Message and Stack Trace (if applicable)
No response
Description
I followed the documentation in order to use structured output with gemini and I end up with outputs being wrongly parsed due to the presence of ' in the text.
System Info
The text was updated successfully, but these errors were encountered: