updated lite

This commit is contained in:
Concedo 2026-03-18 11:20:32 +08:00
parent ded5486d52
commit f796878022

View file

@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
-->
<head>
<script id="init-config">
const LITEVER = 319;
const LITEVER = 320;
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_";
@ -13989,17 +13989,17 @@ Current version indicated by LITEVER below.
koboldcpp_force_allow_endpoint_selector = true;
},()=>{},true);
}
else if(localflag && is_using_kcpp_with_admin() && is_using_kcpp_with_routermode())
{
msgboxYesNo("This KoboldCpp instance appears to be running in router mode.<br><br>Would you like to connect in OpenAI Chat Completions mode to allow for model hotswap?<br><br>You can switch back in the 'AI' menu later.","Router Mode Detected",
()=>{
document.getElementById("customapidropdown").value = "2";
render_gametext(false);
display_endpoint_container();
oai_fetch_models();
koboldcpp_force_allow_endpoint_selector = true;
},()=>{},true);
}
// else if(localflag && is_using_kcpp_with_admin() && is_using_kcpp_with_routermode())
// {
// msgboxYesNo("This KoboldCpp instance appears to be running in router mode.<br><br>Would you like to connect in OpenAI Chat Completions mode to allow for model hotswap?<br><br>You can switch back in the 'AI' menu later.","Router Mode Detected",
// ()=>{
// document.getElementById("customapidropdown").value = "2";
// render_gametext(false);
// display_endpoint_container();
// oai_fetch_models();
// koboldcpp_force_allow_endpoint_selector = true;
// },()=>{},true);
// }
}else{
console.log("Unknown KoboldCpp Check Response: " + data);