[fix] lorebook loading when its blank

This commit is contained in:
kwaroran
2023-05-24 11:02:40 +09:00
parent 861f8ecf51
commit 399f6c64eb

View File

@@ -127,11 +127,13 @@ export async function loadLoreBookPrompt(){
let firstKeyActivation = false let firstKeyActivation = false
for(const key of lore.keys){ for(const key of lore.keys){
if(key){
if(formatedChat.includes(key)){ if(formatedChat.includes(key)){
firstKeyActivation = true firstKeyActivation = true
break break
} }
} }
}
if(firstKeyActivation){ if(firstKeyActivation){
if(lore.secondKey.length === 0){ if(lore.secondKey.length === 0){