mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #21301] issue: Wrong request header in the Image Generate function. #34965
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 @Randark-JMT on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21301
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.7.2
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
Firefox 147.0.3
Confirmation
README.md.Expected Behavior
I used a routing transformation technique to convert the image generation model from a third-party vendor into an interface that conforms to the OpenAI API definition and provides it to Open-WebUI. Theoretically, this should work correctly and provide image generation capabilities.
Actual Behavior
However, Open-WebUI used the 'Content-Type': 'application/json' request header for the returned image URL, causing the model provider to refuse to respond.
Steps to Reproduce
wan2.6-t2ifrom Aliyun Bailian to a custom API which compliant with OpenAPI routing specificationsLogs & Screenshots
Backend Log:
Additional Information
This is my custom API's response
@tjbck commented on GitHub (Feb 23, 2026):
Should be addressed.