[feat] add persona

This commit is contained in:
kwaroran
2023-07-16 02:52:00 +09:00
parent 8a4aaadfd6
commit f6c5c8be9e
9 changed files with 238 additions and 73 deletions

View File

@@ -265,6 +265,12 @@ export function setDatabase(data:Database){
if(checkNullish(data.imageCompression)){
data.imageCompression = true
}
data.selectedPersona ??= 0
data.personas ??= [{
name: data.username,
personaPrompt: "",
icon: data.userIcon
}]
data.classicMaxWidth ??= false
data.ooba ??= cloneDeep(defaultOoba)
data.ainconfig ??= cloneDeep(defaultAIN)
@@ -546,9 +552,15 @@ export interface Database{
proxyRequestModel:string
ooba:OobaSettings
ainconfig: AINsettings
personaPrompt:string
openrouterRequestModel:string
openrouterKey:string
selectedPersona:number
personas:{
personaPrompt:string
name:string
icon:string
}[]
}
interface hordeConfig{