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
🔄 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

---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12230
Author: @lucagutzeit
Created: 3/31/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (2)
81f2398Support for Images in Prompt Suggestions83a6178Show 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
/suggestionsendpoint. I can add both if needed./suggestionsendpoint and import functions in the models settings to add an base64 image to the prompt.Changelog Entry
Description
This PR adds support for images in promp suggestions.
Added
Suggestions.svelte,Interface.svelteandModelEditor.svelteMessages.svelteto make it possible to add the image to the message input/suggestionsendpoint inconfig.pyAdditional Information
functionality of the chat, or creating a new component that handles uploads.
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.