dify icon indicating copy to clipboard operation
dify copied to clipboard

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

Open pertghost opened this issue 9 months ago • 3 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [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.

pertghost avatar Mar 03 '25 14:03 pertghost

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

crazywoola avatar Mar 03 '25 14:03 crazywoola

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 avatar Mar 04 '25 00:03 pertghost

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 avatar Mar 04 '25 14:03 pertghost

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] avatar Apr 04 '25 16:04 dosubot[bot]