Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -20,7 +20,7 @@ if not OPENROUTER_API_KEY:
|
|
| 20 |
common = dict(
|
| 21 |
api_base="https://openrouter.ai/api/v1",
|
| 22 |
api_key=OPENROUTER_API_KEY,
|
| 23 |
-
extra_body={"usage": {"include": True}}
|
| 24 |
)
|
| 25 |
|
| 26 |
#common = dict(
|
|
@@ -54,8 +54,8 @@ class GaiaAgent:
|
|
| 54 |
FinalAnswerTool(),
|
| 55 |
image_reasoning_tool,
|
| 56 |
],
|
| 57 |
-
max_steps=
|
| 58 |
-
verbosity_level =
|
| 59 |
grammar = None,
|
| 60 |
planning_interval=3,
|
| 61 |
additional_authorized_imports=[
|
|
@@ -71,6 +71,10 @@ class GaiaAgent:
|
|
| 71 |
"PIL",
|
| 72 |
"chess",
|
| 73 |
"pandas",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
]
|
| 75 |
#name="web_agent",
|
| 76 |
#description="Brows the web to find information",
|
|
|
|
| 20 |
common = dict(
|
| 21 |
api_base="https://openrouter.ai/api/v1",
|
| 22 |
api_key=OPENROUTER_API_KEY,
|
| 23 |
+
#extra_body={"usage": {"include": True}}
|
| 24 |
)
|
| 25 |
|
| 26 |
#common = dict(
|
|
|
|
| 54 |
FinalAnswerTool(),
|
| 55 |
image_reasoning_tool,
|
| 56 |
],
|
| 57 |
+
max_steps=6,
|
| 58 |
+
verbosity_level = 1, #or other parameter
|
| 59 |
grammar = None,
|
| 60 |
planning_interval=3,
|
| 61 |
additional_authorized_imports=[
|
|
|
|
| 71 |
"PIL",
|
| 72 |
"chess",
|
| 73 |
"pandas",
|
| 74 |
+
"os",
|
| 75 |
+
"bs4",
|
| 76 |
+
"openpyxl",
|
| 77 |
+
"lxml"
|
| 78 |
]
|
| 79 |
#name="web_agent",
|
| 80 |
#description="Brows the web to find information",
|