소스 검색

fix(llm-node): handle NoneSegment variables properly (#9978)

-LAN- 6 달 전
부모
커밋
eb87e690ed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/core/workflow/nodes/llm/node.py

+ 1 - 1
api/core/workflow/nodes/llm/node.py

@@ -327,7 +327,7 @@ class LLMNode(BaseNode[LLMNodeData]):
             if variable is None:
                 raise ValueError(f"Variable {variable_selector.variable} not found")
             if isinstance(variable, NoneSegment):
-                continue
+                inputs[variable_selector.variable] = ""
             inputs[variable_selector.variable] = variable.to_object()
 
         memory = node_data.memory