- Selects instruct mode preset by name. Gets the current instruct if no name is provided.
+ Selects instruct mode template by name. Gets the current instruct template if no name is provided.
Example:
@@ -9231,7 +9231,7 @@ jQuery(async function () {
returns: 'template name',
unnamedArgumentList: [
SlashCommandArgument.fromProps({
- description: 'context preset name',
+ description: 'context template name',
typeList: [ARGUMENT_TYPE.STRING],
enumProvider: () => context_presets.map(preset => new SlashCommandEnumValue(preset.name, null, enumTypes.enum, enumIcons.preset)),
}),
diff --git a/public/scripts/instruct-mode.js b/public/scripts/instruct-mode.js
index 366a8da6d..c62a1bf34 100644
--- a/public/scripts/instruct-mode.js
+++ b/public/scripts/instruct-mode.js
@@ -156,7 +156,7 @@ export function selectInstructPreset(preset) {
// If instruct preset is not already selected, select it
if (preset !== power_user.instruct.preset) {
$('#instruct_presets').val(preset).trigger('change');
- toastr.info(`Instruct Mode: preset "${preset}" auto-selected`);
+ toastr.info(`Instruct Mode: template "${preset}" auto-selected`);
}
// If instruct mode is disabled, enable it
@@ -596,11 +596,11 @@ jQuery(() => {
if (power_user.instruct.preset === power_user.default_instruct) {
power_user.default_instruct = null;
$(this).removeClass('default');
- toastr.info('Default instruct preset cleared');
+ toastr.info('Default instruct template cleared');
} else {
power_user.default_instruct = power_user.instruct.preset;
$(this).addClass('default');
- toastr.info(`Default instruct preset set to ${power_user.default_instruct}`);
+ toastr.info(`Default instruct template set to ${power_user.default_instruct}`);
}
saveSettingsDebounced();
diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js
index 88d7f3bf2..896de485e 100644
--- a/public/scripts/preset-manager.js
+++ b/public/scripts/preset-manager.js
@@ -160,20 +160,25 @@ class PresetManager {
const name = selected.text();
await this.savePreset(name);
- toastr.success('Preset updated');
+
+ const successToast = !this.isAdvancedFormatting() ? 'Preset updated' : 'Template updated';
+ toastr.success(successToast);
}
async savePresetAs() {
const inputValue = this.getSelectedPresetName();
- const popupText = !this.isNonGenericApi() ? '
Hint: Use a character/group name to bind preset to a specific chat.