Spaces:
Runtime error
Runtime error
Leonardo
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -227,7 +227,7 @@ def create_agent():
|
|
| 227 |
# Initialize model
|
| 228 |
model = LiteLLMModel(
|
| 229 |
custom_role_conversions=CUSTOM_ROLE_CONVERSIONS,
|
| 230 |
-
model_id="openrouter/
|
| 231 |
)
|
| 232 |
|
| 233 |
# Initialize tools
|
|
@@ -256,7 +256,7 @@ def create_agent():
|
|
| 256 |
max_steps=12,
|
| 257 |
verbosity_level=2,
|
| 258 |
additional_authorized_imports=AUTHORIZED_IMPORTS,
|
| 259 |
-
planning_interval=
|
| 260 |
)
|
| 261 |
except (ValueError, RuntimeError) as e:
|
| 262 |
print(f"Failed to create agent: {e}")
|
|
|
|
| 227 |
# Initialize model
|
| 228 |
model = LiteLLMModel(
|
| 229 |
custom_role_conversions=CUSTOM_ROLE_CONVERSIONS,
|
| 230 |
+
model_id="openrouter/anthropic/claude-3.7-sonnet",
|
| 231 |
)
|
| 232 |
|
| 233 |
# Initialize tools
|
|
|
|
| 256 |
max_steps=12,
|
| 257 |
verbosity_level=2,
|
| 258 |
additional_authorized_imports=AUTHORIZED_IMPORTS,
|
| 259 |
+
planning_interval=2,
|
| 260 |
)
|
| 261 |
except (ValueError, RuntimeError) as e:
|
| 262 |
print(f"Failed to create agent: {e}")
|