updated lite

This commit is contained in:
Concedo 2025-06-25 20:51:27 +08:00
parent 45f0cc7310
commit 969ef81701

View file

@ -13983,7 +13983,7 @@ Current version indicated by LITEVER below.
function set_voice_clone()
{
inputBoxOkCancel("Set the Voice Clone JSON to clone an existing voice.<br><br><a href=''>You can download existing voice clone JSONs, or make your own.</span><br>","Apply Voice Clone JSON",kcpp_tts_json,"Paste JSON Here",()=>{
inputBoxOkCancel("Set the Voice Clone JSON to clone an existing voice.<br><br><a href='https://github.com/LostRuins/koboldcpp/tree/concedo/examples/outetts/speakers' target='_blank'>You can download existing voice clone JSONs, or make your own.</span><br>","Apply Voice Clone JSON",kcpp_tts_json,"Paste JSON Here",()=>{
let userinput = getInputBoxValue().trim();
try
{
@ -14466,6 +14466,14 @@ Current version indicated by LITEVER below.
console.error('Error:', error);
});
}
else
{
//sometimes if oai hasnt started streaming but we need to kill the connection, direct abort
if(globalabortcontroller && is_browser_supports_sse() && synchro_pending_stream=="" && localsettings.tokenstreammode!=0 && id_to_cancel && id_to_cancel != "-1" && id_to_cancel != "")
{
trigger_abort_controller();
}
}
show_abort_button(false);
}