From 68239da84e1febcd4d793e521e42c40df61fd8aa Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sun, 24 Dec 2023 22:58:51 +0900 Subject: [PATCH] [fix] first message fix --- src/ts/process/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 7d68702f..791128d4 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -503,6 +503,11 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n risuChatParser(firstMsg, {chara: currentChar, rmVar: true}), 'editprocess')) } + + if(usingPromptTemplate && db.proomptSettings.sendName){ + chat.content = `${currentChar.name}: ${chat.content}` + chat.attr = ['nameAdded'] + } chats.push(chat) currentTokens += await tokenizer.tokenizeChat(chat) }