Переглянути джерело

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

-LAN- 9 місяців тому
батько
коміт
ad7552ea8d
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      api/core/workflow/nodes/llm/llm_node.py

+ 1 - 1
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: