[feat] add supamemory

This commit is contained in:
kwaroran
2023-05-16 01:56:12 +09:00
parent f157693fbc
commit a68cbfda03
7 changed files with 209 additions and 17 deletions

View File

@@ -184,6 +184,9 @@ export function setDatabase(data:Database){
if(checkNullish(data.elevenLabKey)){
data.elevenLabKey = ''
}
if(checkNullish(data.supaMemoryPrompt)){
data.supaMemoryPrompt = ''
}
if(checkNullish(data.sdConfig)){
data.sdConfig = {
width:512,
@@ -267,6 +270,7 @@ export interface character{
}
ttsMode?:string
ttsSpeech?:string
supaMemory?:boolean
}
@@ -297,6 +301,7 @@ export interface groupChat{
removedQuotes?:boolean
firstMsgIndex?:number,
loreSettings?:loreSettings
supaMemory?:boolean
}
export interface botPreset{
@@ -339,7 +344,8 @@ export interface Database{
aiModel: string
jailbreakToggle:boolean
loreBookDepth: number
loreBookToken: number
loreBookToken: number,
supaMemoryPrompt: string
username: string
userIcon: string
additionalPrompt: string
@@ -414,12 +420,14 @@ export interface Chat{
name:string
localLore: loreBook[]
sdData?:string
supaMemoryData?:string
}
export interface Message{
role: 'user'|'char'
data: string
saying?: string
chatId?:string
}