activation regex before sys prompt, template save text to sequences header
| @@ -3229,12 +3229,6 @@ | |||
| 3229 | <div class="flex-container"> | 3229 | <div class="flex-container"> |
| 3230 | <select id="instruct_presets" data-preset-manager-for="instruct" class="flex1 text_pole"></select> | 3230 | <select id="instruct_presets" data-preset-manager-for="instruct" class="flex1 text_pole"></select> |
| 3231 | </div> | 3231 | </div> |
| 3232 | <div data-newbie-hidden> | ||
| 3233 | <label> | ||
| 3234 | <small data-i18n="System Prompt">System Prompt</small> | ||
| 3235 | </label> | ||
| 3236 | <div contenteditable="true" id="instruct_system_prompt" class="text_pole textarea_compact autoSetHeight" rows="1"></div> | ||
| 3237 | </div> | ||
| 3238 | <label data-newbie-hidden> | 3232 | <label data-newbie-hidden> |
| 3239 | <small data-i18n="Activation Regex"> | 3233 | <small data-i18n="Activation Regex"> |
| 3240 | Activation Regex <span class="fa-solid fa-circle-question" title="When connecting to an API or choosing a model, automatically activate this Instruct Mode template if the model name matches the provided regular expression."></span> | 3234 | Activation Regex <span class="fa-solid fa-circle-question" title="When connecting to an API or choosing a model, automatically activate this Instruct Mode template if the model name matches the provided regular expression."></span> |
| @@ -3244,6 +3238,13 @@ | |||
| 3244 | <input type="text" contenteditable="true" id="instruct_activation_regex" class="text_pole textarea_compact autoSetHeight" maxlength="5000" rows="1" placeholder="e.g. /llama(-)?[3|3.1]/i"></input> | 3238 | <input type="text" contenteditable="true" id="instruct_activation_regex" class="text_pole textarea_compact autoSetHeight" maxlength="5000" rows="1" placeholder="e.g. /llama(-)?[3|3.1]/i"></input> |
| 3245 | </div> | 3239 | </div> |
| 3246 | <div data-newbie-hidden> | 3240 | <div data-newbie-hidden> |
| 3241 | <label> | ||
| 3242 | <small data-i18n="System Prompt">System Prompt</small> | ||
| 3243 | </label> | ||
| 3244 | <div contenteditable="true" id="instruct_system_prompt" class="text_pole textarea_compact autoSetHeight" rows="1"></div> | ||
| 3245 | </div> | ||
| 3246 | |||
| 3247 | <div data-newbie-hidden> | ||
| 3247 | <label for="instruct_wrap" class="checkbox_label"> | 3248 | <label for="instruct_wrap" class="checkbox_label"> |
| 3248 | <input id="instruct_wrap" type="checkbox" /> | 3249 | <input id="instruct_wrap" type="checkbox" /> |
| 3249 | <small data-i18n="Wrap Sequences with Newline">Wrap Sequences with Newline</small> | 3250 | <small data-i18n="Wrap Sequences with Newline">Wrap Sequences with Newline</small> |
| @@ -3334,7 +3335,7 @@ | |||
| 3334 | <div id="InstructSequencesColumn" class="flex-container flexNoGap flexFlowColumn flex1"> | 3335 | <div id="InstructSequencesColumn" class="flex-container flexNoGap flexFlowColumn flex1"> |
| 3335 | <div data-newbie-hidden class="inline-drawer wide100p flexFlowColumn"> | 3336 | <div data-newbie-hidden class="inline-drawer wide100p flexFlowColumn"> |
| 3336 | <h4 class="standoutHeader title_restorable"> | 3337 | <h4 class="standoutHeader title_restorable"> |
| 3337 | <b><span data-i18n="Instruct Mode Sequences">Instruct Sequences</span></b> | 3338 | <b><span data-i18n="Instruct Mode Sequences">Instruct Sequences</span><small>(Saves to Template)</small></b> |
| 3338 | </h4> | 3339 | </h4> |
| 3339 | <div class="flex-container"> | 3340 | <div class="flex-container"> |
| 3340 | <div class="flexAuto" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt."> | 3341 | <div class="flexAuto" title="Inserted before a System prompt." data-i18n="[title]Inserted before a System prompt."> |