Skip to content

Commit 25c3caf

Browse files
fujita-halexcodelf
authored andcommitted
fix: allow fallback to remote_url when url is not provided (langgenius#12455)
1 parent d2c1193 commit 25c3caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/factories/file_factory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _build_from_remote_url(
158158
tenant_id: str,
159159
transfer_method: FileTransferMethod,
160160
) -> File:
161-
url = mapping.get("url")
161+
url = mapping.get("url") or mapping.get("remote_url")
162162
if not url:
163163
raise ValueError("Invalid file url")
164164

0 commit comments

Comments
 (0)