mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
JSON Schema for structured output unavailable #134
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 @DhavalThkkar on GitHub (Mar 27, 2025).
Self Checks
Dify version
1.1.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Followed the instructions for getting it up locally using
docker composeinstructions, and I am using Azure OpenAI GPT 4o and o3-mini models✔️ Expected Behavior
JSON schema should be available for getting structured outputs
❌ Actual Behavior
No JSON schema option avaiable at all
@dosubot[bot] commented on GitHub (Mar 27, 2025):
I found a similar unsolved discussion regarding support for OpenAI structured outputs [1].
For your issue, ensure that you are using a model that supports JSON Schema, such as
gpt-4o-mini-2024-07-18or later versions. You need to enable theJSON Schemasetting in the configuration and fill in the JSON Schema template. Additionally, make sure theresponse_formatis set tojson_schemainstead ofjson_object[2][3].If you are using Azure OpenAI models, be aware of known issues where JSON schema functionality might not work correctly. The recommended solution is to upgrade the OpenAI plugin to the latest version and reconfigure the plugin settings [4].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other