This commit is contained in:
Yidadaa 2023-04-20 22:58:19 +08:00
parent e3d2dd7279
commit 2e9e69d66c

View File

@ -122,7 +122,7 @@ export function limitModel(name: string) {
export const ModalConfigValidator = { export const ModalConfigValidator = {
model(x: string) { model(x: string) {
return limitModel(x); return limitModel(x) as ModelType;
}, },
max_tokens(x: number) { max_tokens(x: number) {
return limitNumber(x, 0, 32000, 2000); return limitNumber(x, 0, 32000, 2000);