Chatflow LLM node unwantedly include sys.files in LLM requests #402

Closed
opened 2026-02-16 10:19:19 -05:00 by yindo · 9 comments
Owner

Originally created by @fdb02983rhy on GitHub (Jun 26, 2025).

Originally assigned to: @laipz8200 on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.5.0

Cloud or Self Hosted

Cloud

Steps to reproduce

Sames as https://github.com/langgenius/dify/issues/12952. Reopen since the previous one was closed by dosubot.
It also occur on Agent Node.
File.Analysis.yml.zip

https://github.com/user-attachments/assets/719d3849-b36e-46cf-a8a1-dbffbd313a69

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @fdb02983rhy on GitHub (Jun 26, 2025). Originally assigned to: @laipz8200 on GitHub. ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.5.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce Sames as https://github.com/langgenius/dify/issues/12952. Reopen since the previous one was closed by dosubot. It also occur on Agent Node. [File.Analysis.yml.zip](https://github.com/user-attachments/files/20920814/File.Analysis.yml.zip) https://github.com/user-attachments/assets/719d3849-b36e-46cf-a8a1-dbffbd313a69 ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:19:19 -05:00
Author
Owner

@laipz8200 commented on GitHub (Jun 26, 2025):

I think this issue may be related to memory, as this file is stored in memory.

@laipz8200 commented on GitHub (Jun 26, 2025): I think this issue may be related to memory, as this file is stored in memory.
Author
Owner

@fdb02983rhy commented on GitHub (Jun 27, 2025):

I think this issue may be related to memory, as this file is stored in memory.

Not sure. In this DSL example, the DOCX file was not intentionally added to the LLM conversation flow, but somehow it ended up being included.

@fdb02983rhy commented on GitHub (Jun 27, 2025): > I think this issue may be related to memory, as this file is stored in memory. Not sure. In this DSL example, the DOCX file was not intentionally added to the LLM conversation flow, but somehow it ended up being included.
Author
Owner

@fdb02983rhy commented on GitHub (Jul 4, 2025):

@laipz8200 @Nov1c444
Hi, I investigated a bit more about this bug. I think it related to how the backend handle the chat history and related to https://github.com/langgenius/dify/issues/18812.

Test 1

Send a non-supported docx file to trigger error.
Result, first round conversation didn't throw an error, but in round 2.

Image

Test 2

Send a supported pdf file to read the content.
Result, first round conversation didn't recognized the pdf, but in round 2.

Image
@fdb02983rhy commented on GitHub (Jul 4, 2025): @laipz8200 @Nov1c444 Hi, I investigated a bit more about this bug. I think it related to how the backend handle the chat history and related to https://github.com/langgenius/dify/issues/18812. # Test 1 Send a non-supported docx file to trigger error. Result, first round conversation didn't throw an error, but in round 2. <img width="800" height="450" alt="Image" src="https://github.com/user-attachments/assets/e4b9387c-cb37-4579-8401-88f4261f046c" /> # Test 2 Send a supported pdf file to read the content. Result, first round conversation didn't recognized the pdf, but in round 2. <img width="800" height="450" alt="Image" src="https://github.com/user-attachments/assets/bd8a371f-eb5a-494e-a34b-c3fe93e406de" />
Author
Owner

@fdb02983rhy commented on GitHub (Jul 21, 2025):

The root cause is that the nodes fail to access the correct turn-specific file variable, it's not that the LLM plugin can't read an unsupported file format...

@fdb02983rhy commented on GitHub (Jul 21, 2025): The root cause is that the nodes fail to access the correct turn-specific file variable, it's not that the LLM plugin can't read an unsupported file format...
Author
Owner

@laipz8200 commented on GitHub (Jul 21, 2025):

The root cause is that the nodes fail to access the correct turn-specific file variable, it's not that the LLM plugin can't read an unsupported file format...

I can confirm that after upgrading the Anthropic plugin to version 0.1.1, your example is now functioning correctly.

Image
@laipz8200 commented on GitHub (Jul 21, 2025): > The root cause is that the nodes fail to access the correct turn-specific file variable, it's not that the LLM plugin can't read an unsupported file format... I can confirm that after upgrading the `Anthropic` plugin to version 0.1.1, your example is now functioning correctly. <img width="1161" height="768" alt="Image" src="https://github.com/user-attachments/assets/b98bfa21-6853-4256-bf66-cb544f767d70" />
Author
Owner

@fdb02983rhy commented on GitHub (Jul 21, 2025):

Please see the issue below, they caused by the same reason.

https://github.com/langgenius/dify/issues/18812

Image
@fdb02983rhy commented on GitHub (Jul 21, 2025): Please see the issue below, they caused by the same reason. https://github.com/langgenius/dify/issues/18812 <img width="3012" height="1576" alt="Image" src="https://github.com/user-attachments/assets/a8dc55b4-a08e-4956-9631-94967a31a711" />
Author
Owner

@laipz8200 commented on GitHub (Jul 22, 2025):

It's not the same. The agent node doesn't support the multi-modal feature just yet, but it's definitely on our roadmap.

@laipz8200 commented on GitHub (Jul 22, 2025): It's not the same. The agent node doesn't support the multi-modal feature just yet, but it's definitely on our roadmap.
Author
Owner

@fdb02983rhy commented on GitHub (Jul 22, 2025):

It's more like it has a "delay".

Image
@fdb02983rhy commented on GitHub (Jul 22, 2025): It's more like it has a "delay". <img width="3182" height="1892" alt="Image" src="https://github.com/user-attachments/assets/c9b30441-63d6-4c92-b7b4-47020460a7d9" />
Author
Owner

@fdb02983rhy commented on GitHub (Jul 22, 2025):

These two issues are the symptoms, but not the root cause.

@fdb02983rhy commented on GitHub (Jul 22, 2025): These two issues are the symptoms, but not the root cause.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#402