fix(install): only add the legacy-encryption extra on ref installs

Released PyPI versions do not define the legacy-encryption extra yet and uv
refuses unknown extras, so the default curl|sh path must stay plain
litellm[proxy]; ref installs build from this repo's pyproject, which does
define it, and keep the extra so a rebuilt tool environment can still read
previously stored nacl credentials.
This commit is contained in:
yucheng-berri 2026-10-14 22:28:20 -07:00
parent 7518972d4b
commit 3d2e58d20e

View file

@ -19,9 +19,11 @@ set -eu
# example, to QA lite autoroute against an unreleased branch, which needs this proxy
# runtime, not the thin litellm[cli] install).
if [ -n "${LITELLM_CLI_REF:-}" ]; then
# Ref installs come from this repo, whose pyproject defines the legacy-encryption
# extra; released PyPI versions do not carry it yet, and uv refuses unknown extras.
LITELLM_PACKAGE="litellm[proxy,legacy-encryption] @ git+https://github.com/BerriAI/litellm.git@${LITELLM_CLI_REF}"
else
LITELLM_PACKAGE="litellm[proxy,legacy-encryption]"
LITELLM_PACKAGE="litellm[proxy]"
fi
UV_VERSION="0.10.9"
@ -96,7 +98,7 @@ echo ""
if [ -n "${LITELLM_CLI_REF:-}" ]; then
header "Installing litellm[proxy,legacy-encryption] from ${LITELLM_CLI_REF}…"
else
header "Installing litellm[proxy,legacy-encryption]…"
header "Installing litellm[proxy]…"
fi
echo ""