mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix "settings" variable being shadowed
This commit is contained in:
@@ -239,12 +239,12 @@ function getCustomTokenBans() {
|
|||||||
return result.filter(onlyUnique).map(x => String(x)).join(',');
|
return result.filter(onlyUnique).map(x => String(x)).join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadTextGenSettings(data, settings) {
|
function loadTextGenSettings(data, loadedSettings) {
|
||||||
textgenerationwebui_presets = convertPresets(data.textgenerationwebui_presets);
|
textgenerationwebui_presets = convertPresets(data.textgenerationwebui_presets);
|
||||||
textgenerationwebui_preset_names = data.textgenerationwebui_preset_names ?? [];
|
textgenerationwebui_preset_names = data.textgenerationwebui_preset_names ?? [];
|
||||||
Object.assign(settings, settings.textgenerationwebui_settings ?? {});
|
Object.assign(settings, loadedSettings.textgenerationwebui_settings ?? {});
|
||||||
|
|
||||||
if (settings.api_use_mancer_webui) {
|
if (loadedSettings.api_use_mancer_webui) {
|
||||||
settings.type = MANCER;
|
settings.type = MANCER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user