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