[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> {
})
}
if(currentChat.note !== ''){
unformated.authorNote.push({
role: 'system',
content: replacePlaceholders(currentChat.note, currentChar.name)
content: replacePlaceholders(currentChar.postHistoryInstructions, currentChat.note)
})
}
if(currentChar.postHistoryInstructions !== ''){
unformated.authorNote.push({