XTC for ooba

cd8dd5fc8a7e8a6421570128b6f0a7fe98a54a57

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +3 -1Ignore whitespace
public/index.html+2 -1
@@ -1279,7 +1279,7 @@
1279 </div>1279 </div>
1280 </div>1280 </div>
12811281
1282 <div data-newbie-hidden data-tg-type="koboldcpp" id="xtc_block" class="wide100p">1282 <div data-newbie-hidden data-tg-type="koboldcpp,ooba" id="xtc_block" class="wide100p">
1283 <h4 class="wide100p textAlignCenter">1283 <h4 class="wide100p textAlignCenter">
1284 <label data-i18n="Exclude Top Choices (XTC)">Exclude Top Choices (XTC)</label>1284 <label data-i18n="Exclude Top Choices (XTC)">Exclude Top Choices (XTC)</label>
1285 <a href="https://github.com/oobabooga/text-generation-webui/pull/6335" target="_blank">1285 <a href="https://github.com/oobabooga/text-generation-webui/pull/6335" target="_blank">
@@ -1649,6 +1649,7 @@
1649 <div data-name="top_a" draggable="true"><span>Top A</span><small></small></div>1649 <div data-name="top_a" draggable="true"><span>Top A</span><small></small></div>
1650 <div data-name="min_p" draggable="true"><span>Min P</span><small></small></div>1650 <div data-name="min_p" draggable="true"><span>Min P</span><small></small></div>
1651 <div data-name="mirostat" draggable="true"><span>Mirostat</span><small></small></div>1651 <div data-name="mirostat" draggable="true"><span>Mirostat</span><small></small></div>
1652 <div data-name="xtc" draggable="true"><span>XTC</span><small></small></div>
1652 </div>1653 </div>
1653 <div id="textgenerationwebui_default_order" class="menu_button menu_button_icon">1654 <div id="textgenerationwebui_default_order" class="menu_button menu_button_icon">
1654 <span data-i18n="Load default order">Load default order</span>1655 <span data-i18n="Load default order">Load default order</span>
public/scripts/textgen-settings.js+1 -0
@@ -80,6 +80,7 @@ const OOBA_DEFAULT_ORDER = [
80 'top_a',80 'top_a',
81 'min_p',81 'min_p',
82 'mirostat',82 'mirostat',
83 'xtc',
83];84];
84const BIAS_KEY = '#textgenerationwebui_api-settings';85const BIAS_KEY = '#textgenerationwebui_api-settings';
8586