applemuncy commited on
Commit
a5b13ae
·
verified ·
1 Parent(s): 8b6fc8b

added 70 sec time out

Browse files
Files changed (1) hide show
  1. tools/visit_webpage.py +2 -1
tools/visit_webpage.py CHANGED
@@ -23,7 +23,8 @@ class VisitWebpageTool(Tool):
23
  ) from e
24
  try:
25
  # Send a GET request to the URL with a 20-second timeout
26
- response = requests.get(url, timeout=20)
 
27
  response.raise_for_status() # Raise an exception for bad status codes
28
 
29
  # Convert the HTML content to Markdown
 
23
  ) from e
24
  try:
25
  # Send a GET request to the URL with a 20-second timeout
26
+ # adjust to 70 second time out
27
+ response = requests.get(url, timeout=70)
28
  response.raise_for_status() # Raise an exception for bad status codes
29
 
30
  # Convert the HTML content to Markdown