Skip to content

Commit 681ca95

Browse files
Remove --upgrade from pip install, pin httpx<0.28
The --upgrade flag causes unintended upgrades of transitive dependencies. Pin httpx<0.28 since newer versions removed the proxies parameter that openai<1.40 relies on. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0444537 commit 681ca95

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ python-youtube==0.9.1
2828
country-list>=1.1.0
2929
# For OpenAI GPT support
3030
openai>=1.14.3,<1.40
31-
httpx>=0.27.2
31+
httpx>=0.27.2,<0.28
3232
# Ours
3333
reynir>=3.5.7
3434
islenska>=1.0.3

scripts/deploy.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ cd $DEST || exit 1
4444

4545
# shellcheck disable=SC1091
4646
source "venv/bin/activate"
47-
pip install --upgrade pip wheel setuptools
48-
pip install --upgrade -r requirements.txt
47+
pip install -r requirements.txt
4948
deactivate
5049

5150
echo "Removing binary grammar files"
@@ -105,8 +104,7 @@ if [[ "$MODE" = "PRODUCTION" ]]; then
105104
echo "Updating similarity server dependencies..."
106105
# shellcheck disable=SC1091
107106
source "$SRC/vectors/venv/bin/activate"
108-
pip install --upgrade pip wheel setuptools
109-
pip install --upgrade -r "$SRC/vectors/requirements.txt"
107+
pip install -r "$SRC/vectors/requirements.txt"
110108
deactivate
111109

112110
echo "Restarting similarity server..."

0 commit comments

Comments
 (0)