mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1417] [CLOSED] chore: GPT4.1 does not support JSON mode #1877
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?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1417
Author: @DavideDelbianco
Created: 8/5/2025
Status: ❌ Closed
Base:
main← Head:chore/gpt-4.1-no-json-mode📝 Commits (3)
ecc9365chore: GPT4.1 does not support JSON modece541b6Merge branch 'main' into chore/gpt-4.1-no-json-mode0172ee7Merge branch 'main' into chore/gpt-4.1-no-json-mode📊 Changes
15 files changed (+8 additions, -20 deletions)
View changed files
📝
models/aihubmix/models/llm/gpt-4.1-mini.yaml(+0 -1)📝
models/aihubmix/models/llm/gpt-4.1-nano.yaml(+0 -1)📝
models/aihubmix/models/llm/gpt-4.1.yaml(+0 -1)📝
models/azure_openai/manifest.yaml(+1 -1)📝
models/azure_openai/models/constants.py(+3 -3)📝
models/openai/manifest.yaml(+1 -1)📝
models/openai/models/llm/gpt-4.1-2025-04-14.yaml(+0 -1)📝
models/openai/models/llm/gpt-4.1-mini-2025-04-14.yaml(+0 -1)📝
models/openai/models/llm/gpt-4.1-mini.yaml(+0 -1)📝
models/openai/models/llm/gpt-4.1-nano-2025-04-14.yaml(+0 -1)📝
models/openai/models/llm/gpt-4.1-nano.yaml(+0 -1)📝
models/openai/models/llm/gpt-4.1.yaml(+0 -1)📝
models/openrouter/models/llm/gpt-4.1-mini.yaml(+1 -2)📝
models/openrouter/models/llm/gpt-4.1-nano.yaml(+1 -2)📝
models/openrouter/models/llm/gpt-4.1.yaml(+1 -2)📄 Description
Related Issues or Context
This PR removes support for json_object response mode in GPT 4.1 as it is not supported:

https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#structured-outputs-vs-json-mode
Resolves #22506
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
json_outputmode expecting it did something in 4.1 modelsSaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.