[fix] lorebook loading when its blank (#100)

This commit is contained in:
kwaroran
2023-05-24 11:03:39 +09:00
committed by GitHub

View File

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