Преглед на файлове

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: