[fix] persona formating problem

This commit is contained in:
kwaroran
2023-07-16 17:33:43 +09:00
parent 589976a014
commit 098901b9ab

View File

@@ -229,10 +229,12 @@ 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(db.personaPrompt){
unformated.personaPrompt.push({
role: 'system',
content: replacePlaceholders(db.personaPrompt, currentChar.name)
})
}
if(lorepmt.special_act){
unformated.postEverything.push({