Microsoft encountered errors when adding GPT-5 Nano and Mini models. #619

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

Originally created by @xiaotang-12-ops on GitHub (Sep 4, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Microsoft encountered errors when adding GPT-5 Nano and Mini models.

Image

✔️ Expected Behavior

no error

Actual Behavior

No response

Originally created by @xiaotang-12-ops on GitHub (Sep 4, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.7.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Microsoft encountered errors when adding GPT-5 Nano and Mini models. <img width="660" height="352" alt="Image" src="https://github.com/user-attachments/assets/539a801d-0ae9-440c-90e5-314c6c4486a9" /> ### ✔️ Expected Behavior no error ### ❌ Actual Behavior _No response_
yindo added the bug label 2026-02-16 10:19:56 -05:00
yindo closed this issue 2026-02-16 10:19:56 -05:00
Author
Owner

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

The error occurs because the Microsoft/Azure GPT-5 Nano and Mini APIs now require the request payload to use the parameter input instead of messages. This is a known compatibility issue in Dify v1.7.1 and related plugin versions, and multiple users have reported the same problem when adding GPT-5 series models in self-hosted Docker environments example.

Recent updates in the dify-official-plugins repository have added and fixed support for GPT-5, GPT-5 Mini, and GPT-5 Nano, including the necessary payload and parameter changes PR langgenius/dify#1444 PR langgenius/dify#1453 PR langgenius/dify#1492 PR langgenius/dify#1626. To resolve this, update your OpenAI/Azure plugin to the latest version (at least 0.2.1 for the OpenAI provider), which includes these fixes and new model configurations. If you are unable to update Dify itself, upgrading just the plugin may be sufficient, but full compatibility is best with the latest Dify release.

If you continue to see errors after updating, double-check that your plugin and model YAML files match the latest versions in the repository, and avoid using deprecated parameters like max_tokens for GPT-5 models. The new parameters and features (such as reasoning_effort, exclude_reasoning_tokens, and json_schema) are now supported for these models PR langgenius/dify#1626.

In summary: upgrade your plugin to the latest version, ensure your model configs are up to date, and the error should be resolved.

To reply, just mention @dosu.


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

@dosubot[bot] commented on GitHub (Sep 4, 2025): <!-- Answer --> The error occurs because the Microsoft/Azure GPT-5 Nano and Mini APIs now require the request payload to use the parameter input instead of messages. This is a known compatibility issue in Dify v1.7.1 and related plugin versions, and multiple users have reported the same problem when adding GPT-5 series models in self-hosted Docker environments [example](https://github.com/langgenius/dify-official-plugins/issues/1489). Recent updates in the dify-official-plugins repository have added and fixed support for GPT-5, GPT-5 Mini, and GPT-5 Nano, including the necessary payload and parameter changes [PR langgenius/dify#1444](https://github.com/langgenius/dify-official-plugins/pull/1444) [PR langgenius/dify#1453](https://github.com/langgenius/dify-official-plugins/pull/1453) [PR langgenius/dify#1492](https://github.com/langgenius/dify-official-plugins/pull/1492) [PR langgenius/dify#1626](https://github.com/langgenius/dify-official-plugins/pull/1626). To resolve this, update your OpenAI/Azure plugin to the latest version (at least 0.2.1 for the OpenAI provider), which includes these fixes and new model configurations. If you are unable to update Dify itself, upgrading just the plugin may be sufficient, but full compatibility is best with the latest Dify release. If you continue to see errors after updating, double-check that your plugin and model YAML files match the latest versions in the repository, and avoid using deprecated parameters like max_tokens for GPT-5 models. The new parameters and features (such as reasoning_effort, exclude_reasoning_tokens, and json_schema) are now supported for these models [PR langgenius/dify#1626](https://github.com/langgenius/dify-official-plugins/pull/1626). In summary: upgrade your plugin to the latest version, ensure your model configs are up to date, and the error should be resolved. <!-- 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/0be9ea76-aaad-4e04-892e-910440505c6f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0be9ea76-aaad-4e04-892e-910440505c6f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0be9ea76-aaad-4e04-892e-910440505c6f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0be9ea76-aaad-4e04-892e-910440505c6f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0be9ea76-aaad-4e04-892e-910440505c6f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0be9ea76-aaad-4e04-892e-910440505c6f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0be9ea76-aaad-4e04-892e-910440505c6f?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&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/issues/25209)
Author
Owner

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

The error you’re seeing when adding GPT-5 Nano and Mini models is due to a mismatch between the expected API parameters—recent Azure OpenAI and OpenAI APIs for GPT-5 models require the input parameter instead of messages. This is a known issue and has been fixed in recent plugin updates.

To resolve this, you need to upgrade your Azure OpenAI plugin to at least version 0.0.23, which includes compatibility fixes for GPT-5 series models. These updates ensure the plugin correctly maps parameters and supports GPT-5, GPT-5-mini, and GPT-5-nano models in Dify. The plugin now treats models starting with gpt-5 as compatible and handles the API changes internally, so you won’t encounter the unsupported messages parameter error after upgrading [source].

If you’re unable to upgrade immediately, you may encounter persistent errors when adding these models. There are no reliable workarounds in older plugin versions, as the parameter mapping is handled within the plugin code itself [source].

After upgrading, verify that the GPT-5 models appear in your model provider list and can be added without error. If you still see issues, double-check your plugin version and configuration files to ensure the update was applied correctly.

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 4, 2025): <!-- Answer --> The error you’re seeing when adding GPT-5 Nano and Mini models is due to a mismatch between the expected API parameters—recent Azure OpenAI and OpenAI APIs for GPT-5 models require the `input` parameter instead of `messages`. This is a known issue and has been fixed in recent plugin updates. To resolve this, you need to upgrade your Azure OpenAI plugin to at least version **0.0.23**, which includes compatibility fixes for GPT-5 series models. These updates ensure the plugin correctly maps parameters and supports GPT-5, GPT-5-mini, and GPT-5-nano models in Dify. The plugin now treats models starting with `gpt-5` as compatible and handles the API changes internally, so you won’t encounter the unsupported `messages` parameter error after upgrading [[source](https://github.com/langgenius/dify-official-plugins/pull/1461)]. If you’re unable to upgrade immediately, you may encounter persistent errors when adding these models. There are no reliable workarounds in older plugin versions, as the parameter mapping is handled within the plugin code itself [[source](https://github.com/langgenius/dify-official-plugins/issues/1489)]. After upgrading, verify that the GPT-5 models appear in your model provider list and can be added without error. If you still see issues, double-check your plugin version and configuration files to ensure the update was applied correctly. <!-- 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/ef5e8437-c24c-428a-99ea-3106368c34c3?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ef5e8437-c24c-428a-99ea-3106368c34c3?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ef5e8437-c24c-428a-99ea-3106368c34c3?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ef5e8437-c24c-428a-99ea-3106368c34c3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ef5e8437-c24c-428a-99ea-3106368c34c3?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ef5e8437-c24c-428a-99ea-3106368c34c3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ef5e8437-c24c-428a-99ea-3106368c34c3?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/1660)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#619