mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
add doc string for enum
This commit is contained in:
parent
338fc82ce8
commit
a3b1493bab
1 changed files with 10 additions and 4 deletions
|
|
@ -47,11 +47,14 @@ class LitellmUserRoles(str, enum.Enum):
|
|||
|
||||
@property
|
||||
def description(self):
|
||||
"""
|
||||
Descriptions for the enum values
|
||||
"""
|
||||
descriptions = {
|
||||
"proxy_admin": "admin over the platform",
|
||||
"proxy_admin_view_only": "can login, view all own keys, view all spend",
|
||||
"internal_user": "internal user can login, view/create/delete their own keys, view their spend",
|
||||
"internal_user_view_only": "internal user can login, view their own keys, view their own spend",
|
||||
"proxy_admin": "admin over litellm proxy, has all permissions",
|
||||
"proxy_admin_view_only": "view all keys, view all spend",
|
||||
"internal_user": "view/create/delete their own keys, view their own spend",
|
||||
"internal_user_view_only": "view their own keys, view their own spend",
|
||||
"team": "team scope used for JWT auth",
|
||||
"customer": "customer",
|
||||
}
|
||||
|
|
@ -59,6 +62,9 @@ class LitellmUserRoles(str, enum.Enum):
|
|||
|
||||
@property
|
||||
def ui_label(self):
|
||||
"""
|
||||
UI labels for the enum values
|
||||
"""
|
||||
ui_labels = {
|
||||
"proxy_admin": "Admin",
|
||||
"proxy_admin_view_only": "Admin - View Only",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue