diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index b094f679..85edab33 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -156,6 +156,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n 'lastChat':([] as OpenAIChat[]), 'description':([] as OpenAIChat[]), 'postEverything':([] as OpenAIChat[]), + 'personaPrompt':([] as OpenAIChat[]) } if(!currentChar.utilityBot){ @@ -228,7 +229,10 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n role: 'system', content: replacePlaceholders(lorepmt.act, currentChar.name) }) - + unformated.personaPrompt.push({ + role: 'system', + content: replacePlaceholders(db.personaPrompt, currentChar.name) + }) if(lorepmt.special_act){ unformated.postEverything.push({ @@ -364,7 +368,10 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n let sysPrompts:string[] = [] for(let i=0;i 0){