Add missing samplers to TC restore preset

810d954d12081c91e8a22d9a19400ea50b01b1e8

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +5 -2Ignore whitespace
public/scripts/textgen-settings.js+5 -2
@@ -803,16 +803,19 @@ jQuery(function () {
803 'dry_penalty_last_n_textgenerationwebui': 0,803 'dry_penalty_last_n_textgenerationwebui': 0,
804 'xtc_threshold_textgenerationwebui': 0.1,804 'xtc_threshold_textgenerationwebui': 0.1,
805 'xtc_probability_textgenerationwebui': 0,805 'xtc_probability_textgenerationwebui': 0,
806 'nsigma_counter_textgenerationwebui': 0,
807 'epsilon_cutoff_counter_textgenerationwebui': 0,
806 };808 };
807809
808 for (const [id, value] of Object.entries(inputs)) {810 for (const [id, value] of Object.entries(inputs)) {
809 const inputElement = $(`#${id}`);811 const inputElement = $(`#${id}`);
812 const valueToSet = typeof value === 'boolean' ? String(value) : value;
810 if (inputElement.prop('type') === 'checkbox') {813 if (inputElement.prop('type') === 'checkbox') {
811 inputElement.prop('checked', value).trigger('input');814 inputElement.prop('checked', value).trigger('input');
812 } else if (inputElement.prop('type') === 'number') {815 } else if (inputElement.prop('type') === 'number') {
813 inputElement.val(value).trigger('input');816 inputElement.val(valueToSet).trigger('input');
814 } else {817 } else {
815 inputElement.val(value).trigger('input');818 inputElement.val(valueToSet).trigger('input');
816 if (power_user.enableZenSliders) {819 if (power_user.enableZenSliders) {
817 let masterElementID = inputElement.prop('id');820 let masterElementID = inputElement.prop('id');
818 console.log(masterElementID);821 console.log(masterElementID);