updated lite

This commit is contained in:
Concedo
2025-05-09 18:11:27 +08:00
parent c4a0b323f0
commit 46849e80fb
+10 -2
View File
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
-->
<script>
const LITEVER = 239;
const LITEVER = 240;
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_";
@@ -6312,6 +6312,10 @@ Current version indicated by LITEVER below.
{
dalle_payload["response_format"] = "b64_json";
}
else
{
dalle_payload["quality"] = "medium";
}
//remove all null fields
dalle_payload = Object.fromEntries(Object.entries(dalle_payload).filter(([_, v]) => v != null));
@@ -14440,6 +14444,10 @@ Current version indicated by LITEVER below.
coarr = coarr.map(x=>x.trim());
let co = coarr[Math.floor(Math.random()*coarr.length)];
pending_context_preinjection += co + ":";
if(localsettings.inject_jailbreak_instruct || (localsettings.think_injected!=0 && localsettings.start_thinking_tag!=""))
{
pending_context_preinjection += " ";
}
}
if(localsettings.think_injected==1 && localsettings.start_thinking_tag!="")
{
@@ -16571,7 +16579,7 @@ Current version indicated by LITEVER below.
let gentxtspeak = gentxt;
if (pending_context_preinjection != "") {
if(gentxt!="" && gentxt[0]!=" " && (localsettings.opmode==3 || (localsettings.opmode==4 && localsettings.inject_chatnames_instruct)))
if(gentxt!="" && gentxt[0]!=" " && (localsettings.opmode==3 || (localsettings.opmode==4 && localsettings.inject_chatnames_instruct && !localsettings.inject_jailbreak_instruct && localsettings.think_injected==0)))
{
//if the response doesnt come with a space, add one in chat
gentxt = " " +gentxt;