[PR #11727] [CLOSED] feat: Save prompts from chat response #22783

Closed
opened 2026-04-20 04:23:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11727
Author: @aaaalrashd
Created: 3/15/2025
Status: Closed

Base: devHead: save_propmpts


📝 Commits (8)

📊 Changes

56 files changed (+280 additions, -54 deletions)

View changed files

📝 backend/open_webui/config.py (+6 -0)
📝 backend/open_webui/main.py (+3 -0)
📝 backend/open_webui/routers/auths.py (+5 -0)
📝 src/lib/components/admin/Settings/General.svelte (+6 -0)
📝 src/lib/components/chat/Messages/ResponseMessage.svelte (+53 -1)
📝 src/lib/components/chat/Settings/Interface.svelte (+9 -1)
📝 src/lib/i18n/locales/ar-BH/translation.json (+4 -1)
📝 src/lib/i18n/locales/bg-BG/translation.json (+3 -1)
📝 src/lib/i18n/locales/bn-BD/translation.json (+3 -1)
📝 src/lib/i18n/locales/ca-ES/translation.json (+3 -1)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+4 -1)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+4 -1)
📝 src/lib/i18n/locales/da-DK/translation.json (+4 -1)
📝 src/lib/i18n/locales/de-DE/translation.json (+4 -1)
📝 src/lib/i18n/locales/dg-DG/translation.json (+4 -1)
📝 src/lib/i18n/locales/el-GR/translation.json (+4 -1)
📝 src/lib/i18n/locales/en-GB/translation.json (+4 -1)
📝 src/lib/i18n/locales/en-US/translation.json (+4 -1)
📝 src/lib/i18n/locales/es-ES/translation.json (+4 -1)
📝 src/lib/i18n/locales/eu-ES/translation.json (+4 -1)

...and 36 more files

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

  • This update introduces a save icon to the OpenWebUI interface, along with functionality that enables users to save prompts easily. The feature includes:

  • Save Icon: A dedicated button next to the prompt input field.

  • Save Functionality: Users can click the save button to store prompts for future use.

  • Notifications:
    A success message appears when a prompt is saved successfully.
    An error notification is displayed if saving fails.
    Prevention of Duplicate Saves:
    If a prompt is already saved, the save button is disabled.

  • This is achieved using an annotation named saved, ensuring users don’t accidentally store the same prompt multiple times.

  • added as opt-in on admin settings

Added

  • Save prompt icons on chat response and translation files.
  • Added as opt-in on admin settings with "Enable save prompt".

Changed

  • N/A

Deprecated

  • N/A

Removed

  • N/A

Fixed

  • N/A

Security

  • N/A

Breaking Changes

  • BREAKING CHANGE:

N/A

Additional Information

Screenshots or Videos

Screenshot

🔄 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/11727 **Author:** [@aaaalrashd](https://github.com/aaaalrashd) **Created:** 3/15/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `save_propmpts` --- ### 📝 Commits (8) - [`daad45b`](https://github.com/open-webui/open-webui/commit/daad45b2606d23f81f446d3cf39e8859d4d88057) Save propmpts - [`05781a5`](https://github.com/open-webui/open-webui/commit/05781a5321615a0cf8a98cbf008875421fef8daf) Save Prompt - [`4d03d9a`](https://github.com/open-webui/open-webui/commit/4d03d9aaaf55055c5a9f17370f747bf38ffff207) fix conflict - [`2286aa0`](https://github.com/open-webui/open-webui/commit/2286aa0045313a207e7a49cfca40ed10d3b549fd) fix conflict - [`08e7f52`](https://github.com/open-webui/open-webui/commit/08e7f52eb5e76457a35c4555b40c2439510f5bc0) fix conflcit uk - [`19cbd5f`](https://github.com/open-webui/open-webui/commit/19cbd5f71eda969a2c70e1f1f32a874df4b9dca5) Merge branch 'dev' into save_propmpts - [`55dd5d9`](https://github.com/open-webui/open-webui/commit/55dd5d99e94499824be8dbd4180f9c396108ebf1) add opt-in (admin settings) - [`1654ca1`](https://github.com/open-webui/open-webui/commit/1654ca143306d32c5c44b6601dfb2fd0b0239e54) add translation key "Prompt Saved Successfully" ### 📊 Changes **56 files changed** (+280 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+6 -0) 📝 `backend/open_webui/main.py` (+3 -0) 📝 `backend/open_webui/routers/auths.py` (+5 -0) 📝 `src/lib/components/admin/Settings/General.svelte` (+6 -0) 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+53 -1) 📝 `src/lib/components/chat/Settings/Interface.svelte` (+9 -1) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+3 -1) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+3 -1) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+3 -1) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/en-US/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+4 -1) 📝 `src/lib/i18n/locales/eu-ES/translation.json` (+4 -1) _...and 36 more files_ </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description - This update introduces a save icon to the OpenWebUI interface, along with functionality that enables users to save prompts easily. The feature includes: - Save Icon: A dedicated button next to the prompt input field. - Save Functionality: Users can click the save button to store prompts for future use. - Notifications: A success message appears when a prompt is saved successfully. An error notification is displayed if saving fails. Prevention of Duplicate Saves: If a prompt is already saved, the save button is disabled. - This is achieved using an annotation named saved, ensuring users don’t accidentally store the same prompt multiple times. - added as opt-in on admin settings ### Added - Save prompt icons on chat response and translation files. - Added as opt-in on admin settings with "Enable save prompt". ### Changed - N/A ### Deprecated - N/A ### Removed - N/A ### Fixed - N/A ### Security - N/A ### Breaking Changes - **BREAKING CHANGE**: N/A --- ### Additional Information - Idea: [11700](https://github.com/open-webui/open-webui/discussions/11700) - [opt-in requested ](https://github.com/open-webui/open-webui/pull/11713) ### Screenshots or Videos <img width="112" alt="Screenshot " src="https://github.com/user-attachments/assets/8d3e09c9-b77c-4565-9562-d77e28d8a274" /> --- <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:23:52 -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#22783