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
gpt 5 support
Gregor Žunič121aef037152
diff --git a/browser_use/llm/openai/chat.py b/browser_use/llm/openai/chat.pyindex ac3007cb5..1a971cec6 100644--- a/browser_use/llm/openai/chat.py+++ b/browser_use/llm/openai/chat.py@@ -148,6 +148,10 @@ class ChatOpenAI(BaseChatModel):openai_messages = OpenAIMessageSerializer.serialize_messages(messages)+ # GPT 5 doesn't support temperature+ if 'gpt-5' in self.model:+ self.temperature = None+try:model_params: dict[str, Any] = {}diff --git a/examples/simple.py b/examples/simple.pyindex f9bfe8132..1045b1a4b 100644--- a/examples/simple.py+++ b/examples/simple.py@@ -15,7 +15,7 @@ from browser_use import Agent# Initialize the modelllm = ChatOpenAI(- model='gpt-4.1-mini',+ model='gpt-5-mini',)diff --git a/pyproject.toml b/pyproject.tomlindex cf3c20747..05c279fc9 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -2,7 +2,7 @@name = "browser-use"description = "Make websites accessible for AI agents"authors = [{ name = "Gregor Zunic" }]-version = "0.5.9"+version = "0.5.10"readme = "README.md"requires-python = ">=3.11,<4.0"classifiers = [