fix: temperature -> maxTemperature (#5554)

This commit is contained in:
Cohee
2026-04-29 03:26:27 +03:00
committed by GitHub
parent 44f433d10b
commit 45f2951854
+1 -1
View File
@@ -5032,7 +5032,7 @@ function getGeminiMaxContext(model, isUnlocked) {
*/ */
function getGeminiMaxTemp(model) { function getGeminiMaxTemp(model) {
if (Array.isArray(model_list) && model_list.length > 0) { if (Array.isArray(model_list) && model_list.length > 0) {
const temp = model_list.find((record) => record.id === model)?.temperature; const temp = model_list.find((record) => record.id === model)?.maxTemperature;
if (Number.isFinite(temp) && temp > 0) { if (Number.isFinite(temp) && temp > 0) {
return temp; return temp;
} }