mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #13542] [MERGED] fix: support gpt-image-1 with correct parameter #23231
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13542
Author: @tuzkiyoung
Created: 5/6/2025
Status: ✅ Merged
Merged: 5/6/2025
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (1)
9cc00affix: support gpt-image-1 with correct parameter📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/routers/images.py(+2 -2)📄 Description
Pull Request Checklist
Discussion is here.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
As I described in this closed pr. The gpt-image-1 model does not support the "response_format" parameter, which caused issues when generating images. And
6ae2d2c4eawas incorrect. So I commit a little fix in this pr.The ERROR log:
Added
None
Changed
incorrect code:
correct code:
Deprecated
None
Removed
None
Fixed
Security
None
Breaking Changes
Additional Information
Screenshots or Videos
Before change


After change
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.