Skip to content

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

disable telemetry logs for chatbrowseruse

Magnus Müller51ba3422c36b
diff --git a/browser_use/llm/browser_use/chat.py b/browser_use/llm/browser_use/chat.py
index 9e97ecbb3..77f9e63b5 100644
--- a/browser_use/llm/browser_use/chat.py
+++ b/browser_use/llm/browser_use/chat.py
@@ -103,11 +103,16 @@ class ChatBrowserUse(BaseChatModel):
Returns:
ChatInvokeCompletion with structured response and usage info
"""
+ # Get ANONYMIZED_TELEMETRY setting from config
+ from browser_use.config import CONFIG
+ anonymized_telemetry = CONFIG.ANONYMIZED_TELEMETRY
+
# Prepare request payload
payload = {
'messages': [self._serialize_message(msg) for msg in messages],
'fast': self.fast,
'request_type': request_type,
+ 'anonymized_telemetry': anonymized_telemetry,
}
# Add output format schema if provided