mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Microsoft encountered errors when adding GPT-5 Nano and Mini models. #619
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xiaotang-12-ops on GitHub (Sep 4, 2025).
Self Checks
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.
✔️ Expected Behavior
no error
❌ Actual Behavior
No response
@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

@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
inputparameter instead ofmessages. 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-5as compatible and handles the API changes internally, so you won’t encounter the unsupportedmessagesparameter 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
