From 3653f51364e83988140124076616703d684509e7 Mon Sep 17 00:00:00 2001 From: mateo Date: Mon, 21 Sep 2026 23:11:57 +0000 Subject: [PATCH] refactor(proxy): snapshot only set sections in ProxyRuntimeConfig.to_mapping Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index 49fe41d985c..e4cc8be6c74 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -3179,7 +3179,7 @@ class ProxyRuntimeConfig(LiteLLMPydanticObjectBase): return self._baseline def to_mapping(self) -> Mapping[str, object]: - return MappingProxyType(self.model_dump(mode="json", exclude_defaults=True)) + return MappingProxyType(self.model_dump(mode="json", exclude_unset=True)) def with_section(self, name: str, value: ConfigSection | ConfigSectionList) -> "ProxyRuntimeConfig": return self.model_copy(update={name: value})