Fix bugs with the settings
| @@ -96,7 +96,7 @@ const APHRODITE_DEFAULT_ORDER = [ | ||
| 96 | 96 | 'epsilon_cutoff', |
| 97 | 97 | 'typical_p', |
| 98 | 98 | 'quadratic', |
| 99 | 99 | 'xtc', |
| 100 | 100 | ]; |
| 101 | 101 | const BIAS_KEY = '#textgenerationwebui_api-settings'; |
| 102 | 102 | |
| @@ -179,7 +179,7 @@ const settings = { | ||
| 179 | 179 | banned_tokens: '', |
| 180 | 180 | sampler_priority: OOBA_DEFAULT_ORDER, |
| 181 | 181 | samplers: LLAMACPP_DEFAULT_ORDER, |
| 182 | 182 | samplers_priortiessamplers_priorities: APHRODITE_DEFAULT_ORDER, |
| 183 | 183 | ignore_eos_token: false, |
| 184 | 184 | spaces_between_special_tokens: true, |
| 185 | 185 | speculative_ngram: false, |
| @@ -879,7 +879,7 @@ function setSettingByName(setting, value, trigger) { | ||
| 879 | 879 | return; |
| 880 | 880 | } |
| 881 | 881 | |
| 882 | 882 | if ('samplers_prioritysamplers_priorities' === setting) { |
| 883 | 883 | value = Array.isArray(value) ? value : APHRODITE_DEFAULT_ORDER; |
| 884 | 884 | insertMissingArrayItems(APHRODITE_DEFAULT_ORDER, value); |
| 885 | 885 | sortAphroditeItemsByOrder(value); |