mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #521] [MERGED] fix(azure_openai): add workaround to json_schema mode before fundamental fix will be merged #1420
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/521
Author: @kurokobo
Created: 3/20/2025
Status: ✅ Merged
Merged: 3/21/2025
Merged by: @crazywoola
Base:
main← Head:aoai_json_workaround📝 Commits (3)
da48229fix: add workaround to json_schema mode before fundamental fix will be mergedea87fd3fix: correct support for response_format and json_schema to align with the actual API and documentation181390ffix: bump plugin version📊 Changes
3 files changed (+62 additions, -45 deletions)
View changed files
📝
models/azure_openai/manifest.yaml(+1 -1)📝
models/azure_openai/models/constants.py(+22 -44)📝
models/azure_openai/models/llm/llm.py(+39 -0)📄 Description
This PR makes
response_format: "json_schema"work correctly through the following changes:_code_block_mode_wrapperto skip it ifresponse_formatis NOTJSONorXMLgpt-4oandgpt-4o-minisupportsjson_schema, so I added ito1-miniando1-previewdo not supportresponse_formatandjson_schema, so I removed it (refer to the official doc)Closes https://github.com/langgenius/dify-official-plugins/issues/477, closes https://github.com/langgenius/dify-official-plugins/issues/425, closes https://github.com/langgenius/dify/issues/14475
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.