Browse Source

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

takatost 9 months ago
parent
commit
6b5fac3004
1 changed files with 1 additions and 1 deletions
  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: