From 688193bea3d56b701b0178b433dcda1330e3d6b8 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 2 Feb 2024 17:39:55 -0800 Subject: [PATCH] fix(proxy_server.py): don't silently fail load_team_config --- litellm/proxy/proxy_server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index f8e501cb6e..22a5432d90 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -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)