Skip to content

[Bug]: LiteLLMProxy no longer show the list of models to the users #17475

Description

@mbeltagy

What happened?

In the most recent update to liteLLM proxy, only the admin can the under "Model + Endpoints"... normal users get a blank page now matter which option they choose. View: Current Team Models or View: All Available Models

Relevant log output

litellm-proxy     | 10:34:21 - LiteLLM Proxy:ERROR: auth_exception_handler.py:79 - litellm.proxy.proxy_server.user_api_key_auth(): Exception occured - Only proxy admin can be used to generate, delete, update info for new keys/users/teams. Route=/schedule/model_cost_map_reload/status. Your role=internal_user. Your user_id=e3fd90****************************f9
litellm-proxy     | Requester IP Address:172.24.0.1
litellm-proxy     | Traceback (most recent call last):
litellm-proxy     |   File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/user_api_key_auth.py", line 1143, in _user_api_key_auth_builder
litellm-proxy     |     _ = await common_checks(
litellm-proxy     |         ^^^^^^^^^^^^^^^^^^^^
litellm-proxy     |     ...<11 lines>...
litellm-proxy     |     )
litellm-proxy     |     ^
litellm-proxy     |   File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/auth_checks.py", line 247, in common_checks
litellm-proxy     |     _is_route_allowed = _is_allowed_route(
litellm-proxy     |         route=route,
litellm-proxy     |     ...<4 lines>...
litellm-proxy     |         valid_token=valid_token,
litellm-proxy     |     )
litellm-proxy     |   File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/auth_checks.py", line 369, in _is_allowed_route
litellm-proxy     |     return _is_api_route_allowed(
litellm-proxy     |         route=route,
litellm-proxy     |     ...<3 lines>...
litellm-proxy     |         user_obj=user_obj,
litellm-proxy     |     )
litellm-proxy     |   File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/auth_checks.py", line 324, in _is_api_route_allowed
litellm-proxy     |     RouteChecks.non_proxy_admin_allowed_routes_check(
litellm-proxy     |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
litellm-proxy     |         user_obj=user_obj,
litellm-proxy     |         ^^^^^^^^^^^^^^^^^^
litellm-proxy     |     ...<4 lines>...
litellm-proxy     |         valid_token=valid_token,
litellm-proxy     |         ^^^^^^^^^^^^^^^^^^^^^^^^
litellm-proxy     |     )
litellm-proxy     |     ^
litellm-proxy     |   File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/route_checks.py", line 245, in non_proxy_admin_allowed_routes_check
litellm-proxy     |     RouteChecks._raise_admin_only_route_exception(
litellm-proxy     |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
litellm-proxy     |         user_obj=user_obj, route=route
litellm-proxy     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
litellm-proxy     |     )
litellm-proxy     |     ^
litellm-proxy     |   File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/route_checks.py", line 142, in _raise_admin_only_route_exception
litellm-proxy     |     raise Exception(
litellm-proxy     |         f"Only proxy admin can be used to generate, delete, update info for new keys/users/teams. Route={route}. Your role={user_role}. Your user_id={masked_user_id}"
litellm-proxy     |     )
litellm-proxy     | Exception: Only proxy admin can be used to generate, delete, update info for new keys/users/teams. Route=/schedule/model_cost_map_reload/status. Your role=internal_user.

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

v1.80.7

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions