This commit is contained in:
Kwaroran
2025-05-20 04:17:36 +09:00
parent 14955b7698
commit 71059bae47

View File

@@ -96,7 +96,7 @@ export async function loadLoreBookV3Prompt(){
}).concat(recursivePrompt.map((msg) => { }).concat(recursivePrompt.map((msg) => {
return { return {
source: 'lorebook ' + msg.source, source: 'lorebook ' + msg.source,
prompt: msg.prompt, prompt: dontSearchWhenRecursive ? '' : msg.prompt,
data: msg.data data: msg.data
} }
})) }))
@@ -204,6 +204,7 @@ export async function loadLoreBookV3Prompt(){
let matchTimes = 0 let matchTimes = 0
let keepActivateAfterMatch = false let keepActivateAfterMatch = false
let dontActivateAfterMatch = false let dontActivateAfterMatch = false
let dontSearchWhenRecursive = false
while(matching){ while(matching){
matching = false matching = false
for(let i=0;i<fullLore.length;i++){ for(let i=0;i<fullLore.length;i++){
@@ -404,6 +405,10 @@ export async function loadLoreBookV3Prompt(){
itemRecursive = true itemRecursive = true
return return
} }
case 'no_recursive_search':{
dontSearchWhenRecursive = true
return
}
default:{ default:{
return false return false
} }