mirror of https://github.com/langgenius/dify.git
fix: provide json as text
This commit is contained in:
parent
0035587fed
commit
cb4391f705
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue