Compare commits

..

No commits in common. "1d18a37fa7cbc0fd19ce5ad5ee53cbe69bdb207a" and "c86d6e4e4d1010992e4c017d8a6e920c77de7a58" have entirely different histories.

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 60-minute timeout (bumped for large context models) # Retry mechanism with 30-minute timeout (same as the original)
timeout_seconds = 60 * 60 timeout_seconds = 30 * 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=60.0, timeout=30.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