From 6866895a27c1ea3e718f12dbb1435506795c5779 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Sat, 2 Dec 2023 11:09:38 -0800 Subject: [PATCH] (fix) proxy: config reading error --- litellm/proxy/proxy_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index ef363037876..0f6cec5d451 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -465,7 +465,7 @@ def load_router_config(router: Optional[litellm.Router], config_file_path: str): ## PRINT YAML FOR CONFIRMING IT WORKS printed_yaml = copy.deepcopy(config) - printed_yaml.pop("environment_variables") + printed_yaml.pop("environment_variables", None) for model in printed_yaml["model_list"]: model["litellm_params"].pop("api_key", None)