mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
BUG: Model always cites the first source when multiple citations are returned #4055
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?
Originally created by @twaninsecure on GitHub (Feb 22, 2025).
Problem
When a tool emits many citations, the model for some reason can only see the first one as the "source_id".
Verification that only the first source id can be accessed.
Expected behavior
For each of the citations which are visible in the UI and emitted, a separate source_id should be relayed to the model so that it can actually point to those citations correctly.
Tool code
Note that you cannot run this as this uses a local caching service to provide twitter data.
Open WebUI Version: I've updated to 0.5.16 and it's still there. My previous versions also had the same bug.