Skip to content

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

pass model_name to SystemPrompt

Laith Weinbergerf85bbb49c83f
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 89208a8aa..915e04805 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -467,6 +467,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):
flash_mode=self.settings.flash_mode,
is_anthropic=is_anthropic,
is_browser_use_model=is_browser_use_model,
+ model_name=self.llm.model,
).get_system_message(),
file_system=self.file_system,
state=self.state.message_manager_state,