mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-20 01:09:57 +00:00
updated lite
This commit is contained in:
parent
ded5486d52
commit
f796878022
1 changed files with 12 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue