mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-26 06:03:19 +00:00
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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_azure_routes.py | ||
| test_endpoints.py | ||
| test_image_variation_route.py | ||