Merge pull request 'bump all timeouts to 60 minutes for large context models' (#28) from bump-timeouts-60min into master
Some checks failed
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Has been cancelled
Some checks failed
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Has been cancelled
Reviewed-on: #28
This commit is contained in:
commit
a1a534a86c
@ -140,8 +140,8 @@ class OllamaGenerator:
|
||||
)
|
||||
return response["message"]["content"]
|
||||
|
||||
# Retry mechanism with 30-minute timeout (same as the original)
|
||||
timeout_seconds = 30 * 60
|
||||
# Retry mechanism with 60-minute timeout (bumped for large context models)
|
||||
timeout_seconds = 60 * 60
|
||||
max_retries = 3
|
||||
|
||||
for attempt in range(max_retries):
|
||||
|
||||
@ -102,7 +102,7 @@ class OllamaWebSearchTool(BaseTool):
|
||||
"Authorization": f"Bearer {api_key}",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
timeout=30.0,
|
||||
timeout=60.0,
|
||||
)
|
||||
|
||||
# Raise for HTTP errors so we can catch them with specific messages
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user