Repository navigation
Honor reasoning effort for Gemini 3 and 4 - #2300
arnabnandy7 wants to merge 1 commit into
Conversation
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
tschuehly
left a comment
There was a problem hiding this comment.
🤖 On gemini-3.6-flash, withoutThinking().withReasoningEffort(LOW) builds a request with thinkingLevel: LOW and no budget. This model supports turning thinking off, so it should send thinkingBudget: 0 and omit the level. Please handle opt-out before effort on models that can disable thinking, and assert both fields in the built request. Please coordinate with @azanux on the overlapping converter change.
Thanks @tschuehly. I confirmed that @azanux, since #2279 already covers the converter change, could we handle opt-out precedence there? For models that can disable thinking, the request should send |
Fixes #2278
The native Google GenAI converter ignored
LlmOptions.withReasoningEffort, so callers could not lower the thinking level on Gemini 3 and 4.The converter now sends
LOW,MEDIUM, andHIGHasthinkingLevel. Explicit effort takes precedence over request and catalog token budgets, and can be combined with thought extraction. The selected model determines which levels it accepts. Gemini 2.5 continues to use token budgets.Updated the thinking documentation and added regression tests for option conversion and the generated Gemini request.
Validation