mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
fix(install.sh): install from git branch so --setup is available for QA
This commit is contained in:
parent
f765541dda
commit
3998b47c84
1 changed files with 3 additions and 9 deletions
|
|
@ -1,20 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
# LiteLLM Installer
|
||||
# Usage: curl -fsSL https://raw.githubusercontent.com/BerriAI/litellm/main/scripts/install.sh | sh
|
||||
# Branch QA: LITELLM_BRANCH=worktree-dynamic-tickling-journal curl -fsSL .../install.sh | sh
|
||||
set -euo pipefail
|
||||
|
||||
MIN_PYTHON_MAJOR=3
|
||||
MIN_PYTHON_MINOR=9
|
||||
|
||||
# If LITELLM_BRANCH is set, install from that git branch instead of PyPI.
|
||||
# Used for testing PRs before they ship a release.
|
||||
LITELLM_BRANCH="${LITELLM_BRANCH:-}"
|
||||
if [ -n "$LITELLM_BRANCH" ]; then
|
||||
LITELLM_PACKAGE="git+https://github.com/BerriAI/litellm.git@${LITELLM_BRANCH}#egg=litellm[proxy]"
|
||||
else
|
||||
LITELLM_PACKAGE="litellm[proxy]"
|
||||
fi
|
||||
# NOTE: set to "litellm[proxy]" before merging to main (once --setup ships in a PyPI release).
|
||||
# On this branch we install from git so the installer gets the --setup flag.
|
||||
LITELLM_PACKAGE="litellm[proxy] @ git+https://github.com/BerriAI/litellm.git@worktree-dynamic-tickling-journal"
|
||||
|
||||
# ── colours ────────────────────────────────────────────────────────────────
|
||||
if [ -t 1 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue