mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-16 14:26:52 +08:00
fix: arg missing when call method on_message_replace_func in output… (#2106)
This commit is contained in:
@@ -116,7 +116,7 @@ class OutputModerationHandler(BaseModel):
|
|||||||
|
|
||||||
# trigger replace event
|
# trigger replace event
|
||||||
if self.thread_running:
|
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:
|
if result.action == ModerationAction.DIRECT_OUTPUT:
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user