mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 14:08:18 +08:00
r2
This commit is contained in:
@ -173,7 +173,7 @@ class GraphEngine:
|
||||
)
|
||||
return
|
||||
elif isinstance(item, NodeRunSucceededEvent):
|
||||
if item.node_type == NodeType.END:
|
||||
if item.node_type in (NodeType.END, NodeType.KNOWLEDGE_INDEX):
|
||||
self.graph_runtime_state.outputs = (
|
||||
dict(item.route_node_state.node_run_result.outputs)
|
||||
if item.route_node_state.node_run_result
|
||||
@ -319,7 +319,7 @@ class GraphEngine:
|
||||
# It may not be necessary, but it is necessary. :)
|
||||
if (
|
||||
self.graph.node_id_config_mapping[next_node_id].get("data", {}).get("type", "").lower()
|
||||
== NodeType.END.value
|
||||
in [NodeType.END.value, NodeType.KNOWLEDGE_INDEX.value]
|
||||
):
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user