Fix streaming url validation
This commit is contained in:
parent
03fe8f88f9
commit
191c180946
|
@ -19,6 +19,7 @@ import {
|
||||||
getTextGenUrlSourceId,
|
getTextGenUrlSourceId,
|
||||||
isMancer,
|
isMancer,
|
||||||
isAphrodite,
|
isAphrodite,
|
||||||
|
textgen_types,
|
||||||
} from "./scripts/textgen-settings.js";
|
} from "./scripts/textgen-settings.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -2325,7 +2326,11 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
||||||
return;
|
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');
|
toastr.error('Streaming URL is not set. Look it up in the console window when starting TextGen Web UI');
|
||||||
is_send_press = false;
|
is_send_press = false;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue