litellm/tests/unit/images
mateo-berri 35ae255b91 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

On lts/1.108.x a provider that does not list markup drops it without an error, so the FLUX Kontext and hosted vLLM markup tests check that both calls, with and without drop_params, send no markup part instead of expecting UnsupportedParamsError. The Azure AI test file gains the BytesIO import main already had

(cherry picked from commit fe9057344f)
2026-11-24 09:33:43 -08:00
..
request_payloads test: move the unit half of 126 mixed legacy files into tests/unit (#45090) 2026-10-07 14:07:43 -07:00
__init__.py test: move tests/test_litellm root and small trees into tests/unit (#43186) 2026-09-25 11:30:43 -07:00
test_image_edit.py fix(images): stop listing markup for Azure AI FLUX Kontext and name the resolved provider on image edit errors 2026-11-24 09:33:43 -08:00
test_image_edit_extra_params.py fix(images): reject JSON image references for mask and markup, send the first markup of a list, and let Azure drop markup 2026-11-24 06:38:58 -08:00
test_image_edit_utils.py fix(vertex_ai): honor Gemini image size and imageConfig controls on generation and edits 2026-11-20 14:25:47 -08:00
test_image_generation_extra_headers.py test: move tests/test_litellm root and small trees into tests/unit (#43186) 2026-09-25 11:30:43 -07:00
test_main.py fix(images): pass the caller's OpenAI image params to custom provider handlers (#52051) 2026-11-17 07:41:23 +00:00