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
reduce frequency_penalty
Magnus Müller37c177e84071
diff --git a/browser_use/agent/system_prompt.md b/browser_use/agent/system_prompt.mdindex 800e31d2c..eee392c3d 100644--- a/browser_use/agent/system_prompt.md+++ b/browser_use/agent/system_prompt.md@@ -196,7 +196,7 @@ Here are examples of good output patterns. Use them as reference but never copy</memory_examples><next_goal_examples>-"next_goal": "Click on the 'Add to Cart' button (index 23) to proceed with the purchase flow."+"next_goal": "Click on the 'Add to Cart' button to proceed with the purchase flow.""next_goal": "Extract details from the first item on the page."</next_goal_examples></examples>diff --git a/browser_use/agent/system_prompt_no_thinking.md b/browser_use/agent/system_prompt_no_thinking.mdindex f227deacf..cd15a06c4 100644--- a/browser_use/agent/system_prompt_no_thinking.md+++ b/browser_use/agent/system_prompt_no_thinking.md@@ -193,7 +193,7 @@ Here are examples of good output patterns. Use them as reference but never copy</memory_examples><next_goal_examples>-"next_goal": "Click on the 'Add to Cart' button (index 23) to proceed with the purchase flow."+"next_goal": "Click on the 'Add to Cart' button to proceed with the purchase flow.""next_goal": "Extract details from the first item on the page."</next_goal_examples></examples>diff --git a/browser_use/browser/session.py b/browser_use/browser/session.pyindex 29cff2852..5f4c430be 100644--- a/browser_use/browser/session.py+++ b/browser_use/browser/session.py@@ -1349,7 +1349,6 @@ class BrowserSession(BaseModel):except Exception as e:self.logger.debug(f'Skipping proxy auth setup: {type(e).__name__}: {e}')- @observe_debug(ignore_input=True, ignore_output=True, name='get_tabs')async def get_tabs(self) -> list[TabInfo]:"""Get information about all open tabs using CDP Target.getTargetInfo for speed."""tabs = []diff --git a/browser_use/browser/watchdogs/dom_watchdog.py b/browser_use/browser/watchdogs/dom_watchdog.pyindex 1864c9b10..153c861f4 100644--- a/browser_use/browser/watchdogs/dom_watchdog.py+++ b/browser_use/browser/watchdogs/dom_watchdog.py@@ -455,7 +455,6 @@ class DOMWatchdog(BaseWatchdog):elapsed = time.time() - start_timeself.logger.debug(f'✅ Page stability wait completed in {elapsed:.2f}s')- @observe_debug(ignore_input=True, ignore_output=True, name='get_page_info')async def _get_page_info(self) -> 'PageInfo':"""Get comprehensive page information using a single CDP call.diff --git a/browser_use/llm/openai/chat.py b/browser_use/llm/openai/chat.pyindex 78821c394..ca450c370 100644--- a/browser_use/llm/openai/chat.py+++ b/browser_use/llm/openai/chat.py@@ -47,7 +47,7 @@ class ChatOpenAI(BaseChatModel):# Model paramstemperature: float | None = 0.2- frequency_penalty: float | None = 0.3 # this avoids infinite generation of \t for models like 4.1-mini+ frequency_penalty: float | None = 0.15 # this avoids infinite generation of \t for models like 4.1-minireasoning_effort: ReasoningEffort = 'low'seed: int | None = Noneservice_tier: Literal['auto', 'default', 'flex', 'priority', 'scale'] | None = None