From 15a6e59431a5259c0b07acc60d5c28aec710a26f Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 11 May 2024 21:31:34 -0700 Subject: [PATCH] fix(proxy/_types.py): allow jwt admin to access spend routes --- litellm/proxy/_types.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index d513ba5deb9..a2776f465e5 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -182,8 +182,14 @@ class LiteLLM_JWTAuth(LiteLLMBase): admin_jwt_scope: str = "litellm_proxy_admin" admin_allowed_routes: List[ - Literal["openai_routes", "info_routes", "management_routes"] - ] = ["management_routes"] + Literal[ + "openai_routes", + "info_routes", + "management_routes", + "spend_tracking_routes", + "global_spend_tracking_routes", + ] + ] = ["management_routes", "spend_tracking_routes", "global_spend_tracking_routes"] team_jwt_scope: str = "litellm_team" team_id_jwt_field: str = "client_id" team_allowed_routes: List[