From 2688d980c1d1292366194462ff68c5ac93611ad7 Mon Sep 17 00:00:00 2001 From: ThisIsPIRI Date: Fri, 8 Sep 2023 19:25:17 +0900 Subject: [PATCH] Replace macros in example separator and chat start --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index b8292dc73..dbff40ee3 100644 --- a/public/script.js +++ b/public/script.js @@ -2440,7 +2440,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, mesExamples = formatInstructModeExamples(mesExamples, name1, name2) } - const exampleSeparator = power_user.context.example_separator ? `${power_user.context.example_separator}\n` : ''; + const exampleSeparator = power_user.context.example_separator ? `${substituteParams(power_user.context.example_separator)}\n` : ''; const blockHeading = main_api === 'openai' ? '\n' : exampleSeparator; let mesExamplesArray = mesExamples.split(//gi).slice(1).map(block => `${blockHeading}${block.trim()}\n`); @@ -3422,7 +3422,7 @@ function addChatsPreamble(mesSendString) { function addChatsSeparator(mesSendString) { if (power_user.context.chat_start) { - return power_user.context.chat_start + '\n' + mesSendString; + return substituteParams(power_user.context.chat_start) + '\n' + mesSendString; } else {