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 support for new browser use model
Saurav Panda37586c9e9f61
diff --git a/browser_use/llm/browser_use/chat.py b/browser_use/llm/browser_use/chat.pyindex 39224c00d..55ad57b3c 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']+ valid_models = ['bu-latest', 'bu-1-0', 'bu-1-5']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 4e1b4c6db..334911c29 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(),+ llm=ChatBrowserUse(model='bu-1-5'),)agent.run_sync()