mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #18284] [MERGED] feat: Extend FileMetadataResponse to have hash field #112050
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/18284
Author: @Stoyan-Zlatev
Created: 10/13/2025
Status: ✅ Merged
Merged: 10/14/2025
Merged by: @tjbck
Base:
dev← Head:feature/knowledge-response-file-hash📝 Commits (1)
f0dfdb3Extend FileMetadataResponse to have hash field📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
backend/open_webui/models/files.py(+4 -1)📄 Description
Changelog Entry
Description
/api/v1/knowledge/{id}endpoint to include thehashvalue for each file returned. This supports a custom file-sync logic that compares hashes instead of re-uploading entire files, greatly improving sync performance and efficiency.Added
hashproperty in theFileMetadataResponsemodel.Changed
hashfield.Screenshots or Videos
Related Discussion
See:
https://github.com/open-webui/open-webui/discussions/18282
https://github.com/open-webui/open-webui/discussions/18323
Related Issue
See: https://github.com/open-webui/open-webui/issues/18283
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.