Spaces:
Paused
Paused
Update tools/ai_tools.py
Browse files- tools/ai_tools.py +1 -1
tools/ai_tools.py
CHANGED
|
@@ -71,7 +71,6 @@ class AITools():
|
|
| 71 |
model_api_key=os.environ["MODEL_API_KEY"],
|
| 72 |
model_name=WEB_BROWSER_MODEL,
|
| 73 |
dom_settle_timeout_ms=5000,
|
| 74 |
-
keep_alive=False,
|
| 75 |
headless=True,
|
| 76 |
self_heal=True,
|
| 77 |
wait_for_captcha_solves=True,
|
|
@@ -80,6 +79,7 @@ class AITools():
|
|
| 80 |
|
| 81 |
return stagehand_tool.run(
|
| 82 |
instruction=question,
|
|
|
|
| 83 |
url=url
|
| 84 |
)
|
| 85 |
except Exception as e:
|
|
|
|
| 71 |
model_api_key=os.environ["MODEL_API_KEY"],
|
| 72 |
model_name=WEB_BROWSER_MODEL,
|
| 73 |
dom_settle_timeout_ms=5000,
|
|
|
|
| 74 |
headless=True,
|
| 75 |
self_heal=True,
|
| 76 |
wait_for_captcha_solves=True,
|
|
|
|
| 79 |
|
| 80 |
return stagehand_tool.run(
|
| 81 |
instruction=question,
|
| 82 |
+
keep_alive=False,
|
| 83 |
url=url
|
| 84 |
)
|
| 85 |
except Exception as e:
|