dify icon indicating copy to clipboard operation
dify copied to clipboard

tool parameters parsing not compatible with the response of glm4 model in xinference provider when function tool call integerated

Open cyflhn opened this issue 3 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

0.10.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. add a glm4-chat-1m model in xinference model provider
  2. create agent with function tool integrated.
  3. start a chat in this agent

✔️ Expected Behavior

get a normal response from agent

❌ Actual Behavior

got an error of "tool_parameters should be a dict, but got a string"

cyflhn avatar Nov 25 '24 02:11 cyflhn