Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Use 2.0 flash model
magmuellerffce8404420b
diff --git a/examples/gemini.py b/examples/gemini.pyindex 9d7dd77c7..e1d97bdc8 100644--- a/examples/gemini.py+++ b/examples/gemini.py@@ -3,7 +3,6 @@ import osfrom dotenv import load_dotenvfrom langchain_google_genai import ChatGoogleGenerativeAI-from langchain_ollama import ChatOllamafrom pydantic import SecretStrfrom browser_use import Agent@@ -13,7 +12,7 @@ api_key = os.getenv('GEMINI_API_KEY')if not api_key:raise ValueError('GEMINI_API_KEY is not set')-llm = ChatGoogleGenerativeAI(model='gemini-1.5-pro', api_key=SecretStr(api_key))+llm = ChatGoogleGenerativeAI(model='gemini-2.0-flash-exp', api_key=SecretStr(api_key))async def run_search():