[PR #10741] [CLOSED] feat: Add option to choose between URL and Base64 inside of response_format for OpenAI API #22585

Closed
opened 2026-04-20 04:15:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/10741
Author: @SleepyYui
Created: 2/25/2025
Status: Closed

Base: devHead: feat-add-10629


📝 Commits (3)

  • a6c31b8 feat: add option to use url as response_format in image gen
  • ed234eb Refactor to make formatter happy
  • b32d906 add translation entries and german translation

📊 Changes

53 files changed (+88 additions, -15 deletions)

View changed files

📝 backend/open_webui/config.py (+5 -0)
📝 backend/open_webui/main.py (+2 -0)
📝 backend/open_webui/routers/images.py (+12 -2)
📝 src/lib/components/admin/Settings/Images.svelte (+20 -13)
📝 src/lib/i18n/locales/ar-BH/translation.json (+1 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+1 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+1 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+1 -0)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+1 -0)
📝 src/lib/i18n/locales/da-DK/translation.json (+1 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+1 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+1 -0)
📝 src/lib/i18n/locales/el-GR/translation.json (+1 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+1 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+1 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/eu-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/fa-IR/translation.json (+1 -0)
📝 src/lib/i18n/locales/fi-FI/translation.json (+1 -0)

...and 33 more files

📄 Description

Changelog Entry

Description

Implements feature requested in #10629

Added

  • New variables in front and backend to keep track of the config (IMAGES_OPENAI_USE_URL/OPENAI_USE_URL)
  • New ENV Variable (IMAGES_OPENAI_USE_URL) which is false by default
  • Checkbox inside of image config to choose between Base64 and URL:
    image

Changed

  • Slightly modified image_generations existing function inside of backend/open_webui/routers/images.py to account for the new option

Breaking Changes

  • Nothing :) Everything should work as before since the default is Base64

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/10741 **Author:** [@SleepyYui](https://github.com/SleepyYui) **Created:** 2/25/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat-add-10629` --- ### 📝 Commits (3) - [`a6c31b8`](https://github.com/open-webui/open-webui/commit/a6c31b822e813bf6e5eec2a336601ebe54e2d0e7) feat: add option to use url as response_format in image gen - [`ed234eb`](https://github.com/open-webui/open-webui/commit/ed234eb785bd2252853677f5085f37378ea05031) Refactor to make formatter happy - [`b32d906`](https://github.com/open-webui/open-webui/commit/b32d9064809fc9bd6574b44565b13bd1f2af6320) add translation entries and german translation ### 📊 Changes **53 files changed** (+88 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+5 -0) 📝 `backend/open_webui/main.py` (+2 -0) 📝 `backend/open_webui/routers/images.py` (+12 -2) 📝 `src/lib/components/admin/Settings/Images.svelte` (+20 -13) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/eu-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/fa-IR/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/fi-FI/translation.json` (+1 -0) _...and 33 more files_ </details> ### 📄 Description # Changelog Entry ### Description Implements feature requested in #10629 ### Added - New variables in front and backend to keep track of the config (IMAGES_OPENAI_USE_URL/OPENAI_USE_URL) - New ENV Variable (IMAGES_OPENAI_USE_URL) which is false by default - Checkbox inside of image config to choose between Base64 and URL: ![image](https://github.com/user-attachments/assets/d529b621-5d1d-4d2c-b66a-b227239801af) ### Changed - Slightly modified `image_generations` existing function inside of `backend/open_webui/routers/images.py` to account for the new option ### Breaking Changes - Nothing :) Everything should work as before since the default is Base64 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 04:15:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#22585