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})