[PR #2476] Fix: Add temperature param for azure openai gpt-5.1 and gpt-5.2 if reasoning_effort is 'None' #2503

Open
opened 2026-02-16 11:17:11 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/2476
Author: @henry-fung
Created: 1/23/2026
Status: 🔄 Open

Base: mainHead: fix/add-temperature-for-reasoning-none


📝 Commits (1)

  • c32a802 Add temperature param for azure openai gpt-5.1 and gpt-5.2 if reasoning_effort is set to none

📊 Changes

2 files changed (+10 additions, -0 deletions)

View changed files

📝 models/azure_openai/models/constants.py (+8 -0)
📝 models/azure_openai/models/llm/llm.py (+2 -0)

📄 Description

Fix: Add temperature param for azure openai gpt-5.1 and gpt-5.2 if reasoning_effort is 'None'

Related Issues or Context

  • This change ensures that the temperature parameter is correctly passed to Azure OpenAI GPT-5.1 and GPT-5.2 models when reasoning_effort is set to 'None', fixing unexpected behavior where temperature was ignored.

This PR contains Changes to LLM Models Plugin

  • Other Changes (Add New Models, Fix Model Parameters etc.)

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.6.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: 1.3.0, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/2476 **Author:** [@henry-fung](https://github.com/henry-fung) **Created:** 1/23/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/add-temperature-for-reasoning-none` --- ### 📝 Commits (1) - [`c32a802`](https://github.com/langgenius/dify-official-plugins/commit/c32a802c24ec7ff9d54f51db17684c3bc1e4000f) Add temperature param for azure openai gpt-5.1 and gpt-5.2 if reasoning_effort is set to none ### 📊 Changes **2 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `models/azure_openai/models/constants.py` (+8 -0) 📝 `models/azure_openai/models/llm/llm.py` (+2 -0) </details> ### 📄 Description Fix: Add temperature param for azure openai gpt-5.1 and gpt-5.2 if reasoning_effort is 'None' ## Related Issues or Context - This change ensures that the `temperature` parameter is correctly passed to Azure OpenAI GPT-5.1 and GPT-5.2 models when `reasoning_effort` is set to 'None', fixing unexpected behavior where temperature was ignored. ## This PR contains Changes to *LLM Models Plugin* - [x] Other Changes (Add New Models, Fix Model Parameters etc.) ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) ## Dify Plugin SDK Version - [x] I have Ensured `dify_plugin>=0.3.0,<0.6.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) ### Local Deployment Environment - [x] Dify Version is: 1.3.0, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 11:17:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#2503