[fix] chat note not working

This commit is contained in:
kwaroran
2023-05-13 11:11:53 +09:00
parent aa3bd8a726
commit 50db99dd47

View File

@@ -120,10 +120,12 @@ export async function sendChat(chatProcessIndex = -1):Promise<boolean> {
}) })
} }
unformated.authorNote.push({ if(currentChat.note !== ''){
role: 'system', unformated.authorNote.push({
content: replacePlaceholders(currentChat.note, currentChar.name) role: 'system',
}) content: replacePlaceholders(currentChar.postHistoryInstructions, currentChat.note)
})
}
if(currentChar.postHistoryInstructions !== ''){ if(currentChar.postHistoryInstructions !== ''){
unformated.authorNote.push({ unformated.authorNote.push({