From 2cfadcf3cbe2216289acb20d285acbf05bf85fcf Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 19:09:50 +0000 Subject: [PATCH] fix(proxy): save callback config without mutating the loaded dict Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/proxy_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 6f8068d392d..f70ed16626b 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -19082,10 +19082,10 @@ async def delete_callback( for key in matching_keys } updated_settings: Final = {**litellm_settings, **after_callbacks} - config["litellm_settings"] = updated_settings + updated_config: Final = {**config, "litellm_settings": updated_settings} # Save the updated configuration - await proxy_config.save_config(new_config=config) + await proxy_config.save_config(new_config=updated_config) asyncio.create_task( create_config_audit_log(