litellm-mirror/litellm/proxy/management_endpoints
Krish Dholakia cdcc8ea9b7
Connect UI to "LiteLLM_DailyUserSpend" spend table - enables usage tab to work at 1m+ spend logs (#9603)
* feat(spend_management_endpoints.py): expose new endpoint for querying user's usage at 1m+ spend logs

Allows user to view their spend at 1m+ spend logs

* build(schema.prisma): add api_requests to dailyuserspend table

* build(migration.sql): add migration file for new column to daily user spend table

* build(prisma_client.py): add logic for copying over migration folder, if deploy/migrations present in expected location

enables easier testing of prisma migration flow

* build(ui/): initial commit successfully using the dailyuserspend table on the UI

* refactor(internal_user_endpoints.py): refactor `/user/daily/activity` to give breakdowns by provider/model/key

* feat: feature parity (cost page) with existing 'usage' page

* build(ui/): add activity tab to new_usage.tsx

gets to feature parity on 'All Up' page of 'usage.tsx'

* fix(proxy/utils.py): count number of api requests in daily user spend table

allows us to see activity by model on new usage tab

* style(new_usage.tsx): fix y-axis to be in ascending order of date

* fix: fix linting errors

* fix: fix ruff check errors
2025-03-27 23:29:15 -07:00
..
budget_management_endpoints.py Support budget/rate limit tiers for keys (#7429) 2024-12-26 19:05:27 -08:00
common_utils.py fix: fix linting errors 2025-03-13 19:26:46 -07:00
customer_endpoints.py Support budget/rate limit tiers for keys (#7429) 2024-12-26 19:05:27 -08:00
internal_user_endpoints.py Connect UI to "LiteLLM_DailyUserSpend" spend table - enables usage tab to work at 1m+ spend logs (#9603) 2025-03-27 23:29:15 -07:00
key_management_endpoints.py (Feat) - add pricing for eu.amazon.nova models (#9056) 2025-03-07 07:06:17 -08:00
model_management_endpoints.py Litellm new UI build (#9601) 2025-03-27 17:15:25 -07:00
organization_endpoints.py Add all /key/generate api params to UI + add metadata fields on team AND org add/update (#8667) 2025-02-19 21:13:06 -08:00
sso_helper_utils.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
team_callback_endpoints.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
team_endpoints.py fix(team_endpoints.py): consistently return 404 if team not found in DB 2025-03-20 20:28:03 -07:00
types.py Litellm dev 01 08 2025 p1 (#7640) 2025-01-08 22:08:20 -08:00
ui_sso.py fix: fix linting error 2025-03-05 10:10:53 -08:00