litellm/tests/unit/proxy/image_endpoints
kenneth-berri a1a834a87b
fix(images): support stream=True on image generation and edit (#53966)
* fix(images): support stream=True on image generation and edit

OpenAI answers stream=True image requests with named SSE events. The SDK and
proxy now forward those events, and the completed event is logged and priced
like a normal image response.

Fixes #53719

* fix(images): settle cancelled streams, raise on incomplete streams, run output hooks on every streamed image

* fix(images): answer a generation streamed through extra_body as an event stream

* fix(images): keep a hook's dict result and mark extra_body streams as streaming for guardrails

* test(images): cover a disconnect after a preview while the next read is pending
2026-11-23 18:01:29 -08:00
..
__init__.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00
test_azure_routes.py test: migrate SDK and proxy-booting legacy CircleCI tests to their tiers (#45758) 2026-10-11 00:17:21 -07:00
test_endpoints.py fix(images): support stream=True on image generation and edit (#53966) 2026-11-23 18:01:29 -08:00