diff --git a/public/index.html b/public/index.html index d587c3064..d04f46373 100644 --- a/public/index.html +++ b/public/index.html @@ -2756,6 +2756,10 @@ Replace Macro in Sequences + + + Skip Example Dialogues Formatting + Include Names diff --git a/public/scripts/instruct-mode.js b/public/scripts/instruct-mode.js index ed17866f8..c9f83019a 100644 --- a/public/scripts/instruct-mode.js +++ b/public/scripts/instruct-mode.js @@ -30,6 +30,7 @@ const controls = [ { id: 'instruct_last_output_sequence', property: 'last_output_sequence', isCheckbox: false }, { id: 'instruct_activation_regex', property: 'activation_regex', isCheckbox: false }, { id: 'instruct_bind_to_context', property: 'bind_to_context', isCheckbox: true }, + { id: 'instruct_skip_examples', property: 'skip_examples', isCheckbox: true }, ]; /** @@ -45,6 +46,10 @@ export function loadInstructMode(data) { power_user.instruct.names_force_groups = true; } + if (power_user.instruct.skip_examples === undefined) { + power_user.instruct.skip_examples = false; + } + controls.forEach(control => { const $element = $(`#${control.id}`); @@ -302,6 +307,10 @@ export function formatInstructModeSystemPrompt(systemPrompt){ * @returns {string} Formatted example messages string. */ export function formatInstructModeExamples(mesExamples, name1, name2) { + if (power_user.instruct.skip_examples) { + return mesExamples; + } + const includeNames = power_user.instruct.names || (!!selected_group && power_user.instruct.names_force_groups); let inputSequence = power_user.instruct.input_sequence;