| 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 | }; |
| 807 | | 809 | |
| 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); |