Add missing samplers to TC restore preset

810d954d12081c91e8a22d9a19400ea50b01b1e8

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +5 -2Showing whitespace changes
public/scripts/textgen-settings.js+5 -2
@@ -803,16 +803,19 @@ jQuery(function () {
803803 'dry_penalty_last_n_textgenerationwebui': 0,
804804 'xtc_threshold_textgenerationwebui': 0.1,
805805 'xtc_probability_textgenerationwebui': 0,
806+ 'nsigma_counter_textgenerationwebui': 0,
807+ 'epsilon_cutoff_counter_textgenerationwebui': 0,
806808 };
807809
808810 for (const [id, value] of Object.entries(inputs)) {
809811 const inputElement = $(`#${id}`);
812+ const valueToSet = typeof value === 'boolean' ? String(value) : value;
810813 if (inputElement.prop('type') === 'checkbox') {
811814 inputElement.prop('checked', value).trigger('input');
812815 } else if (inputElement.prop('type') === 'number') {
813816 inputElement.val(valuevalueToSet).trigger('input');
814817 } else {
815818 inputElement.val(valuevalueToSet).trigger('input');
816819 if (power_user.enableZenSliders) {
817820 let masterElementID = inputElement.prop('id');
818821 console.log(masterElementID);