Files
open-webui/backend/open_webui/routers
HW bddadafa07 fix(images): pass content_type=None to r.json() to accept non-standard MIME types (#24838)
aiohttp's ClientResponse.json() validates the Content-Type header against
'application/json' by default and raises ContentTypeError for any other
value — including 'application/x-ndjson', which Ollama returns for its
OpenAI-compatible /v1/images/generations endpoint.

Pass content_type=None to skip this check while keeping all other parsing
behaviour unchanged.  The fix covers image generation (openai, gemini,
automatic1111 engines) and image editing (openai, gemini engines).
2026-06-01 10:33:24 -07:00
..
2026-05-31 14:59:28 -07:00
2026-05-21 16:56:56 +04:00
2026-05-19 20:44:38 +04:00
2026-05-21 16:56:56 +04:00
2026-06-01 09:53:04 -07:00
2026-05-14 13:12:59 +09:00
2026-05-28 17:24:33 -05:00
2026-05-21 14:01:57 +04:00
2026-05-31 18:42:28 -07:00
2026-05-21 14:01:57 +04:00
2026-05-31 15:10:48 -07:00
2026-05-14 13:19:00 +09:00
2026-05-21 14:01:57 +04:00
2026-05-21 15:29:49 +04:00
2026-05-21 16:25:25 +04:00