mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Presets: Add power user setting support
Settings such as adding character name, stopping strings, etc can be preset specific. This change is mainly inspired because people (like myself) often forget to change these settings after switching a preset, which can cause weird responses from the model. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
||||
import { groups, selected_group } from "./group-chats.js";
|
||||
import { instruct_presets } from "./instruct-mode.js";
|
||||
import { kai_settings } from "./kai-settings.js";
|
||||
import { context_presets, power_user } from "./power-user.js";
|
||||
import { context_presets, getContextSettings, power_user } from "./power-user.js";
|
||||
import {
|
||||
textgenerationwebui_preset_names,
|
||||
textgenerationwebui_presets,
|
||||
@@ -104,6 +104,7 @@ class PresetManager {
|
||||
|
||||
async updatePreset() {
|
||||
const selected = $(this.select).find("option:selected");
|
||||
console.log(selected)
|
||||
|
||||
if (selected.val() == 'gui') {
|
||||
toastr.info('Cannot update GUI preset');
|
||||
@@ -236,7 +237,7 @@ class PresetManager {
|
||||
case "textgenerationwebui":
|
||||
return textgenerationwebui_settings;
|
||||
case "context":
|
||||
const context_preset = structuredClone(power_user.context);
|
||||
const context_preset = getContextSettings();
|
||||
context_preset['name'] = name || power_user.context.preset;
|
||||
return context_preset;
|
||||
case "instruct":
|
||||
|
Reference in New Issue
Block a user