Преглед изворни кода

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

tags/0.11.0
-LAN- пре 1 година
родитељ
комит
eb87e690ed
No account linked to committer's email address
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…
Откажи
Сачувај