From b80ad9519a703a1115c869ee1ed113114d8779b0 Mon Sep 17 00:00:00 2001 From: root <953994191@qq.com> Date: Wed, 6 May 2026 19:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddispatch=5Fcustom=5Fevent?= =?UTF-8?q?=EF=BC=9A=E7=94=A8config=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main_graph/nodes/_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/app/main_graph/nodes/_utils.py b/backend/app/main_graph/nodes/_utils.py index abd0e1b..e09f105 100644 --- a/backend/app/main_graph/nodes/_utils.py +++ b/backend/app/main_graph/nodes/_utils.py @@ -24,9 +24,7 @@ async def dispatch_custom_event( return try: from langchain_core.callbacks.manager import adispatch_custom_event - callbacks = config.get("callbacks") - if callbacks: - await adispatch_custom_event(event_name, data, callbacks=callbacks) + await adispatch_custom_event(event_name, data, config=config) except Exception: # 事件发送失败不应中断主流程 pass