Skip to content

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

reduce max_output_tokens gemini

Magnus Müller98995449c2c0
diff --git a/browser_use/llm/google/chat.py b/browser_use/llm/google/chat.py
index 3c11186a0..757c9e895 100644
--- a/browser_use/llm/google/chat.py
+++ b/browser_use/llm/google/chat.py
@@ -78,7 +78,7 @@ class ChatGoogle(BaseChatModel):
top_p: float | None = None
seed: int | None = None
thinking_budget: int | None = None # for gemini-2.5 flash and flash-lite models, default will be set to 0
- max_output_tokens: int | None = 8192
+ max_output_tokens: int | None = 4096
config: types.GenerateContentConfigDict | None = None
include_system_in_user: bool = False
supports_structured_output: bool = True # New flag