diff --git a/backend/open_webui/routers/images.py b/backend/open_webui/routers/images.py index 4eced8cb0b..ba824f33c1 100644 --- a/backend/open_webui/routers/images.py +++ b/backend/open_webui/routers/images.py @@ -626,7 +626,7 @@ async def image_generations( ssl=AIOHTTP_CLIENT_SESSION_SSL, ) as r: r.raise_for_status() - res = await r.json() + res = await r.json(content_type=None) images = [] @@ -676,7 +676,7 @@ async def image_generations( ssl=AIOHTTP_CLIENT_SESSION_SSL, ) as r: r.raise_for_status() - res = await r.json() + res = await r.json(content_type=None) images = [] @@ -785,7 +785,7 @@ async def image_generations( headers={'authorization': get_automatic1111_api_auth(request)}, ssl=AIOHTTP_CLIENT_SESSION_SSL, ) as r: - res = await r.json() + res = await r.json(content_type=None) log.debug(f'res: {res}') images = [] @@ -960,7 +960,7 @@ async def image_edits( ssl=AIOHTTP_CLIENT_SESSION_SSL, ) as r: r.raise_for_status() - res = await r.json() + res = await r.json(content_type=None) images = [] for image in res['data']: @@ -1015,7 +1015,7 @@ async def image_edits( ssl=AIOHTTP_CLIENT_SESSION_SSL, ) as r: r.raise_for_status() - res = await r.json() + res = await r.json(content_type=None) images = [] for image in res['candidates']: