mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-10 12:11:08 +00:00
update lite
This commit is contained in:
parent
264575426e
commit
5caf5f9770
1 changed files with 64 additions and 46 deletions
110
klite.embd
110
klite.embd
|
|
@ -1949,10 +1949,10 @@ Current version indicated by LITEVER below.
|
|||
max-height: 100%;
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
font-size: 20px;
|
||||
font-size: 18px;
|
||||
font-family: Inter, sans-serif;
|
||||
tab-size: 4;
|
||||
line-height: 35px;
|
||||
line-height: 32px;
|
||||
color: rgb(55, 65, 81);
|
||||
display: flex;
|
||||
}
|
||||
|
|
@ -1960,8 +1960,8 @@ Current version indicated by LITEVER below.
|
|||
@media (max-width: 400px) {
|
||||
.corpostyle
|
||||
{
|
||||
font-size: 17px;
|
||||
line-height: 27px;
|
||||
font-size: 16px;
|
||||
line-height: 26px;
|
||||
}
|
||||
.corpostyleinner
|
||||
{
|
||||
|
|
@ -4114,6 +4114,7 @@ Current version indicated by LITEVER below.
|
|||
idle_duration: 60,
|
||||
export_settings: true, //affects if settings are included with the story and sharelinks
|
||||
show_advanced_load: false, //if true, every load opens the selector window
|
||||
import_tavern_prompt: true, //when opening character cards, prompt for chat or instruct mode
|
||||
invert_colors: false,
|
||||
passed_ai_warning: false, //used to store AI safety panel acknowledgement state
|
||||
entersubmit: true, //enter sends the prompt
|
||||
|
|
@ -6231,7 +6232,7 @@ Current version indicated by LITEVER below.
|
|||
render_gametext(true);
|
||||
}
|
||||
|
||||
if(localsettings.show_advanced_load)
|
||||
if(localsettings.import_tavern_prompt)
|
||||
{
|
||||
msgboxYesNo("Import Character Card in Instruct Mode?\n\nYes = Instruct Mode Used\nNo = Chat Mode Used\n\nIf unsure, select 'No'.","Import Tavern Card", ()=>{
|
||||
load_tav_obj_confirm(false);
|
||||
|
|
@ -9167,6 +9168,7 @@ Current version indicated by LITEVER below.
|
|||
document.getElementById("viewport_width_mode").value = localsettings.viewport_width_mode;
|
||||
document.getElementById("export_settings").checked = localsettings.export_settings;
|
||||
document.getElementById("show_advanced_load").checked = localsettings.show_advanced_load;
|
||||
document.getElementById("import_tavern_prompt").checked = localsettings.import_tavern_prompt;
|
||||
document.getElementById("invert_colors").checked = localsettings.invert_colors;
|
||||
document.getElementById("trimsentences").checked = localsettings.trimsentences;
|
||||
document.getElementById("trimwhitespace").checked = localsettings.trimwhitespace;
|
||||
|
|
@ -9443,6 +9445,7 @@ Current version indicated by LITEVER below.
|
|||
document.getElementById("typ_s").value != found.typical ||
|
||||
document.getElementById("tfs_s").value != found.tfs ||
|
||||
document.getElementById("miro_type").value != 0 ||
|
||||
document.getElementById("dry_multiplier").value != 0 ||
|
||||
document.getElementById("rep_pen").value != found.rep_pen ||
|
||||
document.getElementById("rep_pen_range").value != found.rep_pen_range ||
|
||||
document.getElementById("rep_pen_slope").value != found.rep_pen_slope ||
|
||||
|
|
@ -9526,6 +9529,7 @@ Current version indicated by LITEVER below.
|
|||
localsettings.viewport_width_mode = document.getElementById("viewport_width_mode").value;
|
||||
localsettings.export_settings = (document.getElementById("export_settings").checked ? true : false);
|
||||
localsettings.show_advanced_load = (document.getElementById("show_advanced_load").checked ? true : false);
|
||||
localsettings.import_tavern_prompt = (document.getElementById("import_tavern_prompt").checked ? true : false);
|
||||
localsettings.invert_colors = (document.getElementById("invert_colors").checked ? true : false);
|
||||
localsettings.trimsentences = (document.getElementById("trimsentences").checked ? true : false);
|
||||
localsettings.trimwhitespace = (document.getElementById("trimwhitespace").checked ? true : false);
|
||||
|
|
@ -17070,6 +17074,34 @@ Current version indicated by LITEVER below.
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settingitem wide" id="chatnamessection">
|
||||
<div class="settinglabel" style="padding-top: 3px;">
|
||||
<div style="display:flex;width:100%;">
|
||||
<div class="settinglabel settingcell" style="padding-bottom:0px">
|
||||
<div class="justifyleft settingsmall" style="width:100%">Your Name <span class="helpicon">?<span class="helptext">The name the AI will see you as</span></span></div>
|
||||
</div>
|
||||
<div class="settinglabel settingcell" style="padding-bottom:0px">
|
||||
<div class="justifyleft settingsmall" style="width:100%">AI Name <span class="helpicon">?<span class="helptext">Name of the person(s) you want to chat with. Multiple opponents can be specified, creating a group chat, separate their names using multiple lines.</span></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;width:100%;">
|
||||
<div class="settinglabel settingcell">
|
||||
<div class="justifyleft settingsmall" style="width:100%">
|
||||
<input class="settinglabel miniinput" style="height:18px;" type="text" placeholder="(Enter Name)" value="" id="chatname" title="The name that you will be chatting as">
|
||||
</div>
|
||||
</div>
|
||||
<div class="settinglabel settingcell">
|
||||
<div class="justifyleft settingsmall" style="width:100%">
|
||||
<textarea class="settinglabel miniinput" style="resize: none;overflow:hidden;" id="chatopponent" placeholder="(Auto)" rows="1" wrap="off" title="The name of the person you want to chat with" oninput="handle_bot_name_input()" onchange="handle_bot_name_onchange()"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settinglabel" style="width:100%">
|
||||
<button type="button" class="btn btn-primary" style="padding:2px 4px;margin:2px;margin-left:auto;font-size:11px;" onclick="add_another_participant()">Add Another Participant</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settingitem wide" id="instructtagsection">
|
||||
<div class="settinglabel">
|
||||
<div id="instructsection_basic" class="settinglabel" style="width:100%">
|
||||
|
|
@ -17102,34 +17134,6 @@ Current version indicated by LITEVER below.
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settingitem wide" id="chatnamessection">
|
||||
<div class="settinglabel" style="padding-top: 3px;">
|
||||
<div style="display:flex;width:100%;">
|
||||
<div class="settinglabel settingcell" style="padding-bottom:0px">
|
||||
<div class="justifyleft settingsmall" style="width:100%">Your Name <span class="helpicon">?<span class="helptext">The name the AI will see you as</span></span></div>
|
||||
</div>
|
||||
<div class="settinglabel settingcell" style="padding-bottom:0px">
|
||||
<div class="justifyleft settingsmall" style="width:100%">AI Name <span class="helpicon">?<span class="helptext">Name of the person(s) you want to chat with. Multiple opponents can be specified, creating a group chat, separate their names using multiple lines.</span></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display:flex;width:100%;">
|
||||
<div class="settinglabel settingcell">
|
||||
<div class="justifyleft settingsmall" style="width:100%">
|
||||
<input class="settinglabel miniinput" style="height:18px;" type="text" placeholder="(Enter Name)" value="" id="chatname" title="The name that you will be chatting as">
|
||||
</div>
|
||||
</div>
|
||||
<div class="settinglabel settingcell">
|
||||
<div class="justifyleft settingsmall" style="width:100%">
|
||||
<textarea class="settinglabel miniinput" style="resize: none;overflow:hidden;" id="chatopponent" placeholder="(Auto)" rows="1" wrap="off" title="The name of the person you want to chat with" oninput="handle_bot_name_input()" onchange="handle_bot_name_onchange()"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settinglabel" style="width:100%">
|
||||
<button type="button" class="btn btn-primary" style="padding:2px 4px;margin:2px;margin-left:auto;font-size:11px;" onclick="add_another_participant()">Add Another Participant</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settingitem">
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">Multiline Replies <span class="helpicon">?<span
|
||||
|
|
@ -17554,7 +17558,7 @@ Current version indicated by LITEVER below.
|
|||
<input title="Notify On Done" type="checkbox" id="notify_on" style="margin:0px 0px 0px auto;">
|
||||
</div>
|
||||
|
||||
<div class="settinglabel" style="margin-top: 5px;">
|
||||
<div class="settinglabel" style="margin-top: 8px;">
|
||||
<div class="justifyleft settingsmall">Speech Control <span class="helpicon">?<span class="helptext">Requires KoboldCpp with Whisper model loaded. Enables Speech-To-Text voice input. Automatically listens for speech in 'On' mode (Voice Detection), or use Push-To-Talk (PTT).</span></span></div>
|
||||
<select title="Speech Control Mode" style="padding:1px; height:auto; font-size: 8pt;" class="form-control" id="voice_typing_mode">
|
||||
<option value="0">Off</option>
|
||||
|
|
@ -17572,10 +17576,12 @@ Current version indicated by LITEVER below.
|
|||
<div class="settingitem wide">
|
||||
<div style="font-size:12px;">
|
||||
<div class="settingsdesctxt">Style tags to use for generating images:<br>(E.g. Sketch, Realistic, Anime, 3D Render, Drawing)<br></div>
|
||||
<input class="settinglabel miniinput" type="text" placeholder="Default Style" value="" id="imagestyleinput">
|
||||
<div class="aidgpopuplistheader anotelabel">Negative Prompt<br></div>
|
||||
<input title="Negative Prompt" class="settinglabel miniinput" type="text" placeholder="Default Negative Prompt. Put "none" to skip" value="" id="negpromptinput">
|
||||
<input class="settinglabel miniinput" title="Style Tags" type="text" placeholder="Default Style" value="" id="imagestyleinput">
|
||||
|
||||
<div class="inlinelabel">
|
||||
<div class="justifyleft" style="padding:4px">Negative Prompt: </div>
|
||||
<input title="Negative Prompt" style="width:calc(100% - 110px);" type="text" placeholder="Default Negative Prompt. Put "none" to skip" value="" id="negpromptinput">
|
||||
</div>
|
||||
<div class="inlinelabel">
|
||||
<div class="justifyleft" style="padding:4px">Number of Steps: </div>
|
||||
<input title="Number of Steps" type="text" inputmode="decimal" id="img_steps" style="width:60px">
|
||||
|
|
@ -17672,17 +17678,9 @@ Current version indicated by LITEVER below.
|
|||
class="helptext">If enabled, renders special tags like EOS and padding tokens. Not recommended.</span></span></div>
|
||||
<input title="Render Special Tags" type="checkbox" id="render_special_tags" style="margin:0px 0px 0px auto;">
|
||||
</div>
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">Run In Background <span class="helpicon">?<span
|
||||
class="helptext">Prevents the browser from suspending KoboldAI Lite by playing a silent audio track. This setting cannot be saved.</span></span></div>
|
||||
<input title="Run In Background" type="checkbox" id="run_in_background" style="margin:0px 0px 0px auto;">
|
||||
</div>
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">User Mods <span class="helpicon">?<span class="helptext">Allows you to load third-party user created mods (caution).</span></span></div>
|
||||
<button id="loadusermod" type="button" class="btn btn-primary" style="padding:2px 3px;margin-top:2px;font-size:11px;margin:0px 0px 0px auto;" onclick="apply_user_mod()">Apply User Mod</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="settingitem">
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">Autosave Session <span class="helpicon">?<span
|
||||
|
|
@ -17704,6 +17702,26 @@ Current version indicated by LITEVER below.
|
|||
class="helptext">If enabled, allows you to select additional configurations during file load</span></span></div>
|
||||
<input title="Show Advanced Load" type="checkbox" id="show_advanced_load" style="margin:0px 0px 0px auto;">
|
||||
</div>
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">Card Import Prompt <span class="helpicon">?<span
|
||||
class="helptext">If enabled, prompts the user to choose what mode to import a character card in. If disabled, automatically picks chat mode.</span></span></div>
|
||||
<input title="Character Card Import Prompt" type="checkbox" id="import_tavern_prompt" style="margin:0px 0px 0px auto;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settingitem" style="margin-top: 4px;">
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">Run In Background <span class="helpicon">?<span
|
||||
class="helptext">Prevents the browser from suspending KoboldAI Lite by playing a silent audio track. This setting cannot be saved.</span></span></div>
|
||||
<input title="Run In Background" type="checkbox" id="run_in_background" style="margin:0px 0px 0px auto;">
|
||||
</div>
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">User Mods <span class="helpicon">?<span class="helptext">Allows you to load third-party user created mods (caution).</span></span></div>
|
||||
<button id="loadusermod" type="button" class="btn btn-primary" style="padding:2px 3px;margin-top:2px;font-size:11px;margin:0px 0px 0px auto;" onclick="apply_user_mod()">Apply User Mod</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settingitem" style="margin-top: 4px;">
|
||||
<div class="settinglabel">
|
||||
<div class="justifyleft settingsmall">Autoscroll Text <span class="helpicon">?<span
|
||||
class="helptext">Automatically scrolls the text window down when new text is generated</span></span></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue