mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(proxy_server.py): don't silently fail load_team_config
This commit is contained in:
parent
d7d1aa1266
commit
688193bea3
1 changed files with 4 additions and 4 deletions
|
@ -1036,10 +1036,10 @@ class ProxyConfig:
|
|||
if all_teams_config is None:
|
||||
return team_config
|
||||
for team in all_teams_config:
|
||||
if "team_id" in team:
|
||||
if team_id == team["team_id"]:
|
||||
team_config = team
|
||||
break
|
||||
assert "team_id" in team
|
||||
if team_id == team["team_id"]:
|
||||
team_config = team
|
||||
break
|
||||
for k, v in team_config.items():
|
||||
if isinstance(v, str) and v.startswith("os.environ/"):
|
||||
team_config[k] = litellm.get_secret(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue