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: arg missing when call method `on_message_replace_func` in output… (#2106)

takatost9c4bad8f1ef7
diff --git a/api/core/app_runner/moderation_handler.py b/api/core/app_runner/moderation_handler.py
index ecb32ee437f..24ea0856121 100644
--- a/api/core/app_runner/moderation_handler.py
+++ b/api/core/app_runner/moderation_handler.py
@@ -116,7 +116,7 @@ class OutputModerationHandler(BaseModel):
# trigger replace event
if self.thread_running:
- self.on_message_replace_func(final_output)
+ self.on_message_replace_func(final_output, PublishFrom.TASK_PIPELINE)
if result.action == ModerationAction.DIRECT_OUTPUT:
break