From ad7552ea8dd14adbbd6df7847878103da32d967f Mon Sep 17 00:00:00 2001 From: -LAN- Date: Tue, 23 Jul 2024 17:09:16 +0800 Subject: [PATCH] fix(api/core/workflow/nodes/llm/llm_node.py): Fix LLM Node error. (#6576) --- api/core/workflow/nodes/llm/llm_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/llm/llm_node.py b/api/core/workflow/nodes/llm/llm_node.py index 7fb3333a3a..4431259a57 100644 --- a/api/core/workflow/nodes/llm/llm_node.py +++ b/api/core/workflow/nodes/llm/llm_node.py @@ -364,7 +364,7 @@ class LLMNode(BaseNode): if 'content' not in item: raise ValueError(f'Invalid context structure: {item}') - context_str += item['content'].text + '\n' + context_str += item['content'] + '\n' retriever_resource = self._convert_to_original_retriever_resource(item) if retriever_resource: