Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

max tokens openai to 4k

Magnus Müllerd583540491b3
diff --git a/browser_use/llm/openai/chat.py b/browser_use/llm/openai/chat.py
index 86a9ecc28..769e63f6b 100644
--- a/browser_use/llm/openai/chat.py
+++ b/browser_use/llm/openai/chat.py
@@ -67,7 +67,7 @@ class ChatOpenAI(BaseChatModel):
default_query: Mapping[str, object] | None = None
http_client: httpx.AsyncClient | None = None
_strict_response_validation: bool = False
- max_completion_tokens: int | None = 4000
+ max_completion_tokens: int | None = 4096
# Static
@property