Rearrange Horde blocks

This commit is contained in:
Cohee1207
2023-06-28 15:48:12 +03:00
parent 4ad328029e
commit a1eb2b794e
2 changed files with 13 additions and 3 deletions

View File

@ -1308,6 +1308,10 @@
<form action="javascript:void(null);" method="post" enctype="multipart/form-data"> <form action="javascript:void(null);" method="post" enctype="multipart/form-data">
<div id="kobold_horde_block"> <div id="kobold_horde_block">
<ul> <ul>
<li>
Avoid sending sensitive information to the Horde.
<a target="_blank" href="https://docs.sillytavern.app/usage/api-connections/horde/">Review the Privacy statement</a>
</li>
<li> <li>
<a target="_blank" href="https://horde.koboldai.net/register">Register a Horde <a target="_blank" href="https://horde.koboldai.net/register">Register a Horde
account for faster queue times</a> account for faster queue times</a>
@ -1347,13 +1351,11 @@
<div class="neutral_warning">For privacy reasons, your API key will be hidden after you <div class="neutral_warning">For privacy reasons, your API key will be hidden after you
reload the page.</div> reload the page.</div>
<h4 class="horde_model_title"> <h4 class="horde_model_title">
Model Models
<div id="horde_refresh" title="Refresh models" class="right_menu_button"> <div id="horde_refresh" title="Refresh models" class="right_menu_button">
<div class="fa-solid fa-repeat "></div> <div class="fa-solid fa-repeat "></div>
</div> </div>
</h4> </h4>
<small class="horde_multiple_hint">You can select multiple models.<br>Avoid sending
sensitive information to the Horde. <a id="horde_privacy_disclaimer" target="_blank" href="https://docs.sillytavern.app/usage/api-connections/horde/">Learn more</a></small>
<select id="horde_model" multiple> <select id="horde_model" multiple>
<option>-- Horde models not loaded --</option> <option>-- Horde models not loaded --</option>
</select> </select>

View File

@ -271,6 +271,14 @@ jQuery(function () {
placeholder: 'Select Horde models', placeholder: 'Select Horde models',
allowClear: true, allowClear: true,
closeOnSelect: false, closeOnSelect: false,
templateSelection: function(data) {
// Customize the pillbox text by shortening the full text
return data.id;
},
templateResult: function(data) {
// Return the full text for the dropdown
return data.text;
},
}); });
} }
}) })