fix(llm): update final chunk event condition to include sandbox check

This commit is contained in:
Harry
2026-01-20 21:35:10 +08:00
parent 7cd280557c
commit c9e53bf78c

View File

@ -423,8 +423,8 @@ class LLMNode(Node[LLMNodeData]):
outputs["structured_output"] = structured_output.structured_output
# Send final chunk event to indicate streaming is complete
if not self.tool_call_enabled:
# For tool calls, final events are already sent in _process_tool_outputs
if not self.tool_call_enabled and sandbox is None:
# For tool calls and sandbox, final events are already sent in _process_tool_outputs
yield StreamChunkEvent(
selector=[self._node_id, "text"],
chunk="",