[fix] first message fix

This commit is contained in:
kwaroran
2023-12-24 22:58:51 +09:00
parent f3054ea816
commit 68239da84e

View File

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