mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* fix(images): send image_edit markup as a multipart file part * fix(images): unpack FileTypes tuples for multipart uploads and add Final annotations * fix(images): avoid Unknown tuple narrowing in _build_upload_part for basedpyright * fix(images): send tuple mask uploads through the shared upload part helper Mask uploads now go through _add_image_to_files like image and markup, so a (filename, content[, content_type[, headers]]) mask tuple is sent as that file instead of nested as the part's content * fix(images): reject JSON image references for mask and markup, send the first markup of a list, and let Azure drop markup A mask or markup given as a JSON image reference now gets a 400 from LiteLLM before any provider call, instead of a 500 from the multipart send A markup list sends its first file, the same as mask Azure answers Unknown parameter for markup, so Azure no longer lists it, and drop_params drops it The FLUX 2 edit config now returns list[str] like its parent * fix(hosted_vllm): exclude unsupported markup param from image_edit config * fix(images): stop listing markup for Azure AI FLUX Kontext and name the resolved provider on image edit errors The JSON image reference 400 used litellm_params built before the provider was resolved, so azure, azure_ai and litellm_proxy errors said openai. The hosted vLLM markup test now goes through litellm.image_edit, and the JSON reference test covers a list holding a reference * fix(images): let the markup type hint take a list like image * fix(images): read pathlib.Path image edit uploads, send base file names and reject string mask or markup --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| request_payloads | ||
| __init__.py | ||
| test_image_edit.py | ||
| test_image_edit_extra_params.py | ||
| test_image_edit_utils.py | ||
| test_image_generation_extra_headers.py | ||
| test_main.py | ||
| test_streaming.py | ||