Refactor chat formatting and fix Harunai Memory

This commit is contained in:
kwaroran
2024-04-23 22:50:44 +09:00
parent 2abd3bf15a
commit 45acd4b6d8
4 changed files with 26 additions and 17 deletions

View File

@@ -721,6 +721,9 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
content: '',
} as const
}
else{
v.content = `<Previous Conversation>${v.content}</Previous Conversation>`
}
return v
}).filter((v) => {
return v.content !== ''