diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index 6608e152466..0012083dd35 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -957,6 +957,8 @@ class LiteLLMRoutes(enum.Enum): "/user/available_users", "/user/available_roles", "/user/daily/activity", + # Usage > Ask AI: a POST that only reads daily activity aggregates. + "/usage/ai/chat", "/user/daily/activity/aggregated", "/user/daily/activity/aggregated/keys", "/user/daily/activity/aggregated/search", diff --git a/tests/unit/proxy/auth/test_route_checks.py b/tests/unit/proxy/auth/test_route_checks.py index 21958e88008..b13d1826b2d 100644 --- a/tests/unit/proxy/auth/test_route_checks.py +++ b/tests/unit/proxy/auth/test_route_checks.py @@ -350,6 +350,7 @@ def test_proxy_admin_viewer_blocked_management_writes(blocked_route): "/model/info", "/jwt/key/mapping/list", "/jwt/key/mapping/info", + "/usage/ai/chat", ], ) def test_proxy_admin_viewer_allowed_management_reads(allowed_read_route):