mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
[PR #7438] [CLOSED] Feature o1 thought #8854
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/7438
Author: @seshuthota
Created: 11/27/2024
Status: ❌ Closed
Base:
dev← Head:feature-o1-thought📝 Commits (2)
0a26c41Merge pull request #7399 from open-webui/dev23c59ddFunctionality to support the thought response📊 Changes
5 files changed (+317 additions, -70 deletions)
View changed files
📝
package-lock.json(+97 -24)📝
package.json(+3 -1)📝
src/lib/components/chat/Messages/ContentRenderer.svelte(+162 -45)➕
src/lib/components/chat/Messages/ThoughtOutput.svelte(+46 -0)📝
src/tailwind.css(+9 -0)📄 Description
Pull Request Title
fix: Resolve duplicate content rendering in chat messages
Description
This PR fixes an issue where chat messages containing
<Thought>and<Output>tags were being rendered multiple times in the UI. The changes improve the content parsing logic and ensure single rendering of message content.Changelog Entry
Description
Fixed a bug in the chat message rendering system where special tag content was being duplicated in the UI. This improves the readability and correctness of chat messages containing thought processes and outputs.
Added
Changed
parseSpecialTagsfunction to handle edge casesFixed
Code Changes
src/lib/components/chat/Messages/ContentRenderer.svelte
Testing
<Thought>tags<Thought>and<Output>tagsAdditional Information
##Screenshot of changes


Collapsed thought tag
Expanded thought tag
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.