mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #14900] [MERGED] fix: prevent redundant documents in expanded citation list #46684
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/14900
Author: @silentoplayz
Created: 6/11/2025
Status: ✅ Merged
Merged: 6/11/2025
Merged by: @tjbck
Base:
dev← Head:fix-references📝 Commits (1)
8e60174fix: prevent redundant documents in expanded citation list📊 Changes
1 file changed (+2 additions, -3 deletions)
View changed files
📝
src/lib/components/chat/Messages/Citations.svelte(+2 -3)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Changed
src/lib/components/chat/Messages/Citations.svelteto usecitations.slice(2)when rendering the collapsed citations within theCollapsiblecomponent'sslot="content". This ensures only documents beyond the initial two are displayed in the expanded list.idattribute and the displayed numerical index for citations within the expanded list to maintain correct numbering.Fixed
Additional Information
N+2documents whenNwas expected, whereNwas the number of "more" documents. This has been corrected.Screenshots or Videos
Before:


After:
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.