litellm/litellm-proxy-extras
mateo-berri 8b63b7045c feat(interactions): durable cross-pod settlement for background interaction billing
Background interaction billing previously lived only in the creating pod's
memory: a DELETE routed to another pod or a proxy restart meant the completed
provider work was never billed and the budget reservation was refunded at the
poll timeout. The poll task now persists a settlement context row (virtual key
attribution, model, original request id, budget reservation) in a new
LiteLLM_BackgroundInteractionSettlementTable so any pod can settle. A
conditional update flipping status pending to settled is the cross-pod
exactly-once claim; every outcome (bill, release, timeout give-up) must win it
before touching spend counters, and a losing pod finalizes its local
reservation copy without touching shared counters. The delete route settles
registry misses through the store by rebuilding a billable logging context,
resolving provider credentials through the router by model group. A per-pod
sweep job resumes pending settlements after restarts and surfaces timed-out
entries as abandoned rows instead of silently reconciling to zero. Without a
registered store (SDK usage) behavior is unchanged.
2026-07-15 10:06:18 -07:00
..
dist adding build 2026-03-21 22:55:04 -07:00
litellm_proxy_extras feat(interactions): durable cross-pod settlement for background interaction billing 2026-07-15 10:06:18 -07:00
tests [Fix] v2 resolver: swallow non-connection DB errors; wrap resolve failures 2026-04-21 15:53:07 -07:00
build_and_publish.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -07: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 [Infra] Add freshness and destructive guards to migration workflow 2026-04-21 12:00:23 -07:00
pyproject.toml bump: litellm-enterprise 0.1.49 -> 0.1.50, litellm-proxy-extras 0.4.76 -> 0.4.77, litellm 1.93.0 -> 1.94.0 (#33229) 2026-07-14 09:51:23 -07:00
README.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -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:

uv add litellm-proxy-extras

OR

uv tool install 'litellm[proxy]' # installs litellm-proxy-extras and other proxy dependencies

To use the migrations, run:

litellm --use_prisma_migrate