mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-16 18:16:34 +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>
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.