updated lite

This commit is contained in:
Concedo
2026-02-18 20:42:07 +08:00
parent a380d23ff1
commit c4623db256
+2 -2
View File
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
-->
<head>
<script id="init-config">
const LITEVER = 313;
const LITEVER = 314;
const urlParams = new URLSearchParams(window.location.search);
var localflag = urlParams.get('local'); //this will be replaced automatically in embedded kcpp
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
@@ -7324,7 +7324,7 @@ Current version indicated by LITEVER below.
pending_toolcall_objs.push(pending_toolcall_last_obj);
pending_toolcall_last_obj = null;
}
if(synchro_polled_response=="" && last_stop_reason=="tool_calls" && pending_toolcall_objs!=null && pending_toolcall_objs.length>0)
if((synchro_polled_response=="" || (synchro_polled_response.includes("<think>") && synchro_polled_response.includes("</think>"))) && last_stop_reason=="tool_calls" && pending_toolcall_objs!=null && pending_toolcall_objs.length>0)
{
//a tool call was triggered instead
synchro_polled_resptoolcalls = [];