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
Added browser use 2-0 support
Saurav Pandaf3aad3c1457c
diff --git a/browser_use/llm/browser_use/chat.py b/browser_use/llm/browser_use/chat.pyindex 55ad57b3c..91d2f52f7 100644--- a/browser_use/llm/browser_use/chat.py+++ b/browser_use/llm/browser_use/chat.py@@ -68,7 +68,7 @@ class ChatBrowserUse(BaseChatModel):retry_max_delay: Maximum delay in seconds between retries (default: 60.0)."""# Validate model name - allow bu-* and browser-use/* patterns- valid_models = ['bu-latest', 'bu-1-0', 'bu-1-5']+ valid_models = ['bu-latest', 'bu-1-0', 'bu-2-0']is_valid = model in valid_models or model.startswith('browser-use/')if not is_valid:raise ValueError(f"Invalid model: '{model}'. Must be one of {valid_models} or start with 'browser-use/'")diff --git a/examples/simple.py b/examples/simple.pyindex 334911c29..449237819 100644--- a/examples/simple.py+++ b/examples/simple.py@@ -12,6 +12,6 @@ load_dotenv()agent = Agent(task='Find the number of stars of the following repos: browser-use, playwright, stagehand, react, nextjs',- llm=ChatBrowserUse(model='bu-1-5'),+ llm=ChatBrowserUse(model='bu-2-0'),)agent.run_sync()