dify icon indicating copy to clipboard operation
dify copied to clipboard

Tongyi plugin 0.0.10 throws an exception on 1.0.1

Open leslieeilsel opened this issue 9 months ago • 1 comments

Self Checks

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

Dify version

1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Update from 1.0.0 to 1.0.1
  2. Tongyi plugin is updated from 0.0.9 to 0.0.10

Image

✔️ Expected Behavior

The llm node works properly

❌ Actual Behavior

The llm node throws an exception

Image

leslieeilsel avatar Mar 12 '25 01:03 leslieeilsel

Hello, @leslieeilsel! I'm here to assist you with any bugs, questions, or contributions. Let's work together to solve this issue!

The AttributeError you're encountering with the Tongyi plugin version 0.0.10 on Dify version 1.0.1 is due to the TongyiLargeLanguageModel class not having an attribute named _wrap_thinking_by_reasoning_content. This attribute is called in the _handle_generate_stream_response method, but it is not defined in the class, leading to the exception [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Mar 12 '25 01:03 dosubot[bot]

you can up to 0.0.11(the last version)

JustinSoS avatar Mar 12 '25 06:03 JustinSoS

0.0.11 is still problematic

junjiem avatar Mar 12 '25 09:03 junjiem

[tongyi] Error: PluginInvokeError: {"args":{},"error_type":"KeyError","message":"'name'"}

junjiem avatar Mar 12 '25 09:03 junjiem