Tencent LLM SDK with json text input error #459

Closed
opened 2026-02-16 10:19:28 -05:00 by yindo · 1 comment
Owner

Originally created by @freezetheflame on GitHub (Jul 17, 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 Dify issues & Dify Official Plugins, 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.0.1

Plugin version

0.0.5

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

when you use tencent hunyuan as your model provider ,using some variables like LLM2.text as another model's input , will cause such error:
Run failed: [hunyuan] Error: PluginInvokeError: {"args":{"description":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"},"error_type":"InvokeError","message":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"}

Image like this

✔️ Error log

Run failed: [hunyuan] Error: PluginInvokeError: {"args":{"description":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"},"error_type":"InvokeError","message":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"}
Originally created by @freezetheflame on GitHub (Jul 17, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.0.1 ### Plugin version 0.0.5 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce when you use tencent hunyuan as your model provider ,using some variables like LLM2.text as another model's input , will cause such error: Run failed: [hunyuan] Error: PluginInvokeError: {"args":{"description":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"},"error_type":"InvokeError","message":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"} <img width="330" height="81" alt="Image" src="https://github.com/user-attachments/assets/25341ea2-481c-4dd7-b75f-ef7dda5b4188" /> like this ### ✔️ Error log ``` Run failed: [hunyuan] Error: PluginInvokeError: {"args":{"description":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"},"error_type":"InvokeError","message":"[models] None, [TencentCloudSDKException] code:InvalidParameter message:Messages 以 user(tool)提问结束, tool 可以连续出现多次 requestId:940cf3c8-3656-4331-a851-010e87e2e4d1"} ```
yindo added the bug label 2026-02-16 10:19:28 -05:00
yindo closed this issue 2026-02-16 10:19:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 18, 2025):

Hi, @freezetheflame. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary

  • You reported a PluginInvokeError with the Tencent Hunyuan model provider in Dify v1.0.1 and plugin v0.0.5 on a self-hosted Docker setup.
  • The error occurs when passing variables like LLM2.text as input to another model.
  • TencentCloudSDK indicates invalid message parameters and formatting issues, including repeated "tool" entries.
  • No further comments or updates have been provided since the initial report.

Next Steps

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I do not hear back within 5 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 18, 2025): Hi, @freezetheflame. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary** - You reported a PluginInvokeError with the Tencent Hunyuan model provider in Dify v1.0.1 and plugin v0.0.5 on a self-hosted Docker setup. - The error occurs when passing variables like LLM2.text as input to another model. - TencentCloudSDK indicates invalid message parameters and formatting issues, including repeated "tool" entries. - No further comments or updates have been provided since the initial report. **Next Steps** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I do not hear back within 5 days, this issue will be automatically closed. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#459