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) {
|
||||
const text = successfulNewEntriesForRecursion
|
||||
.map(x => x.content).join('\n');
|
||||
buffer.addRecurse(text);
|
||||
allActivatedText = (text + '\n' + allActivatedText);
|
||||
if (text) {
|
||||
buffer.addRecurse(text);
|
||||
allActivatedText = (text + '\n' + allActivatedText);
|
||||
}
|
||||
} else {
|
||||
logNextState('[WI] Scan done. No new entries to prompt. Stopping.');
|
||||
}
|
||||
|
Reference in New Issue
Block a user