Skip to content

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

Force thinking

Magnus Müller15f1a5089573
diff --git a/examples/models/gemini.py b/examples/models/gemini.py
index c34d09d19..b43486060 100644
--- a/examples/models/gemini.py
+++ b/examples/models/gemini.py
@@ -14,7 +14,7 @@ api_key = os.getenv('GOOGLE_API_KEY')
if not api_key:
raise ValueError('GOOGLE_API_KEY is not set')
-llm = ChatGoogle(model='gemini-2.5-flash', api_key=api_key)
+llm = ChatGoogle(model='gemini-2.0', api_key=api_key, thinking_budget=-1)
async def run_search():