litellm/litellm-proxy-extras
shrey-berri 1f3f512e50
perf(spend): find session heads by walking newest first without a new index
Reading the window newest first, the first row seen of each session is
that session's newest row, so the per-row newer-row probe and the index it
needed are unnecessary. The page walks the existing (startTime, request_id)
index in batches sized from how quickly new sessions appear, keeps the
first row of each session in SQL, and stops once page_size + 1 sessions are
settled. Filters are evaluated on each batch rather than steering the
index choice, and cursor pages drop sessions that already have a row at or
above the cursor with one lookup per candidate session. A walk that would
read more than 20000 rows falls back to the grouped page.

Drops the session head index and its migration.
2026-09-26 19:39:37 +00:00
..
dist adding build 2026-03-21 22:55:04 -07:00
litellm_proxy_extras perf(spend): find session heads by walking newest first without a new index 2026-09-26 19:39:37 +00:00
tests test(proxy-extras): move the LITELLM_LOG logger test into the CI-run proxy-extras shard 2026-09-15 22:57:23 +00: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 ci: follow the default branch in development tooling 2026-09-07 14:34:45 -07:00
pyproject.toml bump: litellm-enterprise 0.1.69 -> 0.1.70, litellm-proxy-extras 0.4.100 -> 0.4.101, litellm 1.103.0 -> 1.104.0 (#42633) 2026-09-22 19:19:39 -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