mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-15 16:19:45 +00:00
Previously, model_dump(exclude_none=True) included all bool fields (since False != None), causing a partial PATCH to overwrite every other setting to its default. Fix uses exclude_unset=True and reads the existing DB record before merging, giving proper PATCH semantics. This was a pre-existing bug but is fixed here since we're touching this code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>