langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
48.51k stars 6.94k forks source link

text to image failed #9126

Closed ClementeGao closed 1 week ago

ClementeGao commented 1 week ago

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

fb81c78ad8d011a6fdf2072ffe86da6
dosubot[bot] commented 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.

ClementeGao commented 1 week ago

ok thanks