Ver Fonte

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

takatost há 9 meses atrás
pai
commit
6b5fac3004
1 ficheiros alterados com 1 adições e 1 exclusões
  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: