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
log more info about the models at startup
Nick Sweeting6f061e6787ec
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex 6e622c62e..4815bba3c 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -197,9 +197,17 @@ class Agent(Generic[Context]):# Model setupself._set_model_names()+ self.tool_calling_method = self._set_tool_calling_method()logger.info(- f'🧠 Starting an agent with main_model={self.model_name}, planner_model={self.planner_model_name}, '- f'extraction_model={getattr(self.settings.page_extraction_llm, "model_name", None)}'+ f'🧠 Starting an agent with main_model={self.model_name}'+ f'{" +tools" if self.tool_calling_method == "function_calling" else ""}'+ f'{" +rawtools" if self.tool_calling_method == "raw" else ""}'+ f'{" +vision" if use_vision else ""}'+ f'{" +memory" if enable_memory else ""}, '+ f'planner_model={self.planner_model_name}'+ f'{" +reasoning" if is_planner_reasoning else ""}'+ f'{" +vision" if use_vision_for_planner else ""}, '+ f'extraction_model={getattr(self.settings.page_extraction_llm, "model_name", None)} ')# LLM API connection setup@@ -215,7 +223,6 @@ class Agent(Generic[Context]):# These will be used for the system prompt to maintain cachingself.unfiltered_actions = self.controller.registry.get_prompt_description()- self.tool_calling_method = self._set_tool_calling_method()self.settings.message_context = self._set_message_context()# Initialize message manager with state