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 support for function calling in ChatGroq model integration
Magnus Müller9f808b5a2f13
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex bde03587e..7f64350a6 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -708,6 +708,10 @@ class Agent(Generic[Context]):if any(m in model_lower for m in ['llama-4', 'llama-3']):return 'function_calling'+ elif self.chat_model_library == 'ChatGroq':+ if any(m in model_lower for m in ['llama-4', 'llama-3']):+ return 'function_calling'+# Azure OpenAI modelselif self.chat_model_library == 'AzureChatOpenAI':if 'gpt-4-' in model_lower: