litellm/litellm/proxy-extras
ishaan-j-berri e23535b635
feat(customer-portal): show token usage and cache costs (#52601)
* feat(customer-portal): show token usage and cache costs

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* fix(customer-portal): keep usage lint and OpenAPI in sync

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* fix(customer-portal): type legacy cache cost lookup

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* feat(customer-portal): move cache usage into the organization overview

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* feat(customer-portal): group the token breakdown in one column

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* feat(customer-portal): chart the full organization token breakdown

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* feat(customer-portal): show cache hit rate in the tokens column

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* test(customer-portal): cover mixed cache costs in daily usage

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* fix(accounting): preserve recorded zero cache charges

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* revert(accounting): defer zero cache charge logging fix

This reverts commit b11c898095.

Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>

* fix(customer-portal): use a dash for missing cache costs

* refactor(customer-portal): keep usage totals immutable

* test(customer-portal): isolate cache usage fixtures

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
Co-authored-by: Tin <tin@berri.ai>
2026-11-18 18:49:08 -08:00
..
dist
litellm_proxy_extras feat(customer-portal): show token usage and cache costs (#52601) 2026-11-18 18:49:08 -08:00
tests
build_and_publish.md
LICENSE
migration_runbook.md
pyproject.toml bump: litellm-enterprise 0.1.86 -> 0.1.87, litellm-proxy-extras 0.4.117 -> 0.4.119, litellm 1.111.0 -> 1.112.0 (#52748) 2026-11-19 02:38:42 +00:00
README.md

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