mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-25 09:53:29 +08:00
fix: restore download button when file type is selected in agent message (#17184)
This commit is contained in:
@@ -981,6 +981,9 @@ class Canvas(Graph):
|
||||
message_end["status"] = cpn_obj.get_param("status")
|
||||
if isinstance(cpn_obj.output("attachment"), dict):
|
||||
message_end["attachment"] = cpn_obj.output("attachment")
|
||||
downloads = cpn_obj.output("downloads")
|
||||
if isinstance(downloads, list) and downloads:
|
||||
message_end["downloads"] = downloads
|
||||
if self._has_reference():
|
||||
message_end["reference"] = self.get_reference()
|
||||
# NOTE: aggregated run token usage is intentionally NOT attached here.
|
||||
|
||||
Reference in New Issue
Block a user