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
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
apt update -qq
|
apt update && apt upgrade -y
|
||||||
apt install -y -qq python-is-python3 pip python3-venv libmagic-dev git
|
apt install rustc cargo python-is-python3 pip python3-venv python3-virtualenv libmagic-dev git -y
|
||||||
python -m venv .venv
|
virtualenv .venv
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
pip install --upgrade pip -q
|
pip install --upgrade pip
|
||||||
pip install -r requirements.txt --prefer-binary -q
|
pip install -r requirements.txt
|
||||||
git config --global user.name "Blog Creator"
|
git config --global user.name "Blog Creator"
|
||||||
git config --global user.email "ridgway.infrastructure@gmail.com"
|
git config --global user.email "ridgway.infrastructure@gmail.com"
|
||||||
git config --global push.autoSetupRemote true
|
git config --global push.autoSetupRemote true
|
||||||
|
|||||||
@ -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):
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user