Commit graph

1271 commits

Author SHA1 Message Date
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
Krish Dholakia
fb83567a03
Litellm new UI build (#9601)
* build: new ui build

* build: new ui build

* fix(proxy_server.py): only show user models their key can access on `/models`

* fix(model_management_endpoints.py): ensure team admin can add models

* test: update unit testing to reflect changes

* fix(model_dashboard.tsx): fix sizing on models page

* build: fix ui
2025-03-27 17:15:25 -07:00
Krish Dholakia
63c9f59373
Allow team admins to add/update/delete models on UI + show api base and model id on request logs (#9572)
* feat(view_logs.tsx): show model id + api base in request logs

easier debugging

* fix(index.tsx): fix length of api base

easier viewing

* refactor(leftnav.tsx): show models tab to team admin

* feat(model_dashboard.tsx): add explainer for what the 'models' page is for team admin

helps them understand how they can use it

* feat(model_management_endpoints.py): restrict model add by team to just team admin

allow team admin to add models via non-team keys (e.g. ui token)

* test(test_add_update_models.py): update unit testing for new behaviour

* fix(model_dashboard.tsx): show user the models

* feat(proxy_server.py): add new query param 'user_models_only' to `/v2/model/info`

Allows user to retrieve just the models they've added

Used in UI to show internal users just the models they've added

* feat(model_dashboard.tsx): allow team admins to view their own models

* fix: allow ui user to fetch model cost map

* feat(add_model_tab.tsx): require team admins to specify team when onboarding models

* fix(_types.py): add `/v1/model/info` to info route

`/model/info` was already there

* fix(model_info_view.tsx): allow user to edit a model they created

* fix(model_management_endpoints.py): allow team admin to update team model

* feat(model_managament_endpoints.py): allow team admin to delete team models

* fix(model_management_endpoints.py): don't require team id to be set when adding a model

* fix(proxy_server.py): fix linting error

* fix: fix ui linting error

* fix(model_management_endpoints.py): ensure consistent auth checks on all model calls

* test: remove old test - function no longer exists in same form

* test: add updated mock testing
2025-03-27 12:06:31 -07:00
Krish Dholakia
6ba31e1d84
Allow viewing keyinfo on request logs (#9568)
* feat(view_logs.tsx): show model id + api base in request logs

easier debugging

* fix(index.tsx): fix length of api base

easier viewing

* build(ui/): initial commit allowing user to click into key from request logs

allows easier debugging of 'what key is this?
2025-03-26 23:11:15 -07:00
dependabot[bot]
d5242d0318
build(deps): bump next from 14.2.21 to 14.2.25 in /ui/litellm-dashboard
Bumps [next](https://github.com/vercel/next.js) from 14.2.21 to 14.2.25.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v14.2.21...v14.2.25)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-22 04:04:46 +00:00
Artur Zdolinski
f3e782e3aa
remove linter changes to match old code style 2025-03-19 22:35:14 +01:00
azdolinski
95c762e572 sync_latest_changes 2025-03-19 14:47:34 +00:00
Artur Zdolinski
3be8e07d46
Merge branch 'BerriAI:main' into litellm_fix_icons 2025-03-19 15:40:49 +01:00
azdolinski
044508e075 set_local_icons 2025-03-19 14:37:57 +00:00
Ishaan Jaff
5e892a1e92 ui new build
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 18s
Helm unit test / unit-test (push) Successful in 22s
2025-03-18 11:46:23 -07:00
Ishaan Jaff
807054cadd ui fix linting error 2025-03-18 11:45:22 -07:00
Ishaan Jaff
7577146fe5 fix linting error 2025-03-17 22:07:36 -07:00
Ishaan Jaff
e35aa444c3 show sso settings on ui 2025-03-17 22:00:33 -07:00
Ishaan Jaff
7a29c08f7b ui polish order of settings 2025-03-17 21:59:25 -07:00
Ishaan Jaff
b4568762d2 update_internal_user_settings 2025-03-17 18:26:42 -07:00
Ishaan Jaff
93e4a36300 DefaultInternalUserParams 2025-03-17 18:11:19 -07:00
Ishaan Jaff
c2db7fb28b fix internal user sso settings 2025-03-17 17:31:31 -07:00
Ishaan Jaff
ba7891d332 ui fix rendering budget duration settings on ui 2025-03-17 17:26:51 -07:00
Ishaan Jaff
30add0e64c update internal user settings on ui 2025-03-17 17:11:16 -07:00
Ishaan Jaff
02db6f9d86 fix display of settings 2025-03-17 16:56:49 -07:00
Ishaan Jaff
2607676e3f UISSOSettings 2025-03-17 16:29:32 -07:00
Ishaan Jaff
0f44b33e0f ui sso settings 2025-03-17 15:54:41 -07:00
Ishaan Jaff
0771d49ea7 ui networking getSSOSettingsCall 2025-03-17 15:54:20 -07:00
Ishaan Jaff
a256108f3f ui new build 2025-03-14 21:46:40 -07:00
Ishaan Jaff
03ee2da9bd add tool tip for foundry 2025-03-14 21:34:17 -07:00
Ishaan Jaff
5425071797 fix example for azure foundry 2025-03-14 21:31:21 -07:00
Ishaan Jaff
9dc962511f ui new build 2025-03-14 21:29:42 -07:00
Ishaan Jaff
085d581ee4 docs azure ai foundry prompt 2025-03-14 21:28:50 -07:00
Ishaan Jaff
5290d141b7 ui new build 2025-03-14 21:23:13 -07:00
Ishaan Jaff
12188f286c
Merge pull request #9258 from BerriAI/litellm_fix_models_view_edit
(UI) Fix model edit + delete - instantly show edit + deletes to models
2025-03-14 21:21:46 -07:00
Ishaan Jaff
d1246db41e
Merge pull request #9257 from BerriAI/litellm_ui_fixes_key_create
[UI] Fix 1 - instantly show newly create keys on Admin UI (don't require refresh)
2025-03-14 21:17:53 -07:00
Ishaan Jaff
bda5fe0fcf
Merge pull request #9272 from BerriAI/litellm_add_test_connection_button
[Feat] UI - Add Test Connection
2025-03-14 21:16:44 -07:00
Ishaan Jaff
ae75ce2966 reanme toModelConnectionTest 2025-03-14 21:07:41 -07:00
Ishaan Jaff
880cdc5d84 fix test connection 2025-03-14 21:02:58 -07:00
Krrish Dholakia
a93ef15b55 fix(key_edit_view.tsx): fix showing available models on key edit for non-team key 2025-03-14 20:48:30 -07:00
Ishaan Jaff
89817692b6 explain litellm mode 2025-03-14 19:59:04 -07:00
Krrish Dholakia
aaaac25e2d fix(create_key_button.tsx): retrieve all available team models on team select 2025-03-14 19:50:49 -07:00
Ishaan Jaff
68fd735e97 fix params to test connection 2025-03-14 18:57:39 -07:00
Ishaan Jaff
66dc49ab92 fix mode 2025-03-14 18:53:14 -07:00
Ishaan Jaff
fa25c4ba7a testConnectionRequest 2025-03-14 18:34:22 -07:00
Krrish Dholakia
621d193727 build: new ui build 2025-03-14 18:18:03 -07:00
Krrish Dholakia
50109a7784 fix(top_key_view.tsx): fix bar chart to use key alias 2025-03-14 17:59:40 -07:00
Krrish Dholakia
9a670552fd refactor(transform_request/): remove experimental transform request tab from ui
move to api docs instead
2025-03-14 17:52:36 -07:00
Krrish Dholakia
e914a9ddf1 fix(model_info_view.tsx): call db for model info 2025-03-14 17:44:45 -07:00
Ishaan Jaff
5aec90c513 fix dup close 2025-03-14 17:29:53 -07:00
Ishaan Jaff
999ffd1bdb workign run test connection many times 2025-03-14 17:27:30 -07:00
Ishaan Jaff
9a01602979 fix Test Modes 2025-03-14 17:21:34 -07:00
Ishaan Jaff
446422c8ce decent test connection 2025-03-14 17:08:45 -07:00
Ishaan Jaff
a9fd8de90b cleaner view 2025-03-14 17:02:13 -07:00
Ishaan Jaff
d7b37f4986 fix dont show extra modal 2025-03-14 16:50:32 -07:00