mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
is_internal_user_role
This commit is contained in:
parent
8ff8ad82c9
commit
5e1e25d98d
2 changed files with 9 additions and 1 deletions
|
@ -86,7 +86,7 @@ def _update_internal_new_user_params(data_json: dict, data: NewUserRequest) -> d
|
|||
)
|
||||
|
||||
is_internal_user = False
|
||||
if data.user_role == LitellmUserRoles.INTERNAL_USER:
|
||||
if data.user_role and data.user_role._is_internal_user_role:
|
||||
is_internal_user = True
|
||||
if litellm.default_internal_user_params:
|
||||
for key, value in litellm.default_internal_user_params.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue