Adding both Microsoft GPT-5 Mini and Nano results in a 400 error. #630

Closed
opened 2026-02-16 10:19:58 -05:00 by yindo · 5 comments
Owner

Originally created by @xiaotang-12-ops on GitHub (Sep 7, 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 Dify issues & Dify Official Plugins, 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.8.1

Plugin version

0.28

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have made sure that my Dify and plugins are all updated, but when adding Microsoft GPT-5 Mini and Nano, both return a 400 error.

Image Image Image

✔️ Error log

No response

Originally created by @xiaotang-12-ops on GitHub (Sep 7, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.8.1 ### Plugin version 0.28 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I have made sure that my Dify and plugins are all updated, but when adding Microsoft GPT-5 Mini and Nano, both return a 400 error. <img width="1613" height="1090" alt="Image" src="https://github.com/user-attachments/assets/8d9ee90e-eb50-4200-a6b4-27b1ce95f8e2" /> <img width="275" height="416" alt="Image" src="https://github.com/user-attachments/assets/2533a536-2159-4d43-b7a0-6e9d222ff835" /> <img width="389" height="255" alt="Image" src="https://github.com/user-attachments/assets/529f64c4-a873-47b2-9810-8f6f3cab8394" /> ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:19:58 -05:00
yindo closed this issue 2026-02-16 10:19:58 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 7, 2025):

This 400 error happens because the Azure OpenAI API for GPT-5 Mini and Nano now expects the prompt data in an input parameter called input, not messages. The current Azure OpenAI plugin code still sends messages, which the API rejects as unsupported—hence the error you see. This is a known issue and has been reported by other users as well [source].

Recent plugin updates added support for GPT-5 models, but none of the merged pull requests explicitly fix this parameter mismatch [source]. To resolve this, the plugin code needs to be updated so that, for GPT-5 Mini/Nano, it sends the prompt as input instead of messages.

There’s no config flag or workaround to switch this parameter without a code change. If you’re comfortable editing code, you’d need to update the payload construction logic in the Azure OpenAI plugin (where the request is built for these models) to use input for GPT-5 Mini/Nano. Otherwise, you’ll need to wait for an official fix in a future plugin release.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 7, 2025): <!-- Answer --> This 400 error happens because the Azure OpenAI API for GPT-5 Mini and Nano now expects the prompt data in an input parameter called input, not messages. The current Azure OpenAI plugin code still sends messages, which the API rejects as unsupported—hence the error you see. This is a known issue and has been reported by other users as well [[source]](https://github.com/langgenius/dify-official-plugins/issues/1489). Recent plugin updates added support for GPT-5 models, but none of the merged pull requests explicitly fix this parameter mismatch [[source]](https://github.com/langgenius/dify-official-plugins/pull/1454). To resolve this, the plugin code needs to be updated so that, for GPT-5 Mini/Nano, it sends the prompt as input instead of messages. There’s no config flag or workaround to switch this parameter without a code change. If you’re comfortable editing code, you’d need to update the payload construction logic in the Azure OpenAI plugin (where the request is built for these models) to use input for GPT-5 Mini/Nano. Otherwise, you’ll need to wait for an official fix in a future plugin release. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/12f62615-ac6e-4791-8b29-b2e83e9410eb?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/12f62615-ac6e-4791-8b29-b2e83e9410eb?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/12f62615-ac6e-4791-8b29-b2e83e9410eb?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/12f62615-ac6e-4791-8b29-b2e83e9410eb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/12f62615-ac6e-4791-8b29-b2e83e9410eb?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/12f62615-ac6e-4791-8b29-b2e83e9410eb?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/12f62615-ac6e-4791-8b29-b2e83e9410eb?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1677)
Author
Owner
@kurokobo commented on GitHub (Sep 8, 2025): See: https://github.com/langgenius/dify-official-plugins/issues/1472#issuecomment-3174704295
Author
Owner

@xiaotang-12-ops commented on GitHub (Sep 8, 2025):

参见:#1472(评论)
I still don't understand. Does that mean there's an issue with the API domain name? What should it be changed to?

@xiaotang-12-ops commented on GitHub (Sep 8, 2025): > 参见:[#1472(评论)](https://github.com/langgenius/dify-official-plugins/issues/1472#issuecomment-3174704295) I still don't understand. Does that mean there's an issue with the API domain name? What should it be changed to?
Author
Owner

@kurokobo commented on GitHub (Sep 8, 2025):

You should remove the underlined strings:

Image
@kurokobo commented on GitHub (Sep 8, 2025): You should remove the underlined strings: <img width="822" height="726" alt="Image" src="https://github.com/user-attachments/assets/1ab03926-c837-406b-b381-7f4291c3917b" />
Author
Owner

@dosubot[bot] commented on GitHub (Sep 25, 2025):

Hi, @xiaotang-12-ops. 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 adding Microsoft GPT-5 Mini and Nano models in Dify 1.8.1 with plugin 0.28 on a self-hosted Docker setup.
  • The error is due to the Azure OpenAI API now requiring the prompt in an "input" parameter instead of "messages," which the current plugin does not support.
  • A suggestion was made to modify the API domain name configuration, but you requested clarification on this change.
  • The root cause is a needed code update in the Azure OpenAI plugin to properly support GPT-5 Mini/Nano models.
  • The issue remains unresolved and is awaiting a plugin update or further guidance.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Sep 25, 2025): Hi, @xiaotang-12-ops. 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 adding Microsoft GPT-5 Mini and Nano models in Dify 1.8.1 with plugin 0.28 on a self-hosted Docker setup. - The error is due to the Azure OpenAI API now requiring the prompt in an "input" parameter instead of "messages," which the current plugin does not support. - A suggestion was made to modify the API domain name configuration, but you requested clarification on this change. - The root cause is a needed code update in the Azure OpenAI plugin to properly support GPT-5 Mini/Nano models. - The issue remains unresolved and is awaiting a plugin update or further guidance. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I do not hear back within 5 days, I will automatically close this issue. 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#630