mirror of
https://github.com/langgenius/dify.git
synced 2026-05-31 19:00:22 -04:00
fix: canonicalize persisted file references
This commit is contained in:
@@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user