Closed ClementeGao closed 1 week ago
The error you're encountering is due to the model qwen2.5-instrut-7b
not supporting tool calls. The error message specifies that only certain models like qwen1.5-chat
, qwen1.5-moe-chat
, qwen2-instruct
, qwen2-moe-instruct
, glm4-chat
, and glm4-chat-1m
support tool calls.
To resolve this, you should select one of the supported models for tool calls. Adjust your configuration to use one of the models listed in the error message.
To continue talking to Dosu, mention @dosu.
ok thanks
Self Checks
Dify version
latest
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
1、add agent application 2、add prompt "根据用户的提示,使用工具 stable_diffusion 绘画指定内容" 3、add tool stable_diffusion from xinference 4、select ll model "qwen2.5-instrut-7b" 5、input "画一只狗"
✔️ Expected Behavior
can draw a dog
❌ Actual Behavior
xinferencel Error: Error code: 400 - f'detal:"Only "qwen1.5-chat, qwen1.5-moe-chat, 'qwen2-instruct,'qwen2-moe-instruct, 'glm4- chat, 'glm4- chat- 1m' support tool calls"}