Fix hypamemory duplication problem

This commit is contained in:
kwaroran
2024-04-11 05:42:34 +09:00
parent f54a2a98ad
commit 35af70f70f
2 changed files with 13 additions and 19 deletions

View File

@@ -526,7 +526,6 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
let chats:OpenAIChat[] = examples
console.log(db.aiModel)
if(!db.aiModel.startsWith('novelai')){
chats.push({
role: 'system',
@@ -1041,7 +1040,6 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
}
}
console.log(lastResponseChunk)
addRerolls(generationId, Object.values(lastResponseChunk))
db.characters[selectedChar].chats[selectedChat] = runCurrentChatFunction(db.characters[selectedChar].chats[selectedChat])
@@ -1211,8 +1209,6 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
return v[0]
})
console.log(searched)
for(const emo of currentEmotion){
if(emo[0] === emoresult[0]){
const emos:[string, string,number] = [emo[0], emo[1], Date.now()]