Commit graph

1180 commits

Author SHA1 Message Date
Krish Dholakia
ed8c63b51e 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
c453a91849 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]
ce32fe355c 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
850b53c3a3 remove linter changes to match old code style 2025-03-19 22:35:14 +01:00
azdolinski
70a533d186 sync_latest_changes 2025-03-19 14:47:34 +00:00
Artur Zdolinski
c0f075898c Merge branch 'BerriAI:main' into litellm_fix_icons 2025-03-19 15:40:49 +01:00
azdolinski
a2d71f8f8b set_local_icons 2025-03-19 14:37:57 +00:00
Ishaan Jaff
27494ca5e7 ui new build 2025-03-18 11:46:23 -07:00
Ishaan Jaff
dbf1e34510 ui fix linting error 2025-03-18 11:45:22 -07:00
Ishaan Jaff
50ea010127 fix linting error 2025-03-17 22:07:36 -07:00
Ishaan Jaff
4a064edec8 show sso settings on ui 2025-03-17 22:00:33 -07:00
Ishaan Jaff
40ac031a61 ui polish order of settings 2025-03-17 21:59:25 -07:00
Ishaan Jaff
d17896782e update_internal_user_settings 2025-03-17 18:26:42 -07:00
Ishaan Jaff
6975260f12 DefaultInternalUserParams 2025-03-17 18:11:19 -07:00
Ishaan Jaff
eab031ba99 fix internal user sso settings 2025-03-17 17:31:31 -07:00
Ishaan Jaff
6ba4ec9432 ui fix rendering budget duration settings on ui 2025-03-17 17:26:51 -07:00
Ishaan Jaff
5353017aa4 update internal user settings on ui 2025-03-17 17:11:16 -07:00
Ishaan Jaff
0c0c7bf2f5 fix display of settings 2025-03-17 16:56:49 -07:00
Ishaan Jaff
f69f330400 UISSOSettings 2025-03-17 16:29:32 -07:00
Ishaan Jaff
7836b5b083 ui sso settings 2025-03-17 15:54:41 -07:00
Ishaan Jaff
28369c4746 ui networking getSSOSettingsCall 2025-03-17 15:54:20 -07:00
Ishaan Jaff
9c13b14ae8 ui new build 2025-03-14 21:46:40 -07:00
Ishaan Jaff
7b32d1de04 add tool tip for foundry 2025-03-14 21:34:17 -07:00
Ishaan Jaff
5786f086d5 fix example for azure foundry 2025-03-14 21:31:21 -07:00
Ishaan Jaff
b339df0a64 ui new build 2025-03-14 21:29:42 -07:00
Ishaan Jaff
80efd2afea docs azure ai foundry prompt 2025-03-14 21:28:50 -07:00
Ishaan Jaff
ade528369b ui new build 2025-03-14 21:23:13 -07:00
Ishaan Jaff
2cd1301eaa 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
e1cb5bad21 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
0d8a2c0bae 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
15b5d5cd41 reanme toModelConnectionTest 2025-03-14 21:07:41 -07:00
Ishaan Jaff
4eb5e0caa3 fix test connection 2025-03-14 21:02:58 -07:00
Krrish Dholakia
a1f3e60d18 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
18c5dd5157 explain litellm mode 2025-03-14 19:59:04 -07:00
Krrish Dholakia
db4be0c24a fix(create_key_button.tsx): retrieve all available team models on team select 2025-03-14 19:50:49 -07:00
Ishaan Jaff
e23b51d7d4 fix params to test connection 2025-03-14 18:57:39 -07:00
Ishaan Jaff
5b1867feca fix mode 2025-03-14 18:53:14 -07:00
Ishaan Jaff
0951af499b testConnectionRequest 2025-03-14 18:34:22 -07:00
Krrish Dholakia
1abce5c47b build: new ui build 2025-03-14 18:18:03 -07:00
Krrish Dholakia
f88a9b9fbe fix(top_key_view.tsx): fix bar chart to use key alias 2025-03-14 17:59:40 -07:00
Krrish Dholakia
fdcc2ce831 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
bee72d03c6 fix(model_info_view.tsx): call db for model info 2025-03-14 17:44:45 -07:00
Ishaan Jaff
d0fbea08bd fix dup close 2025-03-14 17:29:53 -07:00
Ishaan Jaff
2595c6b373 workign run test connection many times 2025-03-14 17:27:30 -07:00
Ishaan Jaff
7264598d38 fix Test Modes 2025-03-14 17:21:34 -07:00
Ishaan Jaff
f360801c00 decent test connection 2025-03-14 17:08:45 -07:00
Ishaan Jaff
1fcfffde84 cleaner view 2025-03-14 17:02:13 -07:00
Ishaan Jaff
52eba29436 fix dont show extra modal 2025-03-14 16:50:32 -07:00
Ishaan Jaff
242ca52308 delete bloat file 2025-03-14 16:47:54 -07:00
Ishaan Jaff
f11411248e working showing user the raw request / response 2025-03-14 16:39:48 -07:00