litellm/tests/test_litellm/models
derhornspieler d626d65d18 fix(proxy): let the model table validate a row it was handed as an object
/model/block and /model/unblock declare the proxy model table as their response model, and FastAPI
validates the returned row against it with from_attributes. The before-validator that parses the
JSON string columns assumed a mapping, so it called .get on the row object and both endpoints
answered 500 even though the block itself had already been applied

The validator now passes an object through untouched and keeps parsing the string columns it exists
for, which is the case the database actually produces. Found while exercising the provider setup's
enable and disable toggle against a live proxy
2026-08-23 10:35:13 -04:00
..
test_models.py fix(proxy): let the model table validate a row it was handed as an object 2026-08-23 10:35:13 -04:00