mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Azure OpenAI 0.35 can not use gpt-5.1-codex #928
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 12, 2026).
Self Checks
Dify version
1.10.1
Plugin version
0.35
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Error log
No response
@nadazero commented on GitHub (Jan 14, 2026):
老问题了,codex系列模型不再使用chat_complete而是response接口,但dify插件一直没适配
@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:
Next Steps:
Thank you for your understanding and contribution!
@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
@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?
@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.