mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #11727] [CLOSED] feat: Save prompts from chat response #38413
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/11727
Author: @aaaalrashd
Created: 3/15/2025
Status: ❌ Closed
Base:
dev← Head:save_propmpts📝 Commits (8)
daad45bSave propmpts05781a5Save Prompt4d03d9afix conflict2286aa0fix conflict08e7f52fix conflcit uk19cbd5fMerge branch 'dev' into save_propmpts55dd5d9add opt-in (admin settings)1654ca1add translation key "Prompt Saved Successfully"📊 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:
devbranch.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
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
N/A
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.