-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Ask model to try again if it produced a response without text or tool call parts (e.g. only thinking) #2469
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
Ask model to try again if it produced a response without text or tool call parts (e.g. only thinking) #2469
Conversation
@ethanabrooks Thanks, which models have you seen output only thinking with no text or tool calls to follow it? |
e40e7a5
to
a06e745
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ethanabrooks Thanks Ethan, this fix makes sense. Can you please add a test with a simulated thinking-only response using FunctionModel
?
UnexpectedModelBehavior
)de8ae11
to
ee38ed0
Compare
ee38ed0
to
f003b74
Compare
We have seen this with Gemini 2.5 pro. |
@ethanabrooks I made a couple of small tweaks locally, can you please enable the ability for maintainers to push to this branch? :) |
@DouweM I think the opportunity to do this was when I created the PR... unfortunately I may have to close and reopen. |
Issue must have been that the fork was behind a private org. This should work: #2556 |
Fixes #2480