This version is based on v1.72.2.rc litellm
-
Clone this repo next to litellm:
cd /opt/srcgit clone https://github.com/cyverse/litellm-dockergit clone https://github.com/berriai/litellm
-
Edit the
/opt/src/litellm-docker/.envfile if needed -
Freshen/update litellm tags
cd /opt/src/litellmgit fetch --tags -u upstreamorgit --tags fetch -u origin
-
Might need to pull the patch branches
cd /opt/src/litellmgit fetch originorgit fetch upstreamgit checkout --track origin/litellm_team_member_delete_cascadeor use upstream if from your other remote sourcegit checkout --track origin/litellm_team_member_update_fixgit logand 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
branchesarray 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_VERSIONvar 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-dbto cleanup postgresql data
-
Tag and publish image to harbor
make harbor