mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[PR #19435] [MERGED] fix: Connection error when generation an image using OpenAI #64066
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/19435
Author: @proAlexandr
Created: 11/24/2025
Status: ✅ Merged
Merged: 11/24/2025
Merged by: @tjbck
Base:
dev← Head:images-no-adapters-fix📝 Commits (1)
9d0ba1bfix: "No connection adapters were found" routers/images.py📊 Changes
1 file changed (+1 additions, -3 deletions)
View changed files
📝
backend/open_webui/routers/images.py(+1 -3)📄 Description
Pull Request Checklist
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
This pull request fixes a bug that blocks image generation.
The error happens since url is represented as tuple instead of string
Fixed
Additional Information and Screenshots
Test plan
Context:
I am running openwebui using ghcr.io/open-webui/open-webui:v0.6.38 docker contaner
My images settings

Before:
Getting "An error occurred while generating an image" when trying to generate an image.
I can find this error in DEBUG logs
which comes from backend\open_webui\utils\middleware.py:931
It happens since url in backend\open_webui\routers\images.py:552 is a tuple, not a string
After:
Image generation works as expected
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.