[fix] first message fix
This commit is contained in:
@@ -503,6 +503,11 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
|
|||||||
risuChatParser(firstMsg, {chara: currentChar, rmVar: true}),
|
risuChatParser(firstMsg, {chara: currentChar, rmVar: true}),
|
||||||
'editprocess'))
|
'editprocess'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(usingPromptTemplate && db.proomptSettings.sendName){
|
||||||
|
chat.content = `${currentChar.name}: ${chat.content}`
|
||||||
|
chat.attr = ['nameAdded']
|
||||||
|
}
|
||||||
chats.push(chat)
|
chats.push(chat)
|
||||||
currentTokens += await tokenizer.tokenizeChat(chat)
|
currentTokens += await tokenizer.tokenizeChat(chat)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user