From 969ef81701f48b5b72314024a6ecd45cb1de4475 Mon Sep 17 00:00:00 2001
From: Concedo <39025047+LostRuins@users.noreply.github.com>
Date: Wed, 25 Jun 2025 20:51:27 +0800
Subject: [PATCH] updated lite
---
klite.embd | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
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);
}