Azure OpenAI 0.35 can not use gpt-5.1-codex #928

Open
opened 2026-02-16 10:21:02 -05:00 by yindo · 5 comments
Owner

Originally created by @cwk0099 on GitHub (Jan 12, 2026).

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.10.1

Plugin version

0.35

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image already reported,but got same error in the update https://github.com/langgenius/dify-official-plugins/issues/2359

✔️ Error log

No response

Originally created by @cwk0099 on GitHub (Jan 12, 2026). ### 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.10.1 ### Plugin version 0.35 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="667" height="403" alt="Image" src="https://github.com/user-attachments/assets/53e889b1-0e4e-4535-a17a-8a49aaf50f6c" /> <img width="469" height="392" alt="Image" src="https://github.com/user-attachments/assets/2f457150-fe7c-4e3b-8fdd-908f27700e38" /> already reported,but got same error in the update https://github.com/langgenius/dify-official-plugins/issues/2359 ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:21:02 -05:00
Author
Owner

@nadazero commented on GitHub (Jan 14, 2026):

老问题了,codex系列模型不再使用chat_complete而是response接口,但dify插件一直没适配

@nadazero commented on GitHub (Jan 14, 2026): 老问题了,codex系列模型不再使用chat_complete而是response接口,但dify插件一直没适配
Author
Owner

@dosubot[bot] commented on GitHub (Jan 30, 2026):

Hi, @cwk0099. 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 that the Azure OpenAI plugin v0.35 with Dify 1.10.1 does not support the gpt-5.1-codex model, resulting in errors.
  • The maintainer explained that Codex models require a different API endpoint (response endpoint) than what the plugin currently uses (chat_complete endpoint).
  • This mismatch is the root cause of the issue.
  • No error logs have been provided to assist with further diagnosis or resolution.
  • The issue remains unresolved and no updates have been posted recently.

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 (Jan 30, 2026): Hi, @cwk0099. 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 that the Azure OpenAI plugin v0.35 with Dify 1.10.1 does not support the gpt-5.1-codex model, resulting in errors. - The maintainer explained that Codex models require a different API endpoint (response endpoint) than what the plugin currently uses (chat_complete endpoint). - This mismatch is the root cause of the issue. - No error logs have been provided to assist with further diagnosis or resolution. - The issue remains unresolved and no updates have been posted recently. 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!
Author
Owner

@cwk0099 commented on GitHub (Feb 1, 2026):

the problem is still here
log:
2026-02-02 04:00:08,233.233 INFO [Dummy-386847] [_client.py:1038] - HTTP Request: GET http://ack-dify-plugin-daemon:5002/plugin/b199e56b-0a16-4680-afe0-79262477255b/management/models?page=1&page_size=256 "HTTP/1.1 200 OK"
2026-02-02 04:00:09,326.326 INFO [Dummy-386847] [_client.py:1038] - HTTP Request: POST http://ack-dify-plugin-daemon:5002/plugin/b199e56b-0a16-4680-afe0-79262477255b/dispatch/model/validate_model_credentials "HTTP/1.1 200 OK"
2026-02-02 04:00:09,327.327 ERROR [Dummy-386847] [base.py:277] - Error in stream response for plugin {'code': -500, 'message': '{"message":"{\"args\":{},\"error_type\":\"CredentialsValidateFailedError\",\"message\":\"Error code: 400 - {'error': {'code': 'OperationNotSupported', 'message': 'The chatCompletion operation does not work with the specified model, gpt-5.1-codex. 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.'}}\"}","error_type":"PluginInvokeError","args":null}', 'data': None}
2026-02-02 04:00:09,328.328 ERROR [Dummy-386847] [models.py:329] - Failed to save model credentials, tenant_id: b199e56b-0a16-4680-afe0-79262477255b, model: gpt-5.1-codex, model_type: llm
Traceback (most recent call last):
File "/app/api/controllers/console/workspace/models.py", line 320, in post
model_provider_service.create_model_credential(
File "/app/api/services/model_provider_service.py", line 263, in create_model_credential
provider_configuration.create_custom_model_credential(
File "/app/api/core/entities/provider_configuration.py", line 931, in create_custom_model_credential
credentials = self.validate_custom_model_credentials(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/entities/provider_configuration.py", line 904, in validate_custom_model_credentials
return _validate(session)
^^^^^^^^^^^^^^^^^^
File "/app/api/core/entities/provider_configuration.py", line 893, in _validate
validated_credentials = model_provider_factory.model_credentials_validate(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 156, in model_credentials_validate
self.plugin_model_manager.validate_model_credentials(
File "/app/api/core/plugin/impl/model.py", line 137, in validate_model_credentials
for resp in response:
^^^^^^^^
File "/app/api/core/plugin/impl/base.py", line 278, in _request_with_plugin_daemon_response_stream
self._handle_plugin_daemon_error(error.error_type, error.message)
File "/app/api/core/plugin/impl/base.py", line 308, in _handle_plugin_daemon_error
raise CredentialsValidateFailedError(error_object.get("message"))
core.model_runtime.errors.validate.CredentialsValidateFailedError: Error code: 400 - {'error': {'code': 'OperationNotSupported', 'message': 'The chatCompletion operation does not work with the specified model, gpt-5.1-codex. 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.'}}
@dosu

@cwk0099 commented on GitHub (Feb 1, 2026): the problem is still here log: 2026-02-02 04:00:08,233.233 INFO [Dummy-386847] [_client.py:1038] - HTTP Request: GET http://ack-dify-plugin-daemon:5002/plugin/b199e56b-0a16-4680-afe0-79262477255b/management/models?page=1&page_size=256 "HTTP/1.1 200 OK" 2026-02-02 04:00:09,326.326 INFO [Dummy-386847] [_client.py:1038] - HTTP Request: POST http://ack-dify-plugin-daemon:5002/plugin/b199e56b-0a16-4680-afe0-79262477255b/dispatch/model/validate_model_credentials "HTTP/1.1 200 OK" 2026-02-02 04:00:09,327.327 ERROR [Dummy-386847] [base.py:277] - Error in stream response for plugin {'code': -500, 'message': '{"message":"{\\"args\\":{},\\"error_type\\":\\"CredentialsValidateFailedError\\",\\"message\\":\\"Error code: 400 - {\'error\': {\'code\': \'OperationNotSupported\', \'message\': \'The chatCompletion operation does not work with the specified model, gpt-5.1-codex. 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.\'}}\\"}","error_type":"PluginInvokeError","args":null}', 'data': None} 2026-02-02 04:00:09,328.328 ERROR [Dummy-386847] [models.py:329] - Failed to save model credentials, tenant_id: b199e56b-0a16-4680-afe0-79262477255b, model: gpt-5.1-codex, model_type: llm Traceback (most recent call last): File "/app/api/controllers/console/workspace/models.py", line 320, in post model_provider_service.create_model_credential( File "/app/api/services/model_provider_service.py", line 263, in create_model_credential provider_configuration.create_custom_model_credential( File "/app/api/core/entities/provider_configuration.py", line 931, in create_custom_model_credential credentials = self.validate_custom_model_credentials( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/entities/provider_configuration.py", line 904, in validate_custom_model_credentials return _validate(session) ^^^^^^^^^^^^^^^^^^ File "/app/api/core/entities/provider_configuration.py", line 893, in _validate validated_credentials = model_provider_factory.model_credentials_validate( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 156, in model_credentials_validate self.plugin_model_manager.validate_model_credentials( File "/app/api/core/plugin/impl/model.py", line 137, in validate_model_credentials for resp in response: ^^^^^^^^ File "/app/api/core/plugin/impl/base.py", line 278, in _request_with_plugin_daemon_response_stream self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/impl/base.py", line 308, in _handle_plugin_daemon_error raise CredentialsValidateFailedError(error_object.get("message")) core.model_runtime.errors.validate.CredentialsValidateFailedError: Error code: 400 - {'error': {'code': 'OperationNotSupported', 'message': 'The chatCompletion operation does not work with the specified model, gpt-5.1-codex. 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.'}} @dosu
Author
Owner

@dosubot[bot] commented on GitHub (Feb 1, 2026):

@crazywoola The user reports the issue persists with detailed logs showing the chatCompletion operation does not support the gpt-5.1-codex model, resulting in a 400 OperationNotSupported error. Could you please assist?

@dosubot[bot] commented on GitHub (Feb 1, 2026): @crazywoola The user reports the issue persists with detailed logs showing the chatCompletion operation does not support the gpt-5.1-codex model, resulting in a 400 OperationNotSupported error. Could you please assist?
Author
Owner

@crazywoola commented on GitHub (Feb 3, 2026):

Hi @cwk0099, thanks for opening this issue.

Why this is being closed

Dify issue tracking requires English-only issue title and description for consistent collaboration.

Next steps

Please open a new issue in English and include clear details so maintainers can help efficiently.

Thanks for understanding and for your support.

@crazywoola commented on GitHub (Feb 3, 2026): Hi @cwk0099, thanks for opening this issue. ### Why this is being closed Dify issue tracking requires English-only issue title and description for consistent collaboration. ### Next steps Please open a new issue in English and include clear details so maintainers can help efficiently. Thanks for understanding and for your support.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#928