Merge pull request #3593 from SillyTavern/tc-missing-samplers-on-restore Add missing samplers to TC restore preset

155956f45b4a892c74f4f471b72c7e99eda3218e

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +4 -2Showing whitespace changes
public/scripts/textgen-settings.js+4 -2
@@ -803,16 +803,18 @@ jQuery(function () {
803803 'dry_penalty_last_n_textgenerationwebui': 0,
804804 'xtc_threshold_textgenerationwebui': 0.1,
805805 'xtc_probability_textgenerationwebui': 0,
806+ 'nsigma_textgenerationwebui': 0,
806807 };
807808
808809 for (const [id, value] of Object.entries(inputs)) {
809810 const inputElement = $(`#${id}`);
811+ const valueToSet = typeof value === 'boolean' ? String(value) : value;
810812 if (inputElement.prop('type') === 'checkbox') {
811813 inputElement.prop('checked', value).trigger('input');
812814 } else if (inputElement.prop('type') === 'number') {
813815 inputElement.val(valuevalueToSet).trigger('input');
814816 } else {
815817 inputElement.val(valuevalueToSet).trigger('input');
816818 if (power_user.enableZenSliders) {
817819 let masterElementID = inputElement.prop('id');
818820 console.log(masterElementID);