mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 02:46:52 +08:00
fix: allow fallback to remote_url when url is not provided (#12455)
This commit is contained in:
@@ -158,7 +158,7 @@ def _build_from_remote_url(
|
|||||||
tenant_id: str,
|
tenant_id: str,
|
||||||
transfer_method: FileTransferMethod,
|
transfer_method: FileTransferMethod,
|
||||||
) -> File:
|
) -> File:
|
||||||
url = mapping.get("url")
|
url = mapping.get("url") or mapping.get("remote_url")
|
||||||
if not url:
|
if not url:
|
||||||
raise ValueError("Invalid file url")
|
raise ValueError("Invalid file url")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user