Update tools/visit_webpage.py
Browse filestruncate_content(markdown_content, 20000)
- tools/visit_webpage.py +1 -1
tools/visit_webpage.py
CHANGED
@@ -33,7 +33,7 @@ class VisitWebpageTool(Tool):
|
|
33 |
# Remove multiple line breaks
|
34 |
markdown_content = re.sub(r"\n{3,}", "\n\n", markdown_content)
|
35 |
|
36 |
-
return truncate_content(markdown_content,
|
37 |
|
38 |
except requests.exceptions.Timeout:
|
39 |
return "The request timed out. Please try again later or check the URL."
|
|
|
33 |
# Remove multiple line breaks
|
34 |
markdown_content = re.sub(r"\n{3,}", "\n\n", markdown_content)
|
35 |
|
36 |
+
return truncate_content(markdown_content, 20000)
|
37 |
|
38 |
except requests.exceptions.Timeout:
|
39 |
return "The request timed out. Please try again later or check the URL."
|