Skip to content

Commit

Permalink
chore: LOCAL_FILE also try to use remote_url as Prompt message (langg…
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored Dec 10, 2024
1 parent bdd5869 commit 9e23c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/file/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _to_url(f: File, /):
elif f.transfer_method == FileTransferMethod.LOCAL_FILE:
if f.related_id is None:
raise ValueError("Missing file related_id")
return helpers.get_signed_file_url(upload_file_id=f.related_id)
return f.remote_url or helpers.get_signed_file_url(upload_file_id=f.related_id)
elif f.transfer_method == FileTransferMethod.TOOL_FILE:
# add sign url
if f.related_id is None or f.extension is None:
Expand Down

0 comments on commit 9e23c3d

Please sign in to comment.