many models temperature max is 2, but dify max setup is 1 #8939

Closed
opened 2026-02-21 18:28:43 -05:00 by yindo · 4 comments
Owner

Originally created by @pertghost on GitHub (Mar 3, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Can you guys modify the model temperature max value to 2

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @pertghost on GitHub (Mar 3, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. Can you guys modify the model temperature max value to 2 ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:28:43 -05:00
yindo closed this issue 2026-02-21 18:28:43 -05:00
Author
Owner

@crazywoola commented on GitHub (Mar 3, 2025):

Can you list the model providers here? I think lot's of people could contribute to it.

@crazywoola commented on GitHub (Mar 3, 2025): Can you list the model providers here? I think lot's of people could contribute to it.
Author
Owner

@pertghost commented on GitHub (Mar 3, 2025):

Most LLM, such as OpenAI, DeepSeek, Gemini, Qwen, etc., all have a maximum temperature setting of 2. I haven't seen any with a different maximum value yet. Could you please adjust the threshold on the settings page?

Image

@pertghost commented on GitHub (Mar 3, 2025): Most LLM, such as OpenAI, DeepSeek, Gemini, Qwen, etc., all have a maximum temperature setting of 2. I haven't seen any with a different maximum value yet. Could you please adjust the threshold on the settings page? ![Image](https://github.com/user-attachments/assets/4f2134bf-5531-4b4b-853a-f8367a5406b2)
Author
Owner

@pertghost commented on GitHub (Mar 4, 2025):

I modify Temperature max from 1.0 to 2.0 of PARAMETER_RULE_TEMPLATE

PARAMETER_RULE_TEMPLATE: dict[DefaultParameterName, dict] = {
DefaultParameterName.TEMPERATURE: {
"label": {
"en_US": "Temperature",
"zh_Hans": "温度",
},
"type": "float",
"help": {
"en_US": "Controls randomness. Lower temperature results in less random completions."
" As the temperature approaches zero, the model will become deterministic and repetitive."
" Higher temperature results in more random completions.",
"zh_Hans": "温度控制随机性。较低的温度会导致较少的随机完成。随着温度接近零,模型将变得确定性和重复性。"
"较高的温度会导致更多的随机完成。",
},
"required": False,
"default": 0.0,
"min": 0.0,
"max": 2.0,
"precision": 2,
},

but the max value still cannot setup to 2. Can someone give some advice?

@pertghost commented on GitHub (Mar 4, 2025): I modify Temperature max from 1.0 to 2.0 of PARAMETER_RULE_TEMPLATE PARAMETER_RULE_TEMPLATE: dict[DefaultParameterName, dict] = { DefaultParameterName.TEMPERATURE: { "label": { "en_US": "Temperature", "zh_Hans": "温度", }, "type": "float", "help": { "en_US": "Controls randomness. Lower temperature results in less random completions." " As the temperature approaches zero, the model will become deterministic and repetitive." " Higher temperature results in more random completions.", "zh_Hans": "温度控制随机性。较低的温度会导致较少的随机完成。随着温度接近零,模型将变得确定性和重复性。" "较高的温度会导致更多的随机完成。", }, "required": False, "default": 0.0, "min": 0.0, "max": 2.0, "precision": 2, }, but the max value still cannot setup to 2. Can someone give some advice?
Author
Owner

@dosubot[bot] commented on GitHub (Apr 4, 2025):

Hi, @pertghost. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You raised a concern about the maximum temperature setting for models in Dify, which is currently capped at 1.
  • You noted that many models, such as OpenAI and DeepSeek, allow a maximum temperature of 2 and requested an adjustment.
  • Crazywoola asked for a list of model providers to assist with contributions, which you provided.
  • You attempted to modify the PARAMETER_RULE_TEMPLATE to set the max temperature to 2 but found the change ineffective and sought further advice.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the Dify repository. If so, you can keep the discussion open by commenting on this issue.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Apr 4, 2025): Hi, @pertghost. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You raised a concern about the maximum temperature setting for models in Dify, which is currently capped at 1. - You noted that many models, such as OpenAI and DeepSeek, allow a maximum temperature of 2 and requested an adjustment. - Crazywoola asked for a list of model providers to assist with contributions, which you provided. - You attempted to modify the `PARAMETER_RULE_TEMPLATE` to set the max temperature to 2 but found the change ineffective and sought further advice. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the Dify repository. If so, you can keep the discussion open by commenting on this issue. - If there is no further activity, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8939