You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14965,7 +14969,18 @@ Current version indicated by LITEVER below.
14965
14969
14966
14970
function add_img_btn_auto() {
14967
14971
if (localsettings.generate_images_mode==0) {
14968
-
msgbox("Error: No Image Generator Selected.\nPlease select an Image Generation option in Media Settings first.","No Image Generator")
14972
+
if (is_using_kcpp_with_imagegen()) {
14973
+
msgboxYesNo("Error: No Image Generator Selected.\nPlease select an Image Generation option in Media Settings first.\n\nKoboldCpp with Image Generation support was detected!\nEnable KoboldCpp Image Generation?", "No Image Generator",()=>{
msgbox("Error: No Image Generator Selected.\nPlease select an Image Generation option in Media Settings first.","No Image Generator")
14983
+
}
14969
14984
return;
14970
14985
}
14971
14986
let truncated_context = concat_gametext(true, "");
@@ -14984,7 +14999,18 @@ Current version indicated by LITEVER below.
14984
14999
function add_img_btn_custom()
14985
15000
{
14986
15001
if (localsettings.generate_images_mode==0) {
14987
-
msgbox("Error: No Image Generator Selected.\nPlease select an Image Generation option in Media Settings first.","No Image Generator")
15002
+
if (is_using_kcpp_with_imagegen()) {
15003
+
msgboxYesNo("Error: No Image Generator Selected.\nPlease select an Image Generation option in Media Settings first.\n\nKoboldCpp with Image Generation support was detected!\nEnable KoboldCpp Image Generation?", "No Image Generator",()=>{
msgbox("Error: No Image Generator Selected.\nPlease select an Image Generation option in Media Settings first.","No Image Generator")
15013
+
}
14988
15014
return;
14989
15015
}
14990
15016
inputBoxOkCancel("Enter a custom prompt to generate an image with.","Generate Image Manually","","Enter a Prompt",()=>{
@@ -15420,9 +15446,15 @@ Current version indicated by LITEVER below.
15420
15446
function manual_tts(from_settings_pane)
15421
15447
{
15422
15448
let ssval = from_settings_pane?document.getElementById("ttsselect").value:localsettings.speech_synth;
15423
-
if(ssval==0)
15424
-
{
15425
-
msgbox("Error: No TTS Generator was selected!\nPlease select a Text-To-Speech option in Media Settings first.","No TTS Generator");
15449
+
if (ssval == 0) {
15450
+
if (is_using_kcpp_with_tts()) {
15451
+
msgboxYesNo("Error: No TTS Generator was selected!\nPlease select a Text-To-Speech option in Media Settings first.\n\nKoboldCpp with TTS support was detected!\nEnable KoboldCpp TTS?", "No TTS Generator",()=>{
15452
+
localsettings.speech_synth = KCPP_TTS_ID;
15453
+
update_genimg_button_visiblility();
15454
+
},()=>{});
15455
+
} else {
15456
+
msgbox("Error: No TTS Generator was selected!\nPlease select a Text-To-Speech option in Media Settings first.", "No TTS Generator");
15457
+
}
15426
15458
return;
15427
15459
}
15428
15460
let speakprompt = "Enter phrase to speak. Currently selected TTS will be used.";
0 commit comments