mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'dev' of https://github.com/Cohee1207/SillyTavern into dev
This commit is contained in:
@@ -1308,6 +1308,10 @@
|
||||
<form action="javascript:void(null);" method="post" enctype="multipart/form-data">
|
||||
<div id="kobold_horde_block">
|
||||
<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>
|
||||
<a target="_blank" href="https://horde.koboldai.net/register">Register a Horde
|
||||
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
|
||||
reload the page.</div>
|
||||
<h4 class="horde_model_title">
|
||||
Model
|
||||
Models
|
||||
<div id="horde_refresh" title="Refresh models" class="right_menu_button">
|
||||
<div class="fa-solid fa-repeat "></div>
|
||||
</div>
|
||||
</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>
|
||||
<option>-- Horde models not loaded --</option>
|
||||
</select>
|
||||
|
@@ -533,6 +533,11 @@ function drawSpritesList(character, labels, sprites) {
|
||||
$('.expression_settings').show();
|
||||
$('#image_list').empty();
|
||||
$('#image_list').data('name', character);
|
||||
|
||||
if (!Array.isArray(labels)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
labels.sort().forEach((item) => {
|
||||
const sprite = sprites.find(x => x.label == item);
|
||||
|
||||
|
@@ -271,6 +271,14 @@ jQuery(function () {
|
||||
placeholder: 'Select Horde models',
|
||||
allowClear: true,
|
||||
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;
|
||||
},
|
||||
});
|
||||
}
|
||||
})
|
||||
|
@@ -990,8 +990,11 @@ function loadOpenAISettings(data, settings) {
|
||||
|
||||
$('#stream_toggle').prop('checked', oai_settings.stream_openai);
|
||||
|
||||
$('#model_openai_select').val(oai_settings.openai_model);
|
||||
$(`#model_openai_select option[value="${oai_settings.openai_model}"`).attr('selected', true);
|
||||
$('#model_claude_select').val(oai_settings.claude_model);
|
||||
$(`#model_claude_select option[value="${oai_settings.claude_model}"`).attr('selected', true);
|
||||
$('#model_windowai_select').val(oai_settings.windowai_model);
|
||||
$(`#model_windowai_select option[value="${oai_settings.windowai_model}"`).attr('selected', true);
|
||||
$('#openai_max_context').val(oai_settings.openai_max_context);
|
||||
$('#openai_max_context_counter').text(`${oai_settings.openai_max_context}`);
|
||||
|
Reference in New Issue
Block a user