mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #14394] Stable Diffusion image generation fails with TypeError: a bytes-like object is required, not 'dict'
#32763
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @egr12345 on GitHub (May 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14394
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0611
Ollama Version (if applicable)
No response
Operating System
Win11
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
Image gen
Actual Behavior
Description:
After updating OpenWebUI, image generation via local Stable Diffusion API (A1111) stopped working. The error occurs when the backend expects raw image bytes but receives a JSON/dict response from the API.
Steps to Reproduce:
Expected Behavior:
OpenWebUI should handle the Stable Diffusion API response correctly (either by accepting JSON with
imagesfield or raw bytes).Proposed Fix:
Modify
upload_image()inimages.pyto parse API responses properly. Example for base64 responses:Additional Context:
Steps to Reproduce
Install last versio 0611
Logs & Screenshots
No
Additional Information
No response
@tjbck commented on GitHub (May 27, 2025):
This has been addressed in latest main and dev, for pip install you'll have to wait until 0.6.12.
@tjbck commented on GitHub (May 28, 2025):
Status: Open.
#14419 In open-webui/open-webui;