mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[PR #21669] [MERGED] feat: add citation sources for fetch_url tool results #26195
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/21669
Author: @Classic298
Created: 2/20/2026
Status: ✅ Merged
Merged: 2/21/2026
Merged by: @tjbck
Base:
dev← Head:url-citations📝 Commits (1)
79e91defeat: add citation sources for fetch_url tool results📊 Changes
1 file changed (+24 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+24 -1)📄 Description
feat: add citation sources for fetch_url tool results
This recreates the already existing behaviour where when I manually add a website to a chat, it IS COUNTED as a source, so model-fetched URLs should be too
URL fetches now produce clickable citation sources in the UI, matching the existing behavior of search_web and knowledge file tools. When a model calls fetch_url during native tool calling, the fetched URL appears as a citable source with a content preview, giving users full transparency into what pages the model referenced.
Tested locally
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.