Skip to content

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

fix-gemini-thinking-budget-for-latest-version

Magnus Müller6d77cc6bb9a6
diff --git a/browser_use/llm/google/chat.py b/browser_use/llm/google/chat.py
index c35ae7714..15c986df2 100644
--- a/browser_use/llm/google/chat.py
+++ b/browser_use/llm/google/chat.py
@@ -206,7 +206,7 @@ class ChatGoogle(BaseChatModel):
config['seed'] = self.seed
# set default for flash and flash-lite models
- if self.thinking_budget is None and 'gemini-2.5-flash' in self.model:
+ if self.thinking_budget is None and ('gemini-2.5-flash' in self.model or 'gemini-flash-latest' in self.model):
self.thinking_budget = 0
if self.thinking_budget is not None: