(fix) proxy: better debugging when -debug is on

This commit is contained in:
ishaan-jaff 2023-12-05 18:19:15 -08:00
parent 48aa00d6c0
commit 642c62f7b7

View file

@ -427,9 +427,6 @@ 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", None)
if "model_list" in printed_yaml:
for model in printed_yaml["model_list"]:
model["litellm_params"].pop("api_key", None)
print_verbose(f"Loaded config YAML (api_key and environment_variables are not shown):\n{json.dumps(printed_yaml, indent=2)}")