Sfoglia il codice sorgente

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

tags/1.4.2
Arcaner 5 mesi fa
parent
commit
ad2f25875e
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      api/core/workflow/nodes/llm/node.py

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

@@ -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…
Annulla
Salva