Tongyi Plugin SSE Event Incorrectly Modified #371

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

Originally created by @hieheihei on GitHub (Jun 16, 2025).

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.4.1

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

SSE events, if the current event contains the previous event, part of the content of the current event may be lost.

For example, Tongyi returns event.eventName, but Dify returns event.Name.
Image

we add log in tongyi plugin, found that ".envet" was replaced with "."
Image

relevant code:
Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @hieheihei on GitHub (Jun 16, 2025). ### 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.4.1 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce SSE events, if the current event contains the previous event, part of the content of the current event may be lost. For example, Tongyi returns event.eventName, but Dify returns event.Name. ![Image](https://github.com/user-attachments/assets/db0d7ae6-8d7d-437c-af4a-87480e8ebbf1) we add log in tongyi plugin, found that ".envet" was replaced with "." ![Image](https://github.com/user-attachments/assets/755c3b20-11ed-493d-8d26-bfca30df0d4e) relevant code: ![Image](https://github.com/user-attachments/assets/89bea4d1-37d5-477b-8ef6-f8702160e5b7) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:19:10 -05:00
Author
Owner

@hieheihei commented on GitHub (Jun 16, 2025):

We tested using version 0.0.18 of the plugin, but version 0.0.25 also has the same replacement logic.
Was the line content=resp_content.replace(full_text, "", 1) introduced to address a specific issue?

@hieheihei commented on GitHub (Jun 16, 2025): We tested using version 0.0.18 of the plugin, but version 0.0.25 also has the same replacement logic. Was the line `content=resp_content.replace(full_text, "", 1) ` introduced to address a specific issue?
Author
Owner

@hieheihei commented on GitHub (Aug 6, 2025):

Fixed in the new version.
Image

@hieheihei commented on GitHub (Aug 6, 2025): Fixed in the new version. <img alt="Image" src="https://github.com/user-attachments/assets/03c3afa6-2663-4477-9c45-4013c63492fc" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#371