text to image failed #5978

Closed
opened 2026-02-21 18:13:29 -05:00 by yindo · 2 comments
Owner

Originally created by @ClementeGao on GitHub (Oct 9, 2024).

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

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"}

fb81c78ad8d011a6fdf2072ffe86da6
Originally created by @ClementeGao on GitHub (Oct 9, 2024). ### 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 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"} <img width="851" alt="fb81c78ad8d011a6fdf2072ffe86da6" src="https://github.com/user-attachments/assets/8f50696e-fce7-4a88-a9e9-ffbc3cf07c41">
yindo added the 🐞 bug label 2026-02-21 18:13:29 -05:00
yindo closed this issue 2026-02-21 18:13:29 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 9, 2024):

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.

@dosubot[bot] commented on GitHub (Oct 9, 2024): <!-- Answer --> 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. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@ClementeGao commented on GitHub (Oct 9, 2024):

ok thanks

@ClementeGao commented on GitHub (Oct 9, 2024): ok thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5978