litellm-mirror/litellm-proxy-extras
Krish Dholakia 62ad84fb64
UI (new_usage.tsx): Report 'total_tokens' + report success/failure calls (#9675)
* feat(internal_user_endpoints.py): return 'total_tokens' in `/user/daily/analytics`

* test(test_internal_user_endpoints.py): add unit test to assert spend metrics and dailyspend metadata always report the same fields

* build(schema.prisma): record success + failure calls to daily user table

allows understanding why model requests might exceed provider requests (e.g. user hit rate limit error)

* fix(internal_user_endpoints.py): report success / failure requests in API

* fix(proxy/utils.py): default to success

status can be missing or none at times for successful requests

* feat(new_usage.tsx): show success/failure calls on UI

* style(new_usage.tsx): ui cleanup

* fix: fix linting error

* fix: fix linting error

* feat(litellm-proxy-extras/): add new migration files
2025-03-31 22:48:43 -07:00
..
dist UI (new_usage.tsx): Report 'total_tokens' + report success/failure calls (#9675) 2025-03-31 22:48:43 -07:00
litellm_proxy_extras UI (new_usage.tsx): Report 'total_tokens' + report success/failure calls (#9675) 2025-03-31 22:48:43 -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
LICENSE install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
poetry.lock UI (new_usage.tsx): Report 'total_tokens' + report success/failure calls (#9675) 2025-03-31 22:48:43 -07:00
pyproject.toml UI (new_usage.tsx): Report 'total_tokens' + report success/failure calls (#9675) 2025-03-31 22:48:43 -07:00
README.md install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -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