litellm/tests/unit/llms/azure_ai/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): add package markers to migrated unit test directories 2026-09-20 11:53:14 +00:00
test_azure_ai_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
test_gpt_image_edit_transformation.py fix(azure_ai): keep the shared edit handler unchanged and send caller auth headers like azure_ai chat 2026-11-10 23:34:39 -08:00
test_mai_image_edit_transformation.py test(unit): clear ambient Azure credentials in entra token tests 2026-09-20 11:05:03 +00:00