Dify cannot call qwen2.5-vl-72b instruction through API #157

Closed
opened 2026-02-16 10:18:16 -05:00 by yindo · 4 comments
Owner

Originally created by @DuckRui on GitHub (Mar 31, 2025).

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

1.1.3

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

I called the API for file upload according to the official documentation and successfully obtained the file_id. But when I used file_id to execute/workflows/run, I encountered an error

'error': '[tongyi] Error: PluginInvokeError: {
  "args":{},
  "error_type":"ServiceUnavailableError",
  "message":"Failed to invoke model qwen2.5-vl-72b-instruct, status code: 400, message: \\u003c400\\u003e InternalError.Algo.InvalidParameter: The input messages do not contain elements with the role of user"}'

✔️ Expected Behavior

file upload successful and successful call to LLM

Actual Behavior

Image

Originally created by @DuckRui on GitHub (Mar 31, 2025). ### 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 1.1.3 ### Cloud or Self Hosted Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce I called the API for file upload according to the official documentation and successfully obtained the file_id. But when I used file_id to execute/workflows/run, I encountered an error ``` 'error': '[tongyi] Error: PluginInvokeError: { "args":{}, "error_type":"ServiceUnavailableError", "message":"Failed to invoke model qwen2.5-vl-72b-instruct, status code: 400, message: \\u003c400\\u003e InternalError.Algo.InvalidParameter: The input messages do not contain elements with the role of user"}' ``` ### ✔️ Expected Behavior file upload successful and successful call to LLM ### ❌ Actual Behavior ![Image](https://github.com/user-attachments/assets/94bd8399-709b-4625-824b-e035fb474bcd)
yindo closed this issue 2026-02-16 10:18:16 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 31, 2025):

Hello @DuckRui! I'm here to assist you with any bugs, questions, or contributions you may have regarding Dify. I can help you solve bugs, answer questions, and guide you on how to become a contributor while we wait for a human maintainer.

I found a similar open issue that might be relevant to your problem: The Qwen2-72B-Instruct model cannot return results using the OpenAI-API-compatible configuration. However, no solution has been found in the comments of that issue [1].

Regarding your specific issue, the error message indicates that the input messages do not contain elements with the role of "user." This suggests that the structure of your input messages might be incorrect. Unfortunately, I couldn't find specific details on the required roles and structure of input messages for the qwen2.5-vl-72b-instruct model in the current documentation. You might want to double-check the API documentation to ensure that your input messages are correctly structured and include all necessary roles.

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] commented on GitHub (Mar 31, 2025): <!-- Greeting --> Hello @DuckRui! I'm here to assist you with any bugs, questions, or contributions you may have regarding Dify. I can help you solve bugs, answer questions, and guide you on how to become a contributor while we wait for a human maintainer. <!-- Answer --> I found a similar open issue that might be relevant to your problem: [The Qwen2-72B-Instruct model cannot return results using the OpenAI-API-compatible configuration](https://github.com/langgenius/dify/issues/5383). However, no solution has been found in the comments of that issue <sup>[[1]](https://github.com/langgenius/dify/issues/5383)</sup>. Regarding your specific issue, the error message indicates that the input messages do not contain elements with the role of "user." This suggests that the structure of your input messages might be incorrect. Unfortunately, I couldn't find specific details on the required roles and structure of input messages for the qwen2.5-vl-72b-instruct model in the current documentation. You might want to double-check the API documentation to ensure that your input messages are correctly structured and include all necessary roles. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/0c66abe2-d61f-43e0-b47b-ccfa924fa6d1?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/0c66abe2-d61f-43e0-b47b-ccfa924fa6d1?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/0c66abe2-d61f-43e0-b47b-ccfa924fa6d1?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/0c66abe2-d61f-43e0-b47b-ccfa924fa6d1?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0c66abe2-d61f-43e0-b47b-ccfa924fa6d1?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/0c66abe2-d61f-43e0-b47b-ccfa924fa6d1?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0c66abe2-d61f-43e0-b47b-ccfa924fa6d1?feedback_type=other)</sup>
Author
Owner

@leslie2046 commented on GitHub (Apr 3, 2025):

@DuckRui Can you paste your workflow dsl file here?

@leslie2046 commented on GitHub (Apr 3, 2025): @DuckRui Can you paste your workflow dsl file here?
Author
Owner

@Hisir0909 commented on GitHub (Apr 7, 2025):

The input messages do not contain elements with the role of user

Are you asking if the LLM node you're using might be configured with only a "system" prompt and missing a "user" prompt?
你是不是LLM节点没加user,而只输入了system?

@Hisir0909 commented on GitHub (Apr 7, 2025): > The input messages do not contain elements with the role of user Are you asking if the LLM node you're using might be configured with only a "system" prompt and missing a "user" prompt? 你是不是LLM节点没加user,而只输入了system?
Author
Owner

@dosubot[bot] commented on GitHub (Aug 19, 2025):

Hi, @DuckRui. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a 400 error when calling the qwen2.5-vl-72b-instruct model via API after uploading a file and obtaining a file_id in Dify v1.1.3 self-hosted.
  • The error message indicates a missing "user" role in the input messages, which is required by the model.
  • I referenced a similar unresolved issue (#5383) and suggested ensuring input messages include a "user" role.
  • Maintainers requested your workflow DSL file and whether the LLM node includes a "user" prompt, suspecting the error might be due to only a "system" prompt being provided.
  • No solution or further updates have been posted yet.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository and provide any additional information or updates.
  • If no further activity occurs, this issue will be automatically closed in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 19, 2025): Hi, @DuckRui. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported a 400 error when calling the qwen2.5-vl-72b-instruct model via API after uploading a file and obtaining a file_id in Dify v1.1.3 self-hosted. - The error message indicates a missing "user" role in the input messages, which is required by the model. - I referenced a similar unresolved issue (#5383) and suggested ensuring input messages include a "user" role. - Maintainers requested your workflow DSL file and whether the LLM node includes a "user" prompt, suspecting the error might be due to only a "system" prompt being provided. - No solution or further updates have been posted yet. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository and provide any additional information or updates. - If no further activity occurs, this issue will be automatically closed in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#157