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
Refine reasoning_models check in ChatOpenAI class
Magnus Müller9e5ab89b67a5
diff --git a/browser_use/llm/openai/chat.py b/browser_use/llm/openai/chat.pyindex d6b233a9a..da9394cf4 100644--- a/browser_use/llm/openai/chat.py+++ b/browser_use/llm/openai/chat.py@@ -179,7 +179,7 @@ class ChatOpenAI(BaseChatModel):if self.service_tier is not None:model_params['service_tier'] = self.service_tier- if any(str(m).lower() in str(self.model).lower() for m in self.reasoning_models):+ if self.reasoning_models and any(str(m).lower() in str(self.model).lower() for m in self.reasoning_models):model_params['reasoning_effort'] = self.reasoning_effortdel model_params['temperature']del model_params['frequency_penalty']