Azure openai service plug Structured output exception #66

Closed
opened 2026-02-16 10:17:58 -05:00 by yindo · 1 comment
Owner

Originally created by @Alex-lsky on GitHub (Mar 11, 2025).

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

Plugin version

0.8

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I found errors when using structured output on the 1.0.0 DIfy and 0.8 Azure Openai service plug-ins

Image

Image

Image

✔️ Error log

   "error": "[azure_openai] Error: PluginInvokeError: {\"args\":{\"description\":\"[models] Error: Completions.create() got an unexpected keyword argument 'json_schema'\"},\"error_type\":\"InvokeError\",\"message\":\"[models] Error: Completions.create() got an unexpected keyword argument 'json_schema'\"}",
Originally created by @Alex-lsky on GitHub (Mar 11, 2025). ### 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.0.0 ### Plugin version 0.8 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I found errors when using structured output on the 1.0.0 DIfy and 0.8 Azure Openai service plug-ins ![Image](https://github.com/user-attachments/assets/b13458f8-0e11-42d0-b204-da3445ebcbb6) ![Image](https://github.com/user-attachments/assets/c98da577-c196-4f1f-b89a-bde70f19bd1c) ![Image](https://github.com/user-attachments/assets/f302326f-0bc8-42dd-a9dd-5795a7a81d9b) ### ✔️ Error log "error": "[azure_openai] Error: PluginInvokeError: {\"args\":{\"description\":\"[models] Error: Completions.create() got an unexpected keyword argument 'json_schema'\"},\"error_type\":\"InvokeError\",\"message\":\"[models] Error: Completions.create() got an unexpected keyword argument 'json_schema'\"}",
yindo added the bug label 2026-02-16 10:17:58 -05:00
yindo closed this issue 2026-02-16 10:17:58 -05:00
Author
Owner

@tjroamer commented on GitHub (Mar 17, 2025):

Same error here, the same model with OpenAI works, but not with Azure OpenAI.

@tjroamer commented on GitHub (Mar 17, 2025): Same error here, the same model with OpenAI works, but not with Azure OpenAI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#66