litellm/litellm-proxy-extras
yuneng-jiang d41e5e29ce Extract _deploy_with_idempotent_resolution loop for P3009/P3018
The previous approach resolved one idempotent migration per outer retry
attempt, exhausting all 5 retries when a DB had 4+ idempotent failures
(e.g., tables/columns already created by the old force-apply logic).

Now _deploy_with_idempotent_resolution loops internally: deploy → detect
idempotent P3009/P3018 → rollback + resolve → re-deploy, until all
idempotent migrations are resolved or a non-recoverable error is hit.
This keeps outer retries available for transient errors (timeouts, etc).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 11:29:42 -07:00
..
dist build artifacts 2026-03-09 14:46:03 -07:00
litellm_proxy_extras Extract _deploy_with_idempotent_resolution loop for P3009/P3018 2026-03-12 11:29:42 -07:00
tests install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
build_and_publish.md Litellm notes 181 12 (#21231) 2026-02-14 16:39:22 -08:00
LICENSE install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
migration_runbook.md add new migrations 2026-02-14 09:56:45 -08:00
poetry.lock bump extras 2025-11-26 11:47:29 -08:00
pyproject.toml bump: version 0.4.52 → 0.4.53 2026-03-09 14:45:41 -07:00
README.md fix: docs 2025-05-10 17:37:04 -07:00

Additional files for the proxy. Reduces the size of the main litellm package.

Currently, only stores the migration.sql files for litellm-proxy.

To install, run:

pip install litellm-proxy-extras

OR

pip install litellm[proxy] # installs litellm-proxy-extras and other proxy dependencies

To use the migrations, run:

litellm --use_prisma_migrate