Fix {{mesExamples}} strip behavior with in story string
This commit is contained in:
parent
b96054f337
commit
ddd4fac38c
|
@ -3005,9 +3005,6 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||
const blockHeading = main_api === 'openai' ? '<START>\n' : exampleSeparator;
|
||||
let mesExamplesArray = mesExamples.split(/<START>/gi).slice(1).map(block => `${blockHeading}${block.trim()}\n`);
|
||||
|
||||
if (power_user.strip_examples)
|
||||
mesExamplesArray = []
|
||||
|
||||
// First message in fresh 1-on-1 chat reacts to user/character settings changes
|
||||
if (chat.length) {
|
||||
chat[0].mes = substituteParams(chat[0].mes);
|
||||
|
@ -3158,6 +3155,11 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||
|
||||
const storyString = renderStoryString(storyStringParams);
|
||||
|
||||
// Story string rendered, safe to remove
|
||||
if (power_user.strip_examples) {
|
||||
mesExamplesArray = [];
|
||||
}
|
||||
|
||||
let oaiMessages = [];
|
||||
let oaiMessageExamples = [];
|
||||
|
||||
|
|
Loading…
Reference in New Issue