Solved hypav2 not implemented as expected

The github isn't updating codebase correctly!!!
This commit is contained in:
LightningHyperBlaze45654
2024-06-12 17:00:13 -07:00
parent 22f08e2024
commit 0e70869b88
4 changed files with 16 additions and 11 deletions

View File

@@ -730,7 +730,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
chats = hn.chats
currentTokens = hn.tokens
}
else if(db.supaMemoryType === 'hypaV2'){
else if(db.supaMemoryType !== 'none' && db.hypav2){ //HypaV2 support needs to be changed like this.
const sp = await hypaMemoryV2(chats, currentTokens, maxContextTokens, currentChat, nowChatroom, tokenizer)
if(sp.error){
alertError(sp.error)