fix(proxy): save callback config without mutating the loaded dict
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-10-02 19:09:50 +00:00
parent 6c2c0d963d
commit 2cfadcf3cb

View file

@ -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(