[PR #18195] [MERGED] fix: Artifacts duplicate matching #63551

Closed
opened 2026-05-06 08:23:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18195
Author: @EntropyYue
Created: 10/9/2025
Status: Merged
Merged: 10/9/2025
Merged by: @tjbck

Base: devHead: fix/artifacts-duplicate-match


📝 Commits (3)

📊 Changes

1 file changed (+36 additions, -36 deletions)

View changed files

📝 src/lib/components/chat/Artifacts.svelte (+36 -36)

📄 Description

Changelog Entry

Description

  • This solves the problem of potential duplicate HTML in Artifacts. The original logic was to try to match both code blocks and non-code blocks simultaneously, but this could lead to duplication. The solution is to assume that the model will always use code blocks in this response when a code block is matched

Fixed

  • Fixed the issue of duplicate HTML in Artifacts

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.


🔄 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/18195 **Author:** [@EntropyYue](https://github.com/EntropyYue) **Created:** 10/9/2025 **Status:** ✅ Merged **Merged:** 10/9/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/artifacts-duplicate-match` --- ### 📝 Commits (3) - [`8d7d79d`](https://github.com/open-webui/open-webui/commit/8d7d79d54b9160425fc5050b3484bec40dd3b44e) 0.6.33 (#18118) - [`46ae3f4`](https://github.com/open-webui/open-webui/commit/46ae3f4f5d7d4d706041bdae4ad2d802e568712b) Merge branch 'dev' into main - [`8ac3095`](https://github.com/open-webui/open-webui/commit/8ac30955a36f7e03832bc732202283200fb9a5ab) fix: Artifacts duplicate matching ### 📊 Changes **1 file changed** (+36 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Artifacts.svelte` (+36 -36) </details> ### 📄 Description # Changelog Entry ### Description - This solves the problem of potential duplicate HTML in Artifacts. The original logic was to try to match both code blocks and non-code blocks simultaneously, but this could lead to duplication. The solution is to assume that the model will always use code blocks in this response when a code block is matched ### Fixed - Fixed the issue of duplicate HTML in Artifacts ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <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-05-06 08:23:41 -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#63551