mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
WI: Fix adding empty text to recursion buffer
This commit is contained in:
@ -4264,8 +4264,10 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
|
|||||||
if (scanState) {
|
if (scanState) {
|
||||||
const text = successfulNewEntriesForRecursion
|
const text = successfulNewEntriesForRecursion
|
||||||
.map(x => x.content).join('\n');
|
.map(x => x.content).join('\n');
|
||||||
|
if (text) {
|
||||||
buffer.addRecurse(text);
|
buffer.addRecurse(text);
|
||||||
allActivatedText = (text + '\n' + allActivatedText);
|
allActivatedText = (text + '\n' + allActivatedText);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
logNextState('[WI] Scan done. No new entries to prompt. Stopping.');
|
logNextState('[WI] Scan done. No new entries to prompt. Stopping.');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user