civerson916 commited on
Commit
c91f343
·
verified ·
1 Parent(s): d3e3839

Update tools/visit_webpage.py

Browse files

truncate_content(markdown_content, 20000)

Files changed (1) hide show
  1. 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, 10000)
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."