From 191c18094632e60c360472010969267519e9774a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 28 Sep 2023 20:47:33 +0300 Subject: [PATCH] Fix streaming url validation --- public/script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 1567e1c64..3bc26f161 100644 --- a/public/script.js +++ b/public/script.js @@ -19,6 +19,7 @@ import { getTextGenUrlSourceId, isMancer, isAphrodite, + textgen_types, } from "./scripts/textgen-settings.js"; import { @@ -2325,7 +2326,11 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, return; } - if (main_api == 'textgenerationwebui' && textgenerationwebui_settings.streaming && !textgenerationwebui_settings.streaming_url) { + if ( + main_api == 'textgenerationwebui' && + textgenerationwebui_settings.streaming && + textgenerationwebui_settings.type === textgen_types.OOBA && + !textgenerationwebui_settings.streaming_url) { toastr.error('Streaming URL is not set. Look it up in the console window when starting TextGen Web UI'); is_send_press = false; return;