fix(proxy_server.py): don't silently fail load_team_config

This commit is contained in:
Krrish Dholakia 2024-02-02 17:39:55 -08:00 committed by ishaan-jaff
parent d7d1aa1266
commit 688193bea3

View file

@ -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)