Force web to not use promptInfoInsideChat

This commit is contained in:
Kwaroran
2025-05-24 20:34:29 +09:00
parent 50b59b5b87
commit 66288c50ba
2 changed files with 15 additions and 7 deletions

View File

@@ -560,6 +560,12 @@ export function setDatabase(data:Database){
otherAx: data.fallbackModels.otherAx.filter((v) => v !== '')
}
data.customModels ??= []
//@ts-ignore
if(!__NODE__ && !window.__TAURI_INTERNALS__){
//this is intended to forcely reduce the size of the database in web
data.promptInfoInsideChat = false
}
changeLanguage(data.language)
setDatabaseLite(data)
}