Skip to content

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

Set frequency_penalty to 0.05

Magnus Müllerd14c4e4a19ac
diff --git a/browser_use/llm/openai/chat.py b/browser_use/llm/openai/chat.py
index 8a312c746..d2ea1a013 100644
--- a/browser_use/llm/openai/chat.py
+++ b/browser_use/llm/openai/chat.py
@@ -47,7 +47,7 @@ class ChatOpenAI(BaseChatModel):
# Model params
# set to 0.1 because browser-use aims to be more reliable and deterministic
temperature: float | None = 0.1
- frequency_penalty: float | None = None
+ frequency_penalty: float | None = 0.05
reasoning_effort: ReasoningEffort = 'low'
seed: int | None = None
service_tier: Literal['auto', 'default', 'flex', 'priority', 'scale'] | None = None