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) }