Add missing samplers to TC restore preset

This commit is contained in:
Wolfsblvt
2025-03-02 00:26:47 +01:00
parent 64e1fd5f71
commit 810d954d12

View File

@ -803,16 +803,19 @@ jQuery(function () {
'dry_penalty_last_n_textgenerationwebui': 0,
'xtc_threshold_textgenerationwebui': 0.1,
'xtc_probability_textgenerationwebui': 0,
'nsigma_counter_textgenerationwebui': 0,
'epsilon_cutoff_counter_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);