Fix temperature range (#4083)

This commit is contained in:
Qiying Wang 2024-02-20 18:05:17 +08:00 committed by GitHub
parent e2da3406d2
commit fd67f980a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,7 @@ export const ModalConfigValidator = {
return limitNumber(x, -2, 2, 0);
},
temperature(x: number) {
return limitNumber(x, 0, 1, 1);
return limitNumber(x, 0, 2, 1);
},
top_p(x: number) {
return limitNumber(x, 0, 1, 1);