Skip to content

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

Update comment to 40000 in service.py

Magnus Müller03893b8adfb3
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index da932e793..3e5a9c297 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -414,7 +414,7 @@ Only use this for extracting info from a single product/article page, not for en
iframe_markdown = ''
content += iframe_markdown
- # limit to 60000 characters - remove text in the middle this is approx 20000 tokens
+ # limit to 40000 characters - remove text in the middle this is approx 20000 tokens
max_chars = 40000
if len(content) > max_chars:
content = (