Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
@@ -389,18 +389,18 @@ class MagAgent:
|
|
389 |
self.rate_limiter = rate_limiter
|
390 |
|
391 |
print("Initializing MagAgent with search tools...")
|
392 |
-
# model = LiteLLMModel(
|
393 |
-
# model_id="gemini/gemini-2.0-flash-preview-image-generation",
|
394 |
-
# api_key= os.environ.get("GEMINI_KEY"),
|
395 |
-
# max_tokens=8192
|
396 |
-
# )
|
397 |
-
|
398 |
model = LiteLLMModel(
|
399 |
-
model_id="gemini/gemini-
|
400 |
-
api_key=os.environ.get("GEMINI_KEY"),
|
401 |
-
max_tokens=8192
|
402 |
-
api_base="https://generativelanguage.googleapis.com/v1beta" # Correct endpoint
|
403 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
404 |
|
405 |
# Load prompt templates
|
406 |
with open("prompts.yaml", 'r') as stream:
|
|
|
389 |
self.rate_limiter = rate_limiter
|
390 |
|
391 |
print("Initializing MagAgent with search tools...")
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
model = LiteLLMModel(
|
393 |
+
model_id="gemini/gemini-2.0-flash",
|
394 |
+
api_key= os.environ.get("GEMINI_KEY"),
|
395 |
+
max_tokens=8192
|
|
|
396 |
)
|
397 |
+
|
398 |
+
# model = LiteLLMModel(
|
399 |
+
# model_id="gemini/gemini-1.5-flash", # Use standard multimodal model
|
400 |
+
# api_key=os.environ.get("GEMINI_KEY"),
|
401 |
+
# max_tokens=8192,
|
402 |
+
# api_base="https://generativelanguage.googleapis.com/v1beta" # Correct endpoint
|
403 |
+
# )
|
404 |
|
405 |
# Load prompt templates
|
406 |
with open("prompts.yaml", 'r') as stream:
|