mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
fix: generation stream abort
This commit is contained in:
parent
c9e428facf
commit
2fb391a642
@ -421,8 +421,9 @@ class LLMNode(Node[LLMNodeData]):
|
|||||||
outputs["structured_output"] = structured_output.structured_output
|
outputs["structured_output"] = structured_output.structured_output
|
||||||
|
|
||||||
# Send final chunk event to indicate streaming is complete
|
# Send final chunk event to indicate streaming is complete
|
||||||
if not self.tool_call_enabled:
|
# For tool calls and sandbox, final events are already sent in _process_tool_outputs
|
||||||
# For tool calls and sandbox, final events are already sent in _process_tool_outputs
|
sandbox_used = sandbox and has_skill_prompt
|
||||||
|
if not self.tool_call_enabled and not sandbox_used:
|
||||||
yield StreamChunkEvent(
|
yield StreamChunkEvent(
|
||||||
selector=[self._node_id, "text"],
|
selector=[self._node_id, "text"],
|
||||||
chunk="",
|
chunk="",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user