mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(proxy/_types.py): allow jwt admin to access spend routes
This commit is contained in:
parent
7276c6eb1e
commit
15a6e59431
1 changed files with 8 additions and 2 deletions
|
|
@ -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[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue