Synnove commited on
Commit
4ab953e
·
verified ·
1 Parent(s): 035fe78

Update visit_webpage.py

Browse files
Files changed (1) hide show
  1. visit_webpage.py +2 -1
visit_webpage.py CHANGED
@@ -33,7 +33,8 @@ 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
+
37
+ return truncate_content(markdown_content, 4000) #was 10000
38
 
39
  except requests.exceptions.Timeout:
40
  return "The request timed out. Please try again later or check the URL."