Переглянути джерело

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

tags/1.4.2
Arcaner 5 місяці тому
джерело
коміт
ad2f25875e
Аккаунт користувача з таким Email не знайдено
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]

Завантаження…
Відмінити
Зберегти