mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-13 02:19:41 +00:00
updated lite
This commit is contained in:
parent
13394368b6
commit
5b658ab6d4
2 changed files with 43 additions and 44 deletions
86
klite.embd
86
klite.embd
|
@ -8483,7 +8483,7 @@ Current version indicated by LITEVER below.
|
||||||
let desiredkoboldkey = document.getElementById("customkoboldkey").value;
|
let desiredkoboldkey = document.getElementById("customkoboldkey").value;
|
||||||
|
|
||||||
if (desiredkoboldendpoint != null && desiredkoboldendpoint.trim() != "") {
|
if (desiredkoboldendpoint != null && desiredkoboldendpoint.trim() != "") {
|
||||||
hide_popups();
|
dismiss_endpoint_container();
|
||||||
desiredkoboldendpoint = desiredkoboldendpoint.trim();
|
desiredkoboldendpoint = desiredkoboldendpoint.trim();
|
||||||
|
|
||||||
//remove trailing slash and pound
|
//remove trailing slash and pound
|
||||||
|
@ -8794,7 +8794,7 @@ Current version indicated by LITEVER below.
|
||||||
}
|
}
|
||||||
if(desired_oai_key!="" && desired_oai_ep!="")
|
if(desired_oai_key!="" && desired_oai_ep!="")
|
||||||
{
|
{
|
||||||
hide_popups();
|
dismiss_endpoint_container();
|
||||||
|
|
||||||
//good to go
|
//good to go
|
||||||
custom_oai_endpoint = desired_oai_ep;
|
custom_oai_endpoint = desired_oai_ep;
|
||||||
|
@ -8863,7 +8863,7 @@ Current version indicated by LITEVER below.
|
||||||
}
|
}
|
||||||
if(desired_claude_key!="" && desired_claude_ep!="")
|
if(desired_claude_key!="" && desired_claude_ep!="")
|
||||||
{
|
{
|
||||||
hide_popups();
|
dismiss_endpoint_container();
|
||||||
|
|
||||||
//good to go
|
//good to go
|
||||||
custom_claude_endpoint = desired_claude_ep;
|
custom_claude_endpoint = desired_claude_ep;
|
||||||
|
@ -8899,7 +8899,7 @@ Current version indicated by LITEVER below.
|
||||||
|
|
||||||
if(desired_palm_key!="")
|
if(desired_palm_key!="")
|
||||||
{
|
{
|
||||||
hide_popups();
|
dismiss_endpoint_container();
|
||||||
|
|
||||||
//good to go
|
//good to go
|
||||||
custom_palm_key = desired_palm_key;
|
custom_palm_key = desired_palm_key;
|
||||||
|
@ -8930,7 +8930,7 @@ Current version indicated by LITEVER below.
|
||||||
|
|
||||||
if(desired_cohere_key!="")
|
if(desired_cohere_key!="")
|
||||||
{
|
{
|
||||||
hide_popups();
|
dismiss_endpoint_container();
|
||||||
|
|
||||||
//good to go
|
//good to go
|
||||||
custom_cohere_key = desired_cohere_key;
|
custom_cohere_key = desired_cohere_key;
|
||||||
|
@ -17316,6 +17316,43 @@ Current version indicated by LITEVER below.
|
||||||
|
|
||||||
<body id="outerbody" class="darkmode" onkeydown="handle_escape_button(event)" onbeforeunload="return handle_quit()">
|
<body id="outerbody" class="darkmode" onkeydown="handle_escape_button(event)" onbeforeunload="return handle_quit()">
|
||||||
|
|
||||||
|
<div class="popupcontainer flex hidden" id="welcomecontainer">
|
||||||
|
<div class="popupbg flex"></div>
|
||||||
|
<div class="nspopup flexsize higher">
|
||||||
|
<div class="popuptitlebar">
|
||||||
|
<div class="popuptitletext">Welcome To KoboldAI Lite</div>
|
||||||
|
</div>
|
||||||
|
<div class="aidgpopuplistheader anotelabel">
|
||||||
|
<div style="padding-bottom: 6px;">
|
||||||
|
Welcome to KoboldAI Lite!<br>Pick a UI Style to get started. You can always change it later in the Settings menu.
|
||||||
|
</div>
|
||||||
|
<div class="welcome-theme-selector">
|
||||||
|
<div class="welcome-theme-option">
|
||||||
|
<label><div class="welcome-theme-image welcomeimg1"></div>
|
||||||
|
<input onchange="select_welcome_ui()" type="radio" title="Classic UI Theme" name="welcometheme" value="0" checked="true"> Classic UI </label>
|
||||||
|
</div>
|
||||||
|
<div class="welcome-theme-option">
|
||||||
|
<label><div class="welcome-theme-image welcomeimg2"></div>
|
||||||
|
<input onchange="select_welcome_ui()" type="radio" title="Aesthetic UI Theme" name="welcometheme" value="2"> Aesthetic UI </label>
|
||||||
|
</div>
|
||||||
|
<div class="welcome-theme-option">
|
||||||
|
<label><div class="welcome-theme-image welcomeimg3"></div>
|
||||||
|
<input onchange="select_welcome_ui()" type="radio" title="Corpo UI Theme" name="welcometheme" value="3"> Corpo UI </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="margin-top: 10px;">
|
||||||
|
<p class="color_lightgray" id="welcomeuidesc"></p>
|
||||||
|
<p>Alternatively, you can <a href="#" class="color_blueurl" onclick="close_welcome_panel(false);load_file_button()">Load A Savefile</a> or <a href="#" class="color_blueurl" onclick="close_welcome_panel(false);display_scenarios()">Quick Start Scenario</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="popupfooter">
|
||||||
|
<button type="button" class="btn btn-primary" onclick="close_welcome_panel(true)">Set UI</button>
|
||||||
|
<button type="button" class="btn btn-primary" onclick="close_welcome_panel()">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="maincontainer" class="adaptivecontainer maincontainer">
|
<div id="maincontainer" class="adaptivecontainer maincontainer">
|
||||||
<div id="outerbodybg"></div>
|
<div id="outerbodybg"></div>
|
||||||
<div class="" id="topmenu">
|
<div class="" id="topmenu">
|
||||||
|
@ -17551,8 +17588,6 @@ Current version indicated by LITEVER below.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="popupcontainer flex hidden" id="customendpointcontainer">
|
<div class="popupcontainer flex hidden" id="customendpointcontainer">
|
||||||
<div class="popupbg flex"></div>
|
<div class="popupbg flex"></div>
|
||||||
<div class="nspopup flexsize evenhigher">
|
<div class="nspopup flexsize evenhigher">
|
||||||
|
@ -19029,43 +19064,6 @@ Current version indicated by LITEVER below.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="popupcontainer flex hidden" id="welcomecontainer">
|
|
||||||
<div class="popupbg flex"></div>
|
|
||||||
<div class="nspopup flexsize higher">
|
|
||||||
<div class="popuptitlebar">
|
|
||||||
<div class="popuptitletext">Welcome To KoboldAI Lite</div>
|
|
||||||
</div>
|
|
||||||
<div class="aidgpopuplistheader anotelabel">
|
|
||||||
<div style="padding-bottom: 6px;">
|
|
||||||
Welcome to KoboldAI Lite!<br>Pick a UI Style to get started. You can always change it later in the Settings menu.
|
|
||||||
</div>
|
|
||||||
<div class="welcome-theme-selector">
|
|
||||||
<div class="welcome-theme-option">
|
|
||||||
<label><div class="welcome-theme-image welcomeimg1"></div>
|
|
||||||
<input onchange="select_welcome_ui()" type="radio" title="Classic UI Theme" name="welcometheme" value="0" checked="true"> Classic UI </label>
|
|
||||||
</div>
|
|
||||||
<div class="welcome-theme-option">
|
|
||||||
<label><div class="welcome-theme-image welcomeimg2"></div>
|
|
||||||
<input onchange="select_welcome_ui()" type="radio" title="Aesthetic UI Theme" name="welcometheme" value="2"> Aesthetic UI </label>
|
|
||||||
</div>
|
|
||||||
<div class="welcome-theme-option">
|
|
||||||
<label><div class="welcome-theme-image welcomeimg3"></div>
|
|
||||||
<input onchange="select_welcome_ui()" type="radio" title="Corpo UI Theme" name="welcometheme" value="3"> Corpo UI </label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin-top: 10px;">
|
|
||||||
<p class="color_lightgray" id="welcomeuidesc"></p>
|
|
||||||
<p>Alternatively, you can <a href="#" class="color_blueurl" onclick="close_welcome_panel(false);load_file_button()">Load A Savefile</a> or <a href="#" class="color_blueurl" onclick="close_welcome_panel(false);display_scenarios()">Quick Start Scenario</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="popupfooter">
|
|
||||||
<button type="button" class="btn btn-primary" onclick="close_welcome_panel(true)">Set UI</button>
|
|
||||||
<button type="button" class="btn btn-primary" onclick="close_welcome_panel()">Cancel</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="popupcontainer flex hidden" id="aestheticsettingscontainer">
|
<div class="popupcontainer flex hidden" id="aestheticsettingscontainer">
|
||||||
<div class="popupbg flex"></div>
|
<div class="popupbg flex"></div>
|
||||||
<div class="nspopup evenhigher" style="margin-left: 20px; margin-right: 20px;">
|
<div class="nspopup evenhigher" style="margin-left: 20px; margin-right: 20px;">
|
||||||
|
|
|
@ -712,6 +712,7 @@ def autoset_gpu_layers(ctxsize,sdquanted,bbs): #shitty algo to determine how man
|
||||||
|
|
||||||
def fetch_gpu_properties(testCL,testCU,testVK):
|
def fetch_gpu_properties(testCL,testCU,testVK):
|
||||||
import subprocess
|
import subprocess
|
||||||
|
time.sleep(0.1)
|
||||||
if testCL:
|
if testCL:
|
||||||
try: # Get OpenCL GPU names on windows using a special binary. overwrite at known index if found.
|
try: # Get OpenCL GPU names on windows using a special binary. overwrite at known index if found.
|
||||||
basepath = os.path.abspath(os.path.dirname(__file__))
|
basepath = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue