Skip to content

[Enhancement/Refactor] When the LLM node enables single-step debugging with vision enabled, if the reference file is not sys.files, the file will not be sent to the LLM API #23541

@goofy-z

Description

@goofy-z

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

During single-step LLM node debugging, when processing files referenced through custom file variables (e.g., my_file) rather than sys.files, images fail to be forwarded to the LLM because the variable pool lookup misses these custom references.

We should enhance the file resolution logic in single-step debugging mode: if the initial variable pool lookup fails, the system should automatically attempt to locate the file in sys.files as a secondary check.

2. Additional context or comments

my llm node settings like this
Image

You can see why by looking at the code below, because there is no my_file variable in the variable pool in the single-step run

files = (
llm_utils.fetch_files(
variable_pool=variable_pool,
selector=self._node_data.vision.configs.variable_selector,
)
if self._node_data.vision.enabled
else []
)
if files:
node_inputs["#files#"] = [file.to_dict() for file in files]

3. Can you help us with this feature?

  • I am interested in contributing to this feature.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions