mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
gpt-5.1-codex-max support in plugin:Azure OpenAI Service Model #915
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 @cwk0099 on GitHub (Jan 4, 2026).
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I added the model gpt-5.1-codex-max in this plugin, and it showed me the following error.gpt-5.1 works, but codex doesn’t.I hope the codex model can be supported.
Error code: 400 - {'error': {'code': 'OperationNotSupported', 'message': 'The chatCompletion operation does not work with the specified model, gpt-5.1-codex-max. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993.'}}
2. Additional context or comments
dify:1.10.1
plugin:Azure OpenAI Service Model
plugin version :0.0.34
3. Can you help us with this feature?
@dosubot[bot] commented on GitHub (Jan 4, 2026):
Support for gpt-5.1-codex-max in the Azure OpenAI Service Model plugin has recently improved. As of plugin version 0.0.34, models whose names start with gpt-5.1-codex (including gpt-5.1-codex-max) are routed to the Responses API for chat generation, which should resolve the OperationNotSupported error you saw with chatCompletion operations. This change is included in your current plugin version, so you should be able to use gpt-5.1-codex-max if your Azure deployment is in a supported region and you have access to the model (details).
If you still encounter errors, double-check that your deployment is using plugin version 0.0.34, your Azure region is East US2 or Sweden Central, and your model registration is complete (reference). Also, ensure that required parameters like max_output_tokens are set appropriately, as the Responses API expects them.
If issues persist, check the plugin logs for details and confirm that your configuration matches the latest plugin requirements.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@cwk0099 commented on GitHub (Jan 4, 2026):
@dosubot[bot] commented on GitHub (Jan 4, 2026):
Your endpoint format and region (East US2) are correct for gpt-5.1-codex-max. The plugin version 0.0.34 is intended to support this model by routing it to the Responses API instead of the chatCompletion API, which should avoid the OperationNotSupported error you’re seeing (details).
If you still get this error, double-check that your Azure deployment and model registration are complete and that the deployment/model names in Azure exactly match what you’ve configured in Dify. Also, make sure the plugin is actually calling the Responses API (not chatCompletion) by reviewing plugin logs. If the plugin is routing correctly and you still see errors, check your Azure portal for registration or quota issues.
If you need a workaround, you can use the Responses API directly—there’s a sample code gist showing how to do this with gpt-5.1-codex-max (reference). If the problem persists, sharing plugin logs or error details will help diagnose any remaining issues.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@cwk0099 commented on GitHub (Jan 4, 2026):
there is no model name:gpt-5.1-codex-max in LLM_BASE_MODELS
@cwk0099 commented on GitHub (Jan 4, 2026):