Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Include thinking_budget -1

Magnus Müller382bbd45fcd6
diff --git a/browser_use/llm/google/chat.py b/browser_use/llm/google/chat.py
index d03b1b7d3..b00bb4d5c 100644
--- a/browser_use/llm/google/chat.py
+++ b/browser_use/llm/google/chat.py
@@ -199,7 +199,7 @@ class ChatGoogle(BaseChatModel):
config['seed'] = self.seed
if self.thinking_budget is None and 'gemini-2.5-flash' in self.model:
- self.thinking_budget = 0
+ self.thinking_budget = -1
if self.thinking_budget is not None:
thinking_config_dict: types.ThinkingConfigDict = {'thinking_budget': self.thinking_budget}