litellm-mirror/litellm/proxy/management_endpoints
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
..
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 fix(proxy/_types.py): handle user_email=None 2025-03-21 17:46:18 -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 Allow team admins to add/update/delete models on UI + show api base and model id on request logs (#9572) 2025-03-27 12:06:31 -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