mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
Merge pull request #2478 from BerriAI/litellm_fix_dynamo_team_alias
(fix) patch dynamoDB team_model_alias bug
This commit is contained in:
commit
b2d5f775ca
1 changed files with 4 additions and 1 deletions
|
|
@ -417,7 +417,10 @@ async def user_api_key_auth(
|
|||
|
||||
# Check 1. If token can call model
|
||||
_model_alias_map = {}
|
||||
if valid_token.team_model_aliases is not None:
|
||||
if (
|
||||
hasattr(valid_token, "team_model_aliases")
|
||||
and valid_token.team_model_aliases is not None
|
||||
):
|
||||
_model_alias_map = {
|
||||
**valid_token.aliases,
|
||||
**valid_token.team_model_aliases,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue