litellm/tests/unit/llms/hosted_vllm/image_edit
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
..
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
test_hosted_vllm_image_edit_transformation.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