[fix] lorebook loading when its blank
This commit is contained in:
@@ -127,9 +127,11 @@ export async function loadLoreBookPrompt(){
|
|||||||
|
|
||||||
let firstKeyActivation = false
|
let firstKeyActivation = false
|
||||||
for(const key of lore.keys){
|
for(const key of lore.keys){
|
||||||
if(formatedChat.includes(key)){
|
if(key){
|
||||||
firstKeyActivation = true
|
if(formatedChat.includes(key)){
|
||||||
break
|
firstKeyActivation = true
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user