fix: canonicalize persisted file references

This commit is contained in:
WH-2099
2026-03-21 14:40:49 +08:00
parent 184f944fa0
commit 2c6dc82ab7
22 changed files with 446 additions and 136 deletions

View File

@@ -247,7 +247,7 @@ class DifyRetrieverAttachmentLoader(RetrieverAttachmentLoaderProtocol):
"type": FileType.IMAGE,
"transfer_method": FileTransferMethod.LOCAL_FILE,
"remote_url": upload_file.source_url,
"reference": build_file_reference(record_id=str(upload_file.id), storage_key=upload_file.key),
"reference": build_file_reference(record_id=str(upload_file.id)),
"size": upload_file.size,
}
)