From 80694ba79bac62ee9dc87d76c0ce83464d9c9cdf Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 8 Apr 2024 20:11:48 -0700 Subject: [PATCH] feat - add slack webhooks --- litellm/proxy/proxy_server.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 74d84a456a..9f81806410 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -8001,10 +8001,12 @@ async def update_config(config_info: ConfigYAML): _updated_environment_variables[k] = base64.b64encode( encrypted_value ).decode("utf-8") - config["environment_variables"] = { - **_updated_environment_variables, - **config["environment_variables"], - } + + _existing_env_variables = config["environment_variables"] + + for k, v in _updated_environment_variables.items(): + # overwrite existing env variables with updated values + _existing_env_variables[k] = _updated_environment_variables[k] # update the litellm settings if config_info.litellm_settings is not None: