Revert entry post-process

This commit is contained in:
Cohee 2024-05-09 14:55:09 +03:00
parent 88aae5978f
commit e14c9506b6
1 changed files with 2 additions and 2 deletions

View File

@ -2580,8 +2580,8 @@ async function checkWorldInfo(chat, maxContext) {
}
});
const worldInfoBefore = WIBeforeEntries.join('\n');
const worldInfoAfter = WIAfterEntries.join('\n');
const worldInfoBefore = WIBeforeEntries.length ? WIBeforeEntries.join('\n') : '';
const worldInfoAfter = WIAfterEntries.length ? WIAfterEntries.join('\n') : '';
if (shouldWIAddPrompt) {
const originalAN = context.extensionPrompts[NOTE_MODULE_NAME].value;