XTC for ooba

This commit is contained in:
Cohee 2024-08-31 20:31:34 +03:00
parent e690a87294
commit cd8dd5fc8a
2 changed files with 3 additions and 1 deletions

View File

@ -1279,7 +1279,7 @@
</div>
</div>
<div data-newbie-hidden data-tg-type="koboldcpp" id="xtc_block" class="wide100p">
<div data-newbie-hidden data-tg-type="koboldcpp,ooba" id="xtc_block" class="wide100p">
<h4 class="wide100p textAlignCenter">
<label data-i18n="Exclude Top Choices (XTC)">Exclude Top Choices (XTC)</label>
<a href="https://github.com/oobabooga/text-generation-webui/pull/6335" target="_blank">
@ -1649,6 +1649,7 @@
<div data-name="top_a" draggable="true"><span>Top A</span><small></small></div>
<div data-name="min_p" draggable="true"><span>Min P</span><small></small></div>
<div data-name="mirostat" draggable="true"><span>Mirostat</span><small></small></div>
<div data-name="xtc" draggable="true"><span>XTC</span><small></small></div>
</div>
<div id="textgenerationwebui_default_order" class="menu_button menu_button_icon">
<span data-i18n="Load default order">Load default order</span>

View File

@ -80,6 +80,7 @@ const OOBA_DEFAULT_ORDER = [
'top_a',
'min_p',
'mirostat',
'xtc',
];
const BIAS_KEY = '#textgenerationwebui_api-settings';