Run macro substitution before adding text to WI recursion buffer

This commit is contained in:
Cohee 2024-03-10 00:52:27 +02:00
parent 62a073c51a
commit 596ab89ef7
1 changed files with 1 additions and 1 deletions

View File

@ -2223,7 +2223,7 @@ async function checkWorldInfo(chat, maxContext) {
const text = newEntries
.filter(x => !failedProbabilityChecks.has(x))
.filter(x => !x.preventRecursion)
.map(x => x.content).join('\n');
.map(x => substituteParams(x.content)).join('\n');
buffer.addRecurse(text);
allActivatedText = (text + '\n' + allActivatedText);
}