fix: temperature -> maxTemperature (#5554)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user