Skip to content

Commit 5caf5f9

Browse files
committed
update lite
1 parent 2645754 commit 5caf5f9

File tree

1 file changed

+64
-46
lines changed

1 file changed

+64
-46
lines changed

klite.embd

Lines changed: 64 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,19 +1949,19 @@ Current version indicated by LITEVER below.
19491949
max-height: 100%;
19501950
width: 100%;
19511951
word-wrap: break-word;
1952-
font-size: 20px;
1952+
font-size: 18px;
19531953
font-family: Inter, sans-serif;
19541954
tab-size: 4;
1955-
line-height: 35px;
1955+
line-height: 32px;
19561956
color: rgb(55, 65, 81);
19571957
display: flex;
19581958
}
19591959

19601960
@media (max-width: 400px) {
19611961
.corpostyle
19621962
{
1963-
font-size: 17px;
1964-
line-height: 27px;
1963+
font-size: 16px;
1964+
line-height: 26px;
19651965
}
19661966
.corpostyleinner
19671967
{
@@ -4114,6 +4114,7 @@ Current version indicated by LITEVER below.
41144114
idle_duration: 60,
41154115
export_settings: true, //affects if settings are included with the story and sharelinks
41164116
show_advanced_load: false, //if true, every load opens the selector window
4117+
import_tavern_prompt: true, //when opening character cards, prompt for chat or instruct mode
41174118
invert_colors: false,
41184119
passed_ai_warning: false, //used to store AI safety panel acknowledgement state
41194120
entersubmit: true, //enter sends the prompt
@@ -6231,7 +6232,7 @@ Current version indicated by LITEVER below.
62316232
render_gametext(true);
62326233
}
62336234

6234-
if(localsettings.show_advanced_load)
6235+
if(localsettings.import_tavern_prompt)
62356236
{
62366237
msgboxYesNo("Import Character Card in Instruct Mode?\n\nYes = Instruct Mode Used\nNo = Chat Mode Used\n\nIf unsure, select 'No'.","Import Tavern Card", ()=>{
62376238
load_tav_obj_confirm(false);
@@ -9167,6 +9168,7 @@ Current version indicated by LITEVER below.
91679168
document.getElementById("viewport_width_mode").value = localsettings.viewport_width_mode;
91689169
document.getElementById("export_settings").checked = localsettings.export_settings;
91699170
document.getElementById("show_advanced_load").checked = localsettings.show_advanced_load;
9171+
document.getElementById("import_tavern_prompt").checked = localsettings.import_tavern_prompt;
91709172
document.getElementById("invert_colors").checked = localsettings.invert_colors;
91719173
document.getElementById("trimsentences").checked = localsettings.trimsentences;
91729174
document.getElementById("trimwhitespace").checked = localsettings.trimwhitespace;
@@ -9443,6 +9445,7 @@ Current version indicated by LITEVER below.
94439445
document.getElementById("typ_s").value != found.typical ||
94449446
document.getElementById("tfs_s").value != found.tfs ||
94459447
document.getElementById("miro_type").value != 0 ||
9448+
document.getElementById("dry_multiplier").value != 0 ||
94469449
document.getElementById("rep_pen").value != found.rep_pen ||
94479450
document.getElementById("rep_pen_range").value != found.rep_pen_range ||
94489451
document.getElementById("rep_pen_slope").value != found.rep_pen_slope ||
@@ -9526,6 +9529,7 @@ Current version indicated by LITEVER below.
95269529
localsettings.viewport_width_mode = document.getElementById("viewport_width_mode").value;
95279530
localsettings.export_settings = (document.getElementById("export_settings").checked ? true : false);
95289531
localsettings.show_advanced_load = (document.getElementById("show_advanced_load").checked ? true : false);
9532+
localsettings.import_tavern_prompt = (document.getElementById("import_tavern_prompt").checked ? true : false);
95299533
localsettings.invert_colors = (document.getElementById("invert_colors").checked ? true : false);
95309534
localsettings.trimsentences = (document.getElementById("trimsentences").checked ? true : false);
95319535
localsettings.trimwhitespace = (document.getElementById("trimwhitespace").checked ? true : false);
@@ -17070,6 +17074,34 @@ Current version indicated by LITEVER below.
1707017074
</div>
1707117075
</div>
1707217076

17077+
<div class="settingitem wide" id="chatnamessection">
17078+
<div class="settinglabel" style="padding-top: 3px;">
17079+
<div style="display:flex;width:100%;">
17080+
<div class="settinglabel settingcell" style="padding-bottom:0px">
17081+
<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>
17082+
</div>
17083+
<div class="settinglabel settingcell" style="padding-bottom:0px">
17084+
<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>
17085+
</div>
17086+
</div>
17087+
<div style="display:flex;width:100%;">
17088+
<div class="settinglabel settingcell">
17089+
<div class="justifyleft settingsmall" style="width:100%">
17090+
<input class="settinglabel miniinput" style="height:18px;" type="text" placeholder="(Enter Name)" value="" id="chatname" title="The name that you will be chatting as">
17091+
</div>
17092+
</div>
17093+
<div class="settinglabel settingcell">
17094+
<div class="justifyleft settingsmall" style="width:100%">
17095+
<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>
17096+
</div>
17097+
</div>
17098+
</div>
17099+
</div>
17100+
<div class="settinglabel" style="width:100%">
17101+
<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>
17102+
</div>
17103+
</div>
17104+
1707317105
<div class="settingitem wide" id="instructtagsection">
1707417106
<div class="settinglabel">
1707517107
<div id="instructsection_basic" class="settinglabel" style="width:100%">
@@ -17102,34 +17134,6 @@ Current version indicated by LITEVER below.
1710217134
</div>
1710317135
</div>
1710417136

17105-
<div class="settingitem wide" id="chatnamessection">
17106-
<div class="settinglabel" style="padding-top: 3px;">
17107-
<div style="display:flex;width:100%;">
17108-
<div class="settinglabel settingcell" style="padding-bottom:0px">
17109-
<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>
17110-
</div>
17111-
<div class="settinglabel settingcell" style="padding-bottom:0px">
17112-
<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>
17113-
</div>
17114-
</div>
17115-
<div style="display:flex;width:100%;">
17116-
<div class="settinglabel settingcell">
17117-
<div class="justifyleft settingsmall" style="width:100%">
17118-
<input class="settinglabel miniinput" style="height:18px;" type="text" placeholder="(Enter Name)" value="" id="chatname" title="The name that you will be chatting as">
17119-
</div>
17120-
</div>
17121-
<div class="settinglabel settingcell">
17122-
<div class="justifyleft settingsmall" style="width:100%">
17123-
<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>
17124-
</div>
17125-
</div>
17126-
</div>
17127-
</div>
17128-
<div class="settinglabel" style="width:100%">
17129-
<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>
17130-
</div>
17131-
</div>
17132-
1713317137
<div class="settingitem">
1713417138
<div class="settinglabel">
1713517139
<div class="justifyleft settingsmall">Multiline Replies <span class="helpicon">?<span
@@ -17554,7 +17558,7 @@ Current version indicated by LITEVER below.
1755417558
<input title="Notify On Done" type="checkbox" id="notify_on" style="margin:0px 0px 0px auto;">
1755517559
</div>
1755617560

17557-
<div class="settinglabel" style="margin-top: 5px;">
17561+
<div class="settinglabel" style="margin-top: 8px;">
1755817562
<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>
1755917563
<select title="Speech Control Mode" style="padding:1px; height:auto; font-size: 8pt;" class="form-control" id="voice_typing_mode">
1756017564
<option value="0">Off</option>
@@ -17572,10 +17576,12 @@ Current version indicated by LITEVER below.
1757217576
<div class="settingitem wide">
1757317577
<div style="font-size:12px;">
1757417578
<div class="settingsdesctxt">Style tags to use for generating images:<br>(E.g. Sketch, Realistic, Anime, 3D Render, Drawing)<br></div>
17575-
<input class="settinglabel miniinput" type="text" placeholder="Default Style" value="" id="imagestyleinput">
17576-
<div class="aidgpopuplistheader anotelabel">Negative Prompt<br></div>
17577-
<input title="Negative Prompt" class="settinglabel miniinput" type="text" placeholder="Default Negative Prompt. Put &quot;none&quot; to skip" value="" id="negpromptinput">
17579+
<input class="settinglabel miniinput" title="Style Tags" type="text" placeholder="Default Style" value="" id="imagestyleinput">
1757817580

17581+
<div class="inlinelabel">
17582+
<div class="justifyleft" style="padding:4px">Negative Prompt: </div>
17583+
<input title="Negative Prompt" style="width:calc(100% - 110px);" type="text" placeholder="Default Negative Prompt. Put &quot;none&quot; to skip" value="" id="negpromptinput">
17584+
</div>
1757917585
<div class="inlinelabel">
1758017586
<div class="justifyleft" style="padding:4px">Number of Steps: </div>
1758117587
<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.
1767217678
class="helptext">If enabled, renders special tags like EOS and padding tokens. Not recommended.</span></span></div>
1767317679
<input title="Render Special Tags" type="checkbox" id="render_special_tags" style="margin:0px 0px 0px auto;">
1767417680
</div>
17675-
<div class="settinglabel">
17676-
<div class="justifyleft settingsmall">Run In Background <span class="helpicon">?<span
17677-
class="helptext">Prevents the browser from suspending KoboldAI Lite by playing a silent audio track. This setting cannot be saved.</span></span></div>
17678-
<input title="Run In Background" type="checkbox" id="run_in_background" style="margin:0px 0px 0px auto;">
17679-
</div>
17680-
<div class="settinglabel">
17681-
<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>
17682-
<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>
17683-
</div>
1768417681
</div>
1768517682

17683+
1768617684
<div class="settingitem">
1768717685
<div class="settinglabel">
1768817686
<div class="justifyleft settingsmall">Autosave Session <span class="helpicon">?<span
@@ -17704,6 +17702,26 @@ Current version indicated by LITEVER below.
1770417702
class="helptext">If enabled, allows you to select additional configurations during file load</span></span></div>
1770517703
<input title="Show Advanced Load" type="checkbox" id="show_advanced_load" style="margin:0px 0px 0px auto;">
1770617704
</div>
17705+
<div class="settinglabel">
17706+
<div class="justifyleft settingsmall">Card Import Prompt <span class="helpicon">?<span
17707+
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>
17708+
<input title="Character Card Import Prompt" type="checkbox" id="import_tavern_prompt" style="margin:0px 0px 0px auto;">
17709+
</div>
17710+
</div>
17711+
17712+
<div class="settingitem" style="margin-top: 4px;">
17713+
<div class="settinglabel">
17714+
<div class="justifyleft settingsmall">Run In Background <span class="helpicon">?<span
17715+
class="helptext">Prevents the browser from suspending KoboldAI Lite by playing a silent audio track. This setting cannot be saved.</span></span></div>
17716+
<input title="Run In Background" type="checkbox" id="run_in_background" style="margin:0px 0px 0px auto;">
17717+
</div>
17718+
<div class="settinglabel">
17719+
<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>
17720+
<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>
17721+
</div>
17722+
</div>
17723+
17724+
<div class="settingitem" style="margin-top: 4px;">
1770717725
<div class="settinglabel">
1770817726
<div class="justifyleft settingsmall">Autoscroll Text <span class="helpicon">?<span
1770917727
class="helptext">Automatically scrolls the text window down when new text is generated</span></span></div>

0 commit comments

Comments
 (0)