mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
xtc block filtering, GO
This commit is contained in:
@ -90,6 +90,11 @@ function setSamplerListListeners() {
|
|||||||
targetDisplayType = 'block';
|
targetDisplayType = 'block';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (samplerName === 'xtc_probability') {
|
||||||
|
relatedDOMElement = $('#xtc_block');
|
||||||
|
targetDisplayType = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
if (samplerName === 'dynatemp') {
|
if (samplerName === 'dynatemp') {
|
||||||
relatedDOMElement = $('#dynatemp_block_ooba');
|
relatedDOMElement = $('#dynatemp_block_ooba');
|
||||||
targetDisplayType = 'block';
|
targetDisplayType = 'block';
|
||||||
@ -248,6 +253,10 @@ async function listSamplers(main_api, arrayOnly = false) {
|
|||||||
targetDOMelement = $('#dryBlock');
|
targetDOMelement = $('#dryBlock');
|
||||||
displayname = 'DRY Rep Pen Block';
|
displayname = 'DRY Rep Pen Block';
|
||||||
}
|
}
|
||||||
|
if (sampler === 'xtc_probability') {
|
||||||
|
targetDOMelement = $('#xtc_block');
|
||||||
|
displayname = 'XTC Block';
|
||||||
|
}
|
||||||
|
|
||||||
if (sampler === 'dynatemp') {
|
if (sampler === 'dynatemp') {
|
||||||
targetDOMelement = $('#dynatemp_block_ooba');
|
targetDOMelement = $('#dynatemp_block_ooba');
|
||||||
@ -374,6 +383,11 @@ export async function validateDisabledSamplers(redraw = false) {
|
|||||||
targetDisplayType = 'block';
|
targetDisplayType = 'block';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sampler === 'xtc_probability') {
|
||||||
|
relatedDOMElement = $('#xtc_block');
|
||||||
|
targetDisplayType = 'block';
|
||||||
|
}
|
||||||
|
|
||||||
if (sampler === 'penalty_alpha') { //contrastive search only has one sampler, does it need its own block?
|
if (sampler === 'penalty_alpha') { //contrastive search only has one sampler, does it need its own block?
|
||||||
relatedDOMElement = $('#contrastiveSearchBlock');
|
relatedDOMElement = $('#contrastiveSearchBlock');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user