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
Add extra_body parameter support in openrouter
Krishna Rathore7e477ea15937
diff --git a/browser_use/llm/openrouter/chat.py b/browser_use/llm/openrouter/chat.pyindex a59401bd1..cdbec29eb 100644--- a/browser_use/llm/openrouter/chat.py+++ b/browser_use/llm/openrouter/chat.py@@ -48,6 +48,7 @@ class ChatOpenRouter(BaseChatModel):default_query: Mapping[str, object] | None = Nonehttp_client: httpx.AsyncClient | None = None_strict_response_validation: bool = False+ extra_body: dict[str, Any] | None = None# Static@property@@ -148,6 +149,7 @@ class ChatOpenRouter(BaseChatModel):top_p=self.top_p,seed=self.seed,extra_headers=extra_headers,+ **(self.extra_body or {}),)usage = self._get_usage(response)@@ -178,6 +180,7 @@ class ChatOpenRouter(BaseChatModel):type='json_schema',),extra_headers=extra_headers,+ **(self.extra_body or {}),)if response.choices[0].message.content is None: