mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't insert a newline on empty WI
This commit is contained in:
@@ -1015,8 +1015,8 @@ async function checkWorldInfo(chat, maxContext) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const worldInfoBefore = `${WIBeforeEntries.join("\n")}\n`
|
const worldInfoBefore = WIBeforeEntries.length ? `${WIBeforeEntries.join("\n")}\n` : '';
|
||||||
const worldInfoAfter = `${WIAfterEntries.join("\n")}\n`
|
const worldInfoAfter = WIAfterEntries.length ? `${WIAfterEntries.join("\n")}\n` : '';
|
||||||
|
|
||||||
if (shouldWIAddPrompt) {
|
if (shouldWIAddPrompt) {
|
||||||
const originalAN = context.extensionPrompts[NOTE_MODULE_NAME].value;
|
const originalAN = context.extensionPrompts[NOTE_MODULE_NAME].value;
|
||||||
|
Reference in New Issue
Block a user