litellm/tests/unit/proxy/decisions_endpoints
Mateo Wang 01bd74ee51
fix(proxy): restamp the requested model on frozen decisions responses (#56153)
* fix(proxy): Restamp the requested model on frozen decisions responses

DecisionsResponse is a frozen pydantic model, so setting model raised and the
proxy returned the backend model name. Copy any frozen response with the
requested model, as was already done for ExtractionResponse.

Signed-off-by: raedbrahem <raed@1dev.space>

* test(proxy): Pin in-place restamp for mutable model responses

Signed-off-by: raedbrahem <raed@1dev.space>

* test(proxy): annotate the new restamp test variables as Final

* test(proxy): expect the requested model name from the decisions endpoint

---------

Signed-off-by: raedbrahem <raed@1dev.space>
Co-authored-by: raedbrahem <raed@1dev.space>
2026-12-04 17:28:00 +00:00
..
__init__.py feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers (#44236) 2026-10-03 17:38:38 +00:00
test_endpoints.py fix(proxy): restamp the requested model on frozen decisions responses (#56153) 2026-12-04 17:28:00 +00:00