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
simplify model name getter
Nick Sweeting77314dc6f036
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex 96ab1d468..6e622c62e 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -199,7 +199,7 @@ class Agent(Generic[Context]):self._set_model_names()logger.info(f'🧠 Starting an agent with main_model={self.model_name}, planner_model={self.planner_model_name}, '- f'extraction_model={self.settings.page_extraction_llm.model_name if hasattr(self.settings.page_extraction_llm, "model_name") else None}'+ f'extraction_model={getattr(self.settings.page_extraction_llm, "model_name", None)}')# LLM API connection setup