mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
Merge c83fbb789a
into 2fed55ae6b
This commit is contained in:
commit
73dd445208
|
@ -176,7 +176,7 @@ def _get_file_extract_string_func(*, key: str) -> Callable[[File], str]:
|
||||||
case "transfer_method":
|
case "transfer_method":
|
||||||
return lambda x: x.transfer_method
|
return lambda x: x.transfer_method
|
||||||
case "url":
|
case "url":
|
||||||
return lambda x: x.remote_url or ""
|
return lambda x: x.generate_url() or ""
|
||||||
case _:
|
case _:
|
||||||
raise InvalidKeyError(f"Invalid key: {key}")
|
raise InvalidKeyError(f"Invalid key: {key}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user