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
fix linter
Nick Sweeting4f08369128c4
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex 07909324e..7cc37bd2d 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -386,7 +386,7 @@ class Agent(Generic[Context]):return 'function_calling'elif self.chat_model_library == 'AzureChatOpenAI':# Azure OpenAI API requires 'tools' parameter for GPT-4- # The error 'content must be either a string or an array' occurs when+ # The error 'content must be either a string or an array' occurs when# the API expects a tools array but gets something elseif 'gpt-4' in self.model_name.lower():return 'tools'