Add
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user