diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 329dc398..939ad5c0 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -120,10 +120,12 @@ export async function sendChat(chatProcessIndex = -1):Promise { }) } - unformated.authorNote.push({ - role: 'system', - content: replacePlaceholders(currentChat.note, currentChar.name) - }) + if(currentChat.note !== ''){ + unformated.authorNote.push({ + role: 'system', + content: replacePlaceholders(currentChar.postHistoryInstructions, currentChat.note) + }) + } if(currentChar.postHistoryInstructions !== ''){ unformated.authorNote.push({