mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[PR #14210] [MERGED] refac: improve prompt formatting for selected text in FloatingButtons #23410
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/14210
Author: @ShrootBuck
Created: 5/23/2025
Status: ✅ Merged
Merged: 5/23/2025
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (1)
1d382b8refac: improve prompt formatting for selected text in FloatingButtons📊 Changes
1 file changed (+12 additions, -3 deletions)
View changed files
📝
src/lib/components/chat/ContentRenderer/FloatingButtons.svelte(+12 -3)📄 Description
Description
>) for better LLM input parsing. No functional logic changes - purely a formatting improvement. However, I've experienced quite a few cases now where the (old) logic actually confuses the LLM by having the quote after the Explain/Ask request.Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
Changelog Entry
Changed
FloatingButtonsto use blockquote-style (>) formatting per line of selected text..join('\n')based construction for better readability and maintainability.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.