mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
refactor(proxy): snapshot only set sections in ProxyRuntimeConfig.to_mapping
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ab5b2192cc
commit
3653f51364
1 changed files with 1 additions and 1 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue