This version is based on v1.72.2.rc litellm
-
Clone this repo next to litellm:
cd /opt/src
git clone https://github.com/cyverse/litellm-docker
git clone https://github.com/berriai/litellm
-
Edit the
/opt/src/litellm-docker/.env
file if needed -
Freshen/update litellm tags
cd /opt/src/litellm
git fetch --tags -u upstream
orgit --tags fetch -u origin
-
Might need to pull the patch branches
cd /opt/src/litellm
git fetch origin
orgit fetch upstream
git checkout --track origin/litellm_team_member_delete_cascade
or use upstream if from your other remote sourcegit checkout --track origin/litellm_team_member_update_fix
git log
and double check the main branch this forked from is what you checkout to build from
-
Identify latest version of litellm you want to use
git ls-remote --tags https://github.com/BerriAI/litellm.git | grep -e 'v1\.[6-7][1-9]'
-
Edit generate-patch.sh
- update MAIN_TAG to version you want to create (v1.67.4-stable)
- update
branches
array if adding or removing additional branches - Build patch
cd /opt/src/litellm-docker; ./generate-patch.sh
-> v1.XX.Y-stable-YYYYMMDD-litellm.patch
-
Update Dockerfile if needed:
- Make sure
PATCH_VERSION
var matches the patch generated
- Make sure
-
Build docker image to test
make build
-
Run local tests
cd /opt/src/litellm-docker; docker compose up
./run-tests.sh
- Ctrl-c &
docker compose down -v
make delete-db
to cleanup postgresql data
-
Tag and publish image to harbor
make harbor