Extra fixes (#1185)

This commit is contained in:
Brian Dashore
2023-09-26 02:53:04 -04:00
committed by GitHub
parent 03e5ca054d
commit bfda5a5492
5 changed files with 15 additions and 24 deletions

View File

@ -24,7 +24,7 @@ import {
textgenerationwebui_presets,
textgenerationwebui_settings,
} from "./textgen-settings.js";
import { deepClone, download, parseJsonFile, waitUntilCondition } from "./utils.js";
import { download, parseJsonFile, waitUntilCondition } from "./utils.js";
const presetManagers = {};
@ -236,11 +236,11 @@ class PresetManager {
case "textgenerationwebui":
return textgenerationwebui_settings;
case "context":
const context_preset = deepClone(power_user.context);
const context_preset = structuredClone(power_user.context);
context_preset['name'] = name || power_user.context.preset;
return context_preset;
case "instruct":
const instruct_preset = deepClone(power_user.instruct);
const instruct_preset = structuredClone(power_user.instruct);
instruct_preset['name'] = name || power_user.instruct.preset;
return instruct_preset;
default: