소스 검색

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…
취소
저장