From 44bf31e60211b0c158ba87daf3b9d4f9d5ffce74 Mon Sep 17 00:00:00 2001 From: 50h100a Date: Sun, 2 Jul 2023 17:04:21 -0400 Subject: [PATCH 1/2] Block generation if streaming option conflicts. --- public/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/script.js b/public/script.js index d3655ecdf..07bcd1469 100644 --- a/public/script.js +++ b/public/script.js @@ -1950,6 +1950,8 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, if (main_api == 'kobold' && kai_settings.streaming_kobold && !kai_settings.can_use_streaming) { toastr.warning('Streaming is enabled, but the version of Kobold used does not support token streaming.', undefined, { timeOut: 10000, preventDuplicates: true, }); + is_send_press = false; + return; } if (main_api == 'kobold' && kai_settings.streaming_kobold && power_user.multigen) { From 4afd616099924ff1b629d4c0738ff98d57e5fd00 Mon Sep 17 00:00:00 2001 From: 50h100a Date: Sun, 2 Jul 2023 17:19:53 -0400 Subject: [PATCH 2/2] kAI streamin mismatch Warning -> Error --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 07bcd1469..ac8121457 100644 --- a/public/script.js +++ b/public/script.js @@ -1949,7 +1949,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, } if (main_api == 'kobold' && kai_settings.streaming_kobold && !kai_settings.can_use_streaming) { - toastr.warning('Streaming is enabled, but the version of Kobold used does not support token streaming.', undefined, { timeOut: 10000, preventDuplicates: true, }); + toastr.error('Streaming is enabled, but the version of Kobold used does not support token streaming.', undefined, { timeOut: 10000, preventDuplicates: true, }); is_send_press = false; return; }