mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
- converted UI img SVGs to webfonts
- moved unused SVGs and PNGs into subfolders for deletion consideration
This commit is contained in:
@@ -302,7 +302,7 @@ $(document).ajaxError(function myErrorHandler(_, xhr) {
|
||||
}
|
||||
});
|
||||
|
||||
function getTokenCount(str, padding=0) {
|
||||
function getTokenCount(str, padding = 0) {
|
||||
if (main_api == 'poe' || main_api == 'openai') {
|
||||
return gpt3.encode(str).bpe.length + padding;
|
||||
}
|
||||
@@ -1150,13 +1150,13 @@ function isStreamingEnabled() {
|
||||
|
||||
class StreamingProcessor {
|
||||
showStopButton(messageId) {
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({'display': 'block'});
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({'display': 'none'});
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({ 'display': 'block' });
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({ 'display': 'none' });
|
||||
}
|
||||
|
||||
hideStopButton(messageId) {
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({'display': 'none'});
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({'display': 'block'});
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({ 'display': 'none' });
|
||||
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({ 'display': 'block' });
|
||||
}
|
||||
|
||||
onStartStreaming(text) {
|
||||
@@ -1920,7 +1920,7 @@ async function Generate(type, automatic_trigger, force_name2) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (streamingProcessor.isFinished) {
|
||||
streamingProcessor.onFinishStreaming(streamingProcessor.messageId, getMessage);
|
||||
streamingProcessor = null;
|
||||
@@ -4927,6 +4927,7 @@ $(document).ready(function () {
|
||||
$(document).on('click', '.inline-drawer-toggle', function () {
|
||||
var icon = $(this).find('.inline-drawer-icon');
|
||||
icon.toggleClass('down up');
|
||||
icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up');
|
||||
$(this).closest('.inline-drawer').find('.inline-drawer-content').slideToggle();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user