瀏覽代碼

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

tags/0.11.0
-LAN- 1 年之前
父節點
當前提交
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

Loading…
取消
儲存