diff --git a/klite.embd b/klite.embd
index f7d904f2d..00e84d709 100644
--- a/klite.embd
+++ b/klite.embd
@@ -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.
You can download existing voice clone JSONs, or make your own.
","Apply Voice Clone JSON",kcpp_tts_json,"Paste JSON Here",()=>{
+ inputBoxOkCancel("Set the Voice Clone JSON to clone an existing voice.
You can download existing voice clone JSONs, or make your own.
","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);
}