[fix] persona formating problem
This commit is contained in:
@@ -229,10 +229,12 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
|
|||||||
role: 'system',
|
role: 'system',
|
||||||
content: replacePlaceholders(lorepmt.act, currentChar.name)
|
content: replacePlaceholders(lorepmt.act, currentChar.name)
|
||||||
})
|
})
|
||||||
unformated.personaPrompt.push({
|
if(db.personaPrompt){
|
||||||
role: 'system',
|
unformated.personaPrompt.push({
|
||||||
content: replacePlaceholders(db.personaPrompt, currentChar.name)
|
role: 'system',
|
||||||
})
|
content: replacePlaceholders(db.personaPrompt, currentChar.name)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if(lorepmt.special_act){
|
if(lorepmt.special_act){
|
||||||
unformated.postEverything.push({
|
unformated.postEverything.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user