[PR #12230] [CLOSED] Feat: Add Support for Images in Prompt Suggestions #126528

Closed
opened 2026-05-21 07:47:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/12230
Author: @lucagutzeit
Created: 3/31/2025
Status: Closed

Base: devHead: dev


📝 Commits (2)

  • 81f2398 Support for Images in Prompt Suggestions
  • 83a6178 Show images in settings for prompt suggestions

📊 Changes

7 files changed (+65 additions, -17 deletions)

View changed files

📝 backend/open_webui/routers/configs.py (+1 -0)
📝 src/lib/components/admin/Settings/Interface.svelte (+19 -8)
📝 src/lib/components/chat/Chat.svelte (+1 -0)
📝 src/lib/components/chat/Messages.svelte (+11 -3)
📝 src/lib/components/chat/Placeholder.svelte (+8 -3)
📝 src/lib/components/chat/Suggestions.svelte (+13 -3)
📝 src/lib/components/workspace/Models/ModelEditor.svelte (+12 -0)

📄 Description

First-time contributor: #12126

Checklist

  • Target branch
  • Description
  • Changelog:
  • Documentation: Currently there is no documentation for Prompt Suggestions or the /suggestions endpoint. I can add both if needed.
  • Dependencies: No new dependencies
  • Testing: Manually tested, using the /suggestions endpoint and import functions in the models settings to add an base64 image to the prompt.
  • Code review
  • Prefix

Changelog Entry

Description

This PR adds support for images in promp suggestions.

Added

  • Added the Image component to Suggestions.svelte, Interface.svelte and ModelEditor.svelte
  • Added a binding for files to Messages.svelte to make it possible to add the image to the message input
  • imageUrl as additional optional argument for the /suggestions endpoint in config.py

Additional Information

  • At this point adding an image can only be done by using endpoints or importing a JSON file in the models admin settings.
  • Uploading a image in a way similar to the chat would be better, but I didn't see a way to do that without copying the upload
    functionality of the chat, or creating a new component that handles uploads.

Screenshots or Videos

image


🔄 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/12230 **Author:** [@lucagutzeit](https://github.com/lucagutzeit) **Created:** 3/31/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (2) - [`81f2398`](https://github.com/open-webui/open-webui/commit/81f239849a892d6b2df00e3bd73e2dfbdf19d69a) Support for Images in Prompt Suggestions - [`83a6178`](https://github.com/open-webui/open-webui/commit/83a617817ae56e117d32852a5cef5e256be21e9e) Show images in settings for prompt suggestions ### 📊 Changes **7 files changed** (+65 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/configs.py` (+1 -0) 📝 `src/lib/components/admin/Settings/Interface.svelte` (+19 -8) 📝 `src/lib/components/chat/Chat.svelte` (+1 -0) 📝 `src/lib/components/chat/Messages.svelte` (+11 -3) 📝 `src/lib/components/chat/Placeholder.svelte` (+8 -3) 📝 `src/lib/components/chat/Suggestions.svelte` (+13 -3) 📝 `src/lib/components/workspace/Models/ModelEditor.svelte` (+12 -0) </details> ### 📄 Description ### First-time contributor: #12126 # Checklist - [x] **Target branch** - [x] **Description** - [x] **Changelog:** - [x] **Documentation:** Currently there is no documentation for Prompt Suggestions or the `/suggestions` endpoint. I can add both if needed. - [x] **Dependencies:** No new dependencies - [x] **Testing:** Manually tested, using the `/suggestions` endpoint and import functions in the models settings to add an base64 image to the prompt. - [x] **Code review** - [x] **Prefix** # Changelog Entry ### Description This PR adds support for images in promp suggestions. ### Added - Added the Image component to `Suggestions.svelte`, `Interface.svelte` and `ModelEditor.svelte` - Added a binding for files to `Messages.svelte` to make it possible to add the image to the message input - imageUrl as additional optional argument for the `/suggestions` endpoint in `config.py` --- ### Additional Information - At this point adding an image can only be done by using endpoints or importing a JSON file in the models admin settings. - Uploading a image in a way similar to the chat would be better, but I didn't see a way to do that without copying the upload functionality of the chat, or creating a new component that handles uploads. ### Screenshots or Videos ![image](https://github.com/user-attachments/assets/132e8365-1618-43a2-b875-f6708d044216) --- <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-05-21 07:47:39 -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#126528