You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using planner=BuiltInPlanner(thinking_config=types.ThinkingConfig(thinking_budget=1024)) with the new 2.5 models, now we got an error - 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Unable to submit request because thinking is a default and constant feature of this model; To proceed, please remove the thinking_config.thinking_budget setting from your configuration and retry. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini', 'status': 'INVALID_ARGUMENT'}}.
How should we set thinking config for an agent now? Thanks.
Reacted by Florian Leuerer, Catalin Lupuleti and Stefan Adelbert
Hi @Alexheqingli and thanks to everyone who participated in this thread.
We're currently doing some housekeeping on our issue tracker. Given the rapid pace of development and the number of updates since this was last active, there's a good chance this issue has been resolved in a newer version. To help us keep our backlog focused on current issues, we are closing this as stale.
If you're still facing this problem, could you please update to the very latest version of the library and confirm the issue still exists? If it does, please comment here, and we will be happy to reopen this issue and investigate further.
Activity
edelweiss-group commentedon Jun 1, 2025
+1
cirovas commentedon Jun 7, 2025
+1
lupuletic commentedon Jun 16, 2025
has anyone figured this one out yet? trying to use flash 2.5, but the default thinking adds unwanted latency ...
cirovas commentedon Jun 16, 2025
The update adk version is working, but I’ve noticed from the logs that the thinking tokens exceed the budget I set.
andrewburtnett commentedon Jun 22, 2025
+1
ksglmehmet commentedon Jun 23, 2025
+1
maxbaluev commentedon Jun 25, 2025
+1
stefanadelbert commentedon Jun 26, 2025
I'm seeing the thought tokens exceed the thinking budget too with adk 1.5.0 when using Gemini 2.5 Flash.
Input
Output
Note that
thinking_budgetis 4096, butthoughts_token_countis greater (7083).surajksharma07 commentedon Oct 7, 2025
Hi @Alexheqingli and thanks to everyone who participated in this thread.
We're currently doing some housekeeping on our issue tracker. Given the rapid pace of development and the number of updates since this was last active, there's a good chance this issue has been resolved in a newer version. To help us keep our backlog focused on current issues, we are closing this as stale.
If you're still facing this problem, could you please update to the very latest version of the library and confirm the issue still exists? If it does, please comment here, and we will be happy to reopen this issue and investigate further.
Thanks for your contribution and understanding!