From cb4391f705f1f6f3b396abd4c10c7b721f2bd5cd Mon Sep 17 00:00:00 2001 From: Stream Date: Fri, 30 Jan 2026 10:47:58 +0800 Subject: [PATCH] fix: provide json as text --- api/core/workflow/nodes/llm/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.py index 1ffdf4d585..1f1eae80f7 100644 --- a/api/core/workflow/nodes/llm/node.py +++ b/api/core/workflow/nodes/llm/node.py @@ -2510,7 +2510,7 @@ class LLMNode(Node[LLMNodeData]): ) return LLMGenerationData( - text=aggregate.text or json.dumps(aggregate.structured_output), + text=aggregate.text or json.dumps(aggregate.structured_output.structured_output), reasoning_contents=buffers.reasoning_per_turn, tool_calls=tool_calls_for_generation, sequence=sequence,