Support File Type Variables in LLM Node Prompt Editor with Automatic Format Conversion #6757

Closed
opened 2026-02-21 18:17:09 -05:00 by yindo · 0 comments
Owner

Originally created by @laipz8200 on GitHub (Nov 14, 2024).

Originally assigned to: @laipz8200 on GitHub.

Currently, Dify's LLM Node prompt editor does not support using File type variables directly. This enhancement would allow users to include File type variables directly in the prompt editor, where Dify automatically converts the file content into the correct format for the chosen model (e.g., text extraction for text-based models).

If a file type is unsupported by the model, Dify should raise an error. This feature would improve the flexibility of prompt creation and streamline workflows involving file data.

Acceptance Criteria

  1. Users can include File type variables in the LLM Node prompt editor.
  2. Dify should convert the file content to the appropriate format for the selected model.
  3. If the file type is unsupported by the model, it should be ignored without causing errors.
Originally created by @laipz8200 on GitHub (Nov 14, 2024). Originally assigned to: @laipz8200 on GitHub. Currently, Dify's LLM Node prompt editor does not support using File type variables directly. This enhancement would allow users to include File type variables directly in the prompt editor, where Dify automatically converts the file content into the correct format for the chosen model (e.g., text extraction for text-based models). If a file type is unsupported by the model, Dify should raise an error. This feature would improve the flexibility of prompt creation and streamline workflows involving file data. ### Acceptance Criteria 1. Users can include File type variables in the LLM Node prompt editor. 2. Dify should convert the file content to the appropriate format for the selected model. 3. If the file type is unsupported by the model, it should be ignored without causing errors.
yindo added the 💪 enhancement label 2026-02-21 18:17:09 -05:00
yindo closed this issue 2026-02-21 18:17:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6757