From 9590307d3120323a91c4a2c8b2cb8d0287283d1a Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sun, 16 Jul 2023 03:28:22 +0900 Subject: [PATCH] [fix] fix formating --- src/ts/process/index.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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){