fix: fetch LLM node input correctly

This commit is contained in:
Stream 2026-02-06 03:14:57 +08:00
parent c9c826d0d2
commit 6ac9bbfd5f
No known key found for this signature in database
GPG Key ID: 9475891C9507B4F3
1 changed files with 1 additions and 1 deletions

View File

@ -1471,7 +1471,7 @@ class LLMNode(Node[LLMNodeData]):
if isinstance(item, PromptMessageContext):
if len(item.value_selector) >= 2:
prompt_context_selectors.append(item.value_selector)
elif isinstance(item, LLMNodeChatModelMessage) and item.edition_type == "jinja2":
elif isinstance(item, LLMNodeChatModelMessage):
variable_template_parser = VariableTemplateParser(template=item.text)
variable_selectors.extend(variable_template_parser.extract_variable_selectors())
elif isinstance(prompt_template, LLMNodeCompletionModelPromptTemplate):