mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix: typo in variable name generic_role_mappoings_default_role
Rename `generic_role_mappoings_default_role` to `generic_role_mappings_default_role` in `_setup_role_mappings()`. The env var name `GENERIC_ROLE_MAPPINGS_DEFAULT_ROLE` was already correct, only the internal Python variable had the typo.
This commit is contained in:
parent
39c1042258
commit
29ff4c00e4
1 changed files with 2 additions and 2 deletions
|
|
@ -712,7 +712,7 @@ async def _setup_role_mappings() -> Optional["RoleMappings"]:
|
|||
generic_role_mappings_group_claim = os.getenv(
|
||||
"GENERIC_ROLE_MAPPINGS_GROUP_CLAIM", None
|
||||
)
|
||||
generic_role_mappoings_default_role = os.getenv(
|
||||
generic_role_mappings_default_role = os.getenv(
|
||||
"GENERIC_ROLE_MAPPINGS_DEFAULT_ROLE", None
|
||||
)
|
||||
if generic_role_mappings is not None:
|
||||
|
|
@ -731,7 +731,7 @@ async def _setup_role_mappings() -> Optional["RoleMappings"]:
|
|||
role_mappings_data = {
|
||||
"provider": "generic",
|
||||
"group_claim": generic_role_mappings_group_claim,
|
||||
"default_role": generic_role_mappoings_default_role,
|
||||
"default_role": generic_role_mappings_default_role,
|
||||
"roles": generic_user_role_mappings_data,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue