litellm-mirror/tests/litellm/proxy
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
..
auth refactor tests 2025-03-26 20:00:10 -07:00
common_utils unit test reset budget job 2025-03-17 19:54:51 -07:00
db test_handle_db_exception_with_connection_error 2025-03-26 20:44:25 -07:00
experimental/mcp_server test tool registry 2025-03-20 22:03:56 -07:00
health_endpoints test_db_health_readiness_check_with_prisma_error 2025-03-26 20:56:39 -07:00
hooks (UI) Error Logs improvements - Store Raw proxy server request for success and failure (#8917) 2025-03-01 16:26:47 -08:00
management_endpoints 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
pass_through_endpoints test: migrate testing 2025-03-22 12:48:53 -07:00
spend_tracking test(test_spend_management_endpoints.py): add unit testing for router + spend logs 2025-03-24 15:33:02 -07:00
ui_crud_endpoints update_internal_user_settings 2025-03-17 18:26:42 -07:00
test_caching_routes.py (bug fix) - Fix Cache Health Check for Redis when redis_version is float (#8979) 2025-03-04 21:26:18 -08:00
test_proxy_cli.py (Bug fix) - running litellm proxy on wndows (#8735) 2025-02-25 15:19:19 -08:00
test_proxy_server.py test(test_proxy_server.py): make test work on ci/cd 2025-03-19 12:01:37 -07:00
test_route_llm_request.py fix(route_llm_request.py): move to using common router, even for clie… (#8966) 2025-03-03 22:57:08 -08:00