fix(api/core/workflow/nodes/llm/llm_node.py): Fix LLM Node error. (#6576)

This commit is contained in:
-LAN- 2024-07-23 17:09:16 +08:00 committed by GitHub
parent c0ada940bd
commit ad7552ea8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: