[feat] added memory limit line

This commit is contained in:
kwaroran
2023-05-17 02:18:34 +09:00
parent e5c44406fb
commit 59c34956cf
9 changed files with 39 additions and 10 deletions

View File

@@ -80,6 +80,9 @@ export function setDatabase(data:Database){
if(checkNullish(data.language)){
data.language = 'en'
}
if(checkNullish(data.swipe)){
data.swipe = true
}
if(checkNullish(data.translator)){
data.translator = ''
}
@@ -187,6 +190,9 @@ export function setDatabase(data:Database){
if(checkNullish(data.supaMemoryPrompt)){
data.supaMemoryPrompt = ''
}
if(checkNullish(data.showMemoryLimit)){
data.showMemoryLimit = false
}
if(checkNullish(data.sdConfig)){
data.sdConfig = {
width:512,
@@ -399,6 +405,7 @@ export interface Database{
showUnrecommended:boolean
elevenLabKey:string
useExperimental:boolean
showMemoryLimit:boolean
}
@@ -422,6 +429,7 @@ export interface Chat{
localLore: loreBook[]
sdData?:string
supaMemoryData?:string
lastMemory?:string
}
export interface Message{