瀏覽代碼

fix(llm_node): update file variable mapping to use vision configs (#20417)

tags/1.4.2
Arcaner 5 月之前
父節點
當前提交
ad2f25875e
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 查看文件

@@ -900,7 +900,7 @@ class LLMNode(BaseNode[LLMNodeData]):
variable_mapping["#context#"] = node_data.context.variable_selector

if node_data.vision.enabled:
variable_mapping["#files#"] = ["sys", SystemVariableKey.FILES.value]
variable_mapping["#files#"] = node_data.vision.configs.variable_selector

if node_data.memory:
variable_mapping["#sys.query#"] = ["sys", SystemVariableKey.QUERY.value]

Loading…
取消
儲存