mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
update lite
This commit is contained in:
+11
-2
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
|
||||
-->
|
||||
|
||||
<script>
|
||||
const LITEVER = 227;
|
||||
const LITEVER = 228;
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
var localflag = true;
|
||||
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
|
||||
@@ -763,7 +763,7 @@ Current version indicated by LITEVER below.
|
||||
margin-top: 120px;
|
||||
}
|
||||
.nspopup.evenhigher {
|
||||
margin-top: 80px;
|
||||
margin-top: 70px;
|
||||
}
|
||||
.nspopup.highest {
|
||||
margin-top: 40px;
|
||||
@@ -3148,6 +3148,7 @@ Current version indicated by LITEVER below.
|
||||
saved_claude_jailbreak2: "", //claude assistant postfix
|
||||
saved_cohere_preamble: "", //cohere preamble
|
||||
saved_palm_jailbreak:"", //gemini system prompt
|
||||
saved_palm_jailbreak2:"", //gemini postfix
|
||||
saved_oai_custommodel: "", //customized oai custom model
|
||||
saved_oai_role: 0, //0=user,1=assistant,2=system, 3=auto
|
||||
saved_a1111_url: default_a1111_base,
|
||||
@@ -8975,6 +8976,12 @@ Current version indicated by LITEVER below.
|
||||
} else {
|
||||
document.getElementById("gemini_system_instruction").value = localsettings.saved_palm_jailbreak;
|
||||
}
|
||||
if(localsettings.saved_palm_jailbreak2=="")
|
||||
{
|
||||
document.getElementById("gemini_postfix_text").value = "";
|
||||
} else {
|
||||
document.getElementById("gemini_postfix_text").value = localsettings.saved_palm_jailbreak2;
|
||||
}
|
||||
togglegeminirole();
|
||||
}else{
|
||||
document.getElementById("gemini_system_instruction").classList.add("hidden");
|
||||
@@ -9420,6 +9427,7 @@ Current version indicated by LITEVER below.
|
||||
document.getElementById("geminicustom").classList.remove("hidden");
|
||||
document.getElementById("custom_gemini_key").value = localsettings.saved_palm_key;
|
||||
document.getElementById("gemini_system_instruction").value = localsettings.saved_palm_jailbreak;
|
||||
document.getElementById("gemini_postfix_text").value = localsettings.saved_palm_jailbreak2;
|
||||
togglegeminimodel();
|
||||
}
|
||||
else if(epchoice==6)
|
||||
@@ -9985,6 +9993,7 @@ Current version indicated by LITEVER below.
|
||||
custom_gemini_key = desired_gemini_key;
|
||||
localsettings.saved_palm_key = custom_gemini_key;
|
||||
localsettings.saved_palm_jailbreak = document.getElementById("gemini_system_instruction").value;
|
||||
localsettings.saved_palm_jailbreak2 = document.getElementById("gemini_postfix_text").value;
|
||||
|
||||
selected_models = [{ "performance": 100.0, "queued": 0.0, "eta": 0, "name": mdlname, "count": 1 }];
|
||||
selected_workers = [];
|
||||
|
||||
Reference in New Issue
Block a user