Compare commits

..

2 Commits

Author SHA1 Message Date
Hermes Agent
5e014f50a5 bump all timeouts to 60 minutes for large context models 2026-07-28 10:38:09 +10:00
Hermes Agent
d488c2be1d ci: retry after model swap 2026-07-28 10:32:43 +10:00
2 changed files with 3 additions and 3 deletions

View File

@ -140,8 +140,8 @@ class OllamaGenerator:
) )
return response["message"]["content"] return response["message"]["content"]
# Retry mechanism with 30-minute timeout (same as the original) # Retry mechanism with 60-minute timeout (bumped for large context models)
timeout_seconds = 30 * 60 timeout_seconds = 60 * 60
max_retries = 3 max_retries = 3
for attempt in range(max_retries): for attempt in range(max_retries):

View File

@ -102,7 +102,7 @@ class OllamaWebSearchTool(BaseTool):
"Authorization": f"Bearer {api_key}", "Authorization": f"Bearer {api_key}",
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
timeout=30.0, timeout=60.0,
) )
# Raise for HTTP errors so we can catch them with specific messages # Raise for HTTP errors so we can catch them with specific messages