litellm/tests/unit/proxy/image_endpoints
ryan-crabbe-berri dadaf91190
fix(images): send JSON-form image edits upstream as JSON instead of a url-encoded form (#53864)
* test(images): cover JSON-form image references on /v1/images/edits

* fix(images): send JSON-form image edits upstream as JSON instead of a url-encoded form

* test(images): fold the image-reference case into the full-body mask assertion

* fix(images): keep image edits with an uploaded mask file on the multipart path

* fix(images): keep hosted vLLM and Azure MAI image edits on the form path

vLLM-Omni and the Azure AI Foundry MAI edit route only read form fields, so
JSON-form image references must not switch those requests to a JSON body.

* fix(proxy): check managed file ownership for image edit file references

* test(images): assert whole request bodies in image edit wire tests

* fix(images): check for uploaded files without recursion and keep the JSON path typed

* fix(proxy): validate the image edit request before walking it for file ids
2026-11-24 16:48:05 -08:00
..
__init__.py
test_azure_routes.py test: migrate SDK and proxy-booting legacy CircleCI tests to their tiers (#45758) 2026-10-11 00:17:21 -07:00
test_endpoints.py fix(images): send JSON-form image edits upstream as JSON instead of a url-encoded form (#53864) 2026-11-24 16:48:05 -08:00