mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Filter null messages in array and context line appearing unprompted
This commit is contained in:
@ -2911,7 +2911,9 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
||||
parseTokenCounts(counts, thisPromptBits);
|
||||
}
|
||||
|
||||
setInContextMessages(openai_messages_count, type);
|
||||
if (!dryRun) {
|
||||
setInContextMessages(openai_messages_count, type);
|
||||
}
|
||||
}
|
||||
|
||||
if (true === dryRun) return onSuccess({error: 'dryRun'});
|
||||
@ -3336,7 +3338,7 @@ function parseTokenCounts(counts, thisPromptBits) {
|
||||
function addChatsPreamble(mesSendString) {
|
||||
return main_api === 'novel'
|
||||
? nai_settings.preamble + '\n' + mesSendString
|
||||
: mesSendString;
|
||||
: mesSendString;
|
||||
}
|
||||
|
||||
function addChatsSeparator(mesSendString) {
|
||||
|
Reference in New Issue
Block a user