litellm/tests/unit/proxy/image_endpoints
OrangerXu 8d9bfe0bd5 feat(proxy): route POST /v1/images/variations to aimage_variation
litellm.aimage_variation exists but the proxy registered no
/v1/images/variations route, so multipart variation requests 404ed
before reaching the provider. The route mirrors the edits endpoint:
three paths (v1, bare, azure deployment), the image UploadFile
converted to BytesIO, numeric form fields coerced, string images
rejected, and the request dispatched through
ProxyBaseLLMRequestProcessing with the new aimage_variation
route_type. The Router gains an aimage_variation factory entry, the
processing allow-lists and resolve_inference_model gain the
image_variation kind (model resolution mirrors image_edit).

Fixes #46367
2026-10-14 14:20:06 +08:00
..
__init__.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
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(proxy): return 4xx instead of 500 for missing required params, invalid pagination and unknown ids (#43787) 2026-10-02 22:48:53 -07:00
test_image_variation_route.py feat(proxy): route POST /v1/images/variations to aimage_variation 2026-10-14 14:20:06 +08:00