Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: citations always appear in the chatflow app (#3844)

takatost34bfb715e1c2
diff --git a/api/core/app/task_pipeline/message_cycle_manage.py b/api/core/app/task_pipeline/message_cycle_manage.py
index 2848455278a..271f8329a47 100644
--- a/api/core/app/task_pipeline/message_cycle_manage.py
+++ b/api/core/app/task_pipeline/message_cycle_manage.py
@@ -118,7 +118,8 @@ class MessageCycleManage:
:param event: event
:return:
"""
- self._task_state.metadata['retriever_resources'] = event.retriever_resources
+ if self._application_generate_entity.app_config.additional_features.show_retrieve_source:
+ self._task_state.metadata['retriever_resources'] = event.retriever_resources
def _get_response_metadata(self) -> dict:
"""