Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:修复在渠道配置中设置模型重定向时,temperature为0被忽略的问题 #1907

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wanthigh
Copy link

@wanthigh wanthigh commented Nov 1, 2024

修复了如果在渠道配置里,配置了模型重定向时,会使用json进行转换
image

GeneralOpenAIRequest里的Temperature设置了omitempty标签,会导致temperature传0时被自动忽略,导致大模型使用默认的t
temperature
image

close #904

我已确认该 PR 已自测通过,相关截图如下:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

temperature 传递 0 ,发现不生效
1 participant