From 9cf2119cb839dc375df05960ea4d19b372cf975a Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 7 Feb 2026 15:35:15 +0800 Subject: [PATCH] update lite --- embd_res/klite.embd | 58 +++++++++++++++++++++++++++++++++------------ 1 file changed, 43 insertions(+), 15 deletions(-) diff --git a/embd_res/klite.embd b/embd_res/klite.embd index 5181ab453..2e0562516 100644 --- a/embd_res/klite.embd +++ b/embd_res/klite.embd @@ -12860,6 +12860,25 @@ Current version indicated by LITEVER below. return (epchoice==7 || epchoice==10 || epchoice==11); } + function find_oai_model() + { + inputBox("Find model by name (case insensitive)\nBest match will be selected.","Find model by name","","", ()=>{ + let coai = getInputBoxValue().trim(); + let dropdown = get_custom_ep_model_dropdown(); + var mdlopt = dropdown.querySelector('option.custom_model_option'); + if(coai!="") + { + coai = coai.toLowerCase(); + for (var i = 0; i < dropdown.options.length; i++) { + if (dropdown.options[i].text.toLowerCase().indexOf(coai) !== -1) { + dropdown.selectedIndex = i; + break; + } + } + } + oai_model_change(ep_should_always_use_chat_completions()); + },false); + } function select_custom_oai_model() { inputBox("Enter custom model name","Custom Model Name",localsettings.saved_oai_custommodel,"", ()=>{ @@ -13138,9 +13157,6 @@ Current version indicated by LITEVER below. function toggleclaudemodel() { - document.getElementById("claudesystemprompt").classList.remove("hidden"); - document.getElementById("claudejailbreakprompt").classList.remove("hidden"); - if(document.getElementById("custom_claude_model").value.toLowerCase().includes("claude-3-7")|| document.getElementById("custom_claude_model").value.toLowerCase().includes("claude-sonnet-4")|| document.getElementById("custom_claude_model").value.toLowerCase().includes("claude-haiku-4")|| @@ -20667,6 +20683,7 @@ Current version indicated by LITEVER below. let sysprompt = document.getElementById("claudesystemprompt").value; let assistantprompt = document.getElementById("claudejailbreakprompt").value; + let assistantpromptrole = document.getElementById("claudejailbreakpromptrole").value; let claudethinking = (document.getElementById("claudethinking").checked?true:false); claude_payload = @@ -20730,7 +20747,8 @@ Current version indicated by LITEVER below. } if(assistantprompt) { - claude_payload.messages.push({"role": "assistant", "content": assistantprompt}); + let usedrole = (assistantpromptrole==2)?"system":(assistantpromptrole==1?"assistant":"user"); + claude_payload.messages.push({"role": usedrole, "content": assistantprompt}); } @@ -30582,7 +30600,7 @@ Current version indicated by LITEVER below. Model Choice: - + gpt-3.5-turbo-instruct davinci-002 gpt-3.5-turbo @@ -30609,7 +30627,7 @@ Current version indicated by LITEVER below. o4-mini [Custom] - + openai/gpt-3.5-turbo openai/gpt-4 openai/gpt-4o @@ -30620,7 +30638,7 @@ Current version indicated by LITEVER below. gryphe/mythomax-l2-13b [Custom] - + open-mistral-7b open-mistral-nemo open-mixtral-8x22b @@ -30636,7 +30654,7 @@ Current version indicated by LITEVER below. codestral-latest [Custom] - + Sao10K/L3-8B-Lunaris-v1 Sao10K/L3-8B-Stheno-v3.2 unsloth/llama-3-8b-Instruct @@ -30650,7 +30668,7 @@ Current version indicated by LITEVER below. meta-llama/Meta-Llama-3.1-405B-Instruct [Custom] - + grok-2-1212 grok-3 grok-3-mini @@ -30658,7 +30676,7 @@ Current version indicated by LITEVER below. grok-4-0709 [Custom] - + bidara chickytutor gemini @@ -30668,7 +30686,7 @@ Current version indicated by LITEVER below. openai-fast [Custom] - + deepseek-ai/deepseek-v3.1-terminus google/gemma-3-27b-it meta/llama-3.3-70b-instruct @@ -30679,8 +30697,9 @@ Current version indicated by LITEVER below. z-ai/glm4.7 [Custom] - Fetch List - Use Custom + 🔎 + Fetch + Custom Emulate Completions API with Prefill @@ -30763,8 +30782,17 @@ Current version indicated by LITEVER below. Add Endpoint Version - - + + + + + User + Assistant + System + + + + Enable Thinking