浏览代码

fix: fetch context error in llm node (#6562)

takatost 9 月之前
父节点
当前提交
6b5fac3004
共有 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'] + '\n'
+                        context_str += item['content'].text + '\n'
 
                         retriever_resource = self._convert_to_original_retriever_resource(item)
                         if retriever_resource: