This commit is contained in:
SillyLossy
2023-05-16 16:28:42 +03:00
6 changed files with 147 additions and 79 deletions

View File

@ -1539,7 +1539,7 @@ class StreamingProcessor {
setGenerationProgress(0);
$('.mes_buttons:last').show();
generatedPromtCache = '';
console.log("Generated text size:", text.length, text)
if (power_user.auto_swipe) {
@ -5578,6 +5578,27 @@ $(document).ready(function () {
$("#options [id]").on("click", function () {
var id = $(this).attr("id");
if (id == "option_toggle_AN") {
if (selected_group || this_chid !== undefined && $("#floatingPrompt").css("display") === 'none') {
$("#floatingPrompt").css("display", "flex");
$("#floatingPrompt").css("opacity", 0.0);
$("#floatingPrompt").transition({
opacity: 1.0,
duration: animation_duration,
easing: animation_easing,
});
$("#ANBlockToggle").click();
} else {
$("#floatingPrompt").transition({
opacity: 0.0,
duration: 250,
easing: animation_easing,
});
setTimeout(function () { $("#floatingPrompt").hide(); }, 250);
}
}
if (id == "option_select_chat") {
if ((selected_group && !is_group_generating) || (this_chid !== undefined && !is_send_press)) {
displayPastChats();