Fix possible prompt overflow on message examples push-out

This commit is contained in:
Cohee 2024-01-21 23:13:01 +02:00
parent 814ed49c31
commit 3cd935c0d2
1 changed files with 2 additions and 1 deletions

View File

@ -3314,7 +3314,8 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu
const prompt = [
storyString,
mesExmString,
mesSend.join(''),
mesSend.map((e) => `${e.extensionPrompts.join('')}${e.message}`).join(''),
'\n',
generatedPromptCache,
allAnchors,
quiet_prompt,