From 50db99dd47101332839f2c27edf594f3d5e52208 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sat, 13 May 2023 11:11:53 +0900 Subject: [PATCH] [fix] chat note not working --- src/ts/process/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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({