[fix] topp

This commit is contained in:
kwaroran
2023-12-13 05:30:45 +09:00
parent 5f0a101df8
commit 0ab32455c3

View File

@@ -352,6 +352,10 @@ export function setDatabase(data:Database){
mode: 'instruct'
}
data.top_p ??= 1
if(typeof(data.top_p) !== 'number'){
//idk why type changes, but it does so this is a fix
data.top_p = 1
}
//@ts-ignore
data.google ??= {}
data.google.accessToken ??= ''