fix: allow fallback to remote_url when url is not provided (#12455)

This commit is contained in:
Hiroshi Fujita 2025-01-07 23:33:25 +09:00 committed by GitHub
parent 67228c9b26
commit 4295cefeb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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")