mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add missing samplers to TC restore preset
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user