Compare commits
No commits in common. "master" and "fix-random-illegal-instruction" have entirely different histories.
master
...
fix-random
@ -15,12 +15,12 @@ jobs:
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
apt update -qq
|
||||
apt install -y -qq python-is-python3 pip python3-venv libmagic-dev git
|
||||
python -m venv .venv
|
||||
apt update && apt upgrade -y
|
||||
apt install rustc cargo python-is-python3 pip python3-venv python3-virtualenv libmagic-dev git -y
|
||||
virtualenv .venv
|
||||
source .venv/bin/activate
|
||||
pip install --upgrade pip -q
|
||||
pip install -r requirements.txt --prefer-binary -q
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
git config --global user.name "Blog Creator"
|
||||
git config --global user.email "ridgway.infrastructure@gmail.com"
|
||||
git config --global push.autoSetupRemote true
|
||||
|
||||
@ -140,8 +140,8 @@ class OllamaGenerator:
|
||||
)
|
||||
return response["message"]["content"]
|
||||
|
||||
# Retry mechanism with 60-minute timeout (bumped for large context models)
|
||||
timeout_seconds = 60 * 60
|
||||
# Retry mechanism with 30-minute timeout (same as the original)
|
||||
timeout_seconds = 30 * 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=60.0,
|
||||
timeout=30.0,
|
||||
)
|
||||
|
||||
# Raise for HTTP errors so we can catch them with specific messages
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user