diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index 5d54fe69b..4b8e8a66b 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -803,16 +803,18 @@ jQuery(function () { 'dry_penalty_last_n_textgenerationwebui': 0, 'xtc_threshold_textgenerationwebui': 0.1, 'xtc_probability_textgenerationwebui': 0, + 'nsigma_textgenerationwebui': 0, }; for (const [id, value] of Object.entries(inputs)) { const inputElement = $(`#${id}`); + const valueToSet = typeof value === 'boolean' ? String(value) : value; if (inputElement.prop('type') === 'checkbox') { inputElement.prop('checked', value).trigger('input'); } else if (inputElement.prop('type') === 'number') { - inputElement.val(value).trigger('input'); + inputElement.val(valueToSet).trigger('input'); } else { - inputElement.val(value).trigger('input'); + inputElement.val(valueToSet).trigger('input'); if (power_user.enableZenSliders) { let masterElementID = inputElement.prop('id'); console.log(masterElementID);