[fix] removed old argmuents

This commit is contained in:
kwaroran
2023-05-24 10:52:47 +09:00
parent 852b24de6b
commit 861f8ecf51
2 changed files with 1 additions and 13 deletions

View File

@@ -49,11 +49,6 @@
lasttokens.firstMsg = chara.firstMessage lasttokens.firstMsg = chara.firstMessage
tokens.firstMsg = await tokenize(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){ if(lasttokens.localNote !== currentChar.data.chats[currentChar.data.chatPage].note){
lasttokens.localNote = currentChar.data.chats[currentChar.data.chatPage].note lasttokens.localNote = currentChar.data.chats[currentChar.data.chatPage].note

View File

@@ -125,20 +125,13 @@ export async function sendChat(chatProcessIndex = -1):Promise<boolean> {
}) })
} }
if(currentChat.note !== ''){ if(currentChat.note){
unformated.authorNote.push({ unformated.authorNote.push({
role: 'system', role: 'system',
content: replacePlaceholders(currentChat.note, currentChar.name) 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) let description = replacePlaceholders((db.promptPreprocess ? db.descriptionPrefix: '') + currentChar.desc, currentChar.name)