From 9c0437cecf7b458c5e41bf434d678c5afa36c8f3 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 ef36303787..0f6cec5d45 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)