From 861f8ecf51031ed57b8e8edc2193fdf5feebbeb7 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Wed, 24 May 2023 10:52:47 +0900 Subject: [PATCH] [fix] removed old argmuents --- src/lib/SideBars/CharConfig.svelte | 5 ----- src/ts/process/index.ts | 9 +-------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/lib/SideBars/CharConfig.svelte b/src/lib/SideBars/CharConfig.svelte index 2d0051bf..9b85180c 100644 --- a/src/lib/SideBars/CharConfig.svelte +++ b/src/lib/SideBars/CharConfig.svelte @@ -49,11 +49,6 @@ lasttokens.firstMsg = chara.firstMessage tokens.firstMsg = await tokenize(chara.firstMessage) } - if(lasttokens.charaNote !== chara.postHistoryInstructions){ - lasttokens.charaNote = chara.postHistoryInstructions - tokens.charaNote = await tokenize(chara.postHistoryInstructions) - - } } if(lasttokens.localNote !== currentChar.data.chats[currentChar.data.chatPage].note){ lasttokens.localNote = currentChar.data.chats[currentChar.data.chatPage].note diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 26c7b18b..c9663178 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -125,20 +125,13 @@ export async function sendChat(chatProcessIndex = -1):Promise { }) } - if(currentChat.note !== ''){ + if(currentChat.note){ unformated.authorNote.push({ role: 'system', content: replacePlaceholders(currentChat.note, currentChar.name) }) } - if(currentChar.postHistoryInstructions !== ''){ - unformated.authorNote.push({ - role: 'system', - content: replacePlaceholders(currentChar.postHistoryInstructions, currentChar.name) - }) - } - { let description = replacePlaceholders((db.promptPreprocess ? db.descriptionPrefix: '') + currentChar.desc, currentChar.name)