Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -17,15 +17,15 @@ from vision_tool import image_reasoning_tool
|
|
| 17 |
#if not OPENROUTER_API_KEY:
|
| 18 |
#raise EnvironmentError("OPENROUTER_API_KEY environment variable not set")
|
| 19 |
|
| 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(
|
| 27 |
-
api_base
|
| 28 |
-
api_key
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
)
|
| 30 |
class GaiaAgent:
|
| 31 |
def __init__(self):
|
|
@@ -35,8 +35,8 @@ class GaiaAgent:
|
|
| 35 |
self.model = OpenAIServerModel(
|
| 36 |
max_tokens = 8096,
|
| 37 |
temperature = 0.5,
|
| 38 |
-
model_id = "gemini-2.0-flash",
|
| 39 |
-
|
| 40 |
#custom_role_conversions=None,
|
| 41 |
#provider="hf-inference",
|
| 42 |
#token=token,
|
|
|
|
| 17 |
#if not OPENROUTER_API_KEY:
|
| 18 |
#raise EnvironmentError("OPENROUTER_API_KEY environment variable not set")
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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(
|
| 27 |
+
#api_base = "https://generativelanguage.googleapis.com/v1beta/openai/",
|
| 28 |
+
#api_key = os.getenv("GEMINI_API_KEY"),
|
| 29 |
)
|
| 30 |
class GaiaAgent:
|
| 31 |
def __init__(self):
|
|
|
|
| 35 |
self.model = OpenAIServerModel(
|
| 36 |
max_tokens = 8096,
|
| 37 |
temperature = 0.5,
|
| 38 |
+
#model_id = "gemini-2.0-flash",
|
| 39 |
+
model_id = 'qwen/qwen-2.5-coder-32b-instruct:free',
|
| 40 |
#custom_role_conversions=None,
|
| 41 |
#provider="hf-inference",
|
| 42 |
#token=token,
|