From c7b3193944e96cfb79fddd1abf5f03a41abe0548 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 13 May 2024 16:06:47 -0700 Subject: [PATCH] fix(proxy/_types.py): allow jwt admin to access `/team/list` route --- litellm/proxy/_types.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index a2776f465e5..f91b768e67a 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -82,6 +82,7 @@ class LiteLLMRoutes(enum.Enum): info_routes: List = [ "/key/info", "/team/info", + "/team/list", "/user/info", "/model/info", "/v2/model/info", @@ -110,6 +111,7 @@ class LiteLLMRoutes(enum.Enum): "/team/new", "/team/update", "/team/delete", + "/team/list", "/team/info", "/team/block", "/team/unblock", @@ -189,7 +191,12 @@ class LiteLLM_JWTAuth(LiteLLMBase): "spend_tracking_routes", "global_spend_tracking_routes", ] - ] = ["management_routes", "spend_tracking_routes", "global_spend_tracking_routes"] + ] = [ + "management_routes", + "spend_tracking_routes", + "global_spend_tracking_routes", + "info_routes", + ] team_jwt_scope: str = "litellm_team" team_id_jwt_field: str = "client_id" team_allowed_routes: List[