Skip to content

Commit 16156f0

Browse files
committed
updated lite
1 parent 6494dce commit 16156f0

File tree

1 file changed

+13
-33
lines changed

1 file changed

+13
-33
lines changed

klite.embd

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
1212
-->
1313

1414
<script>
15-
const LITEVER = 232;
15+
const LITEVER = 233;
1616
const urlParams = new URLSearchParams(window.location.search);
1717
var localflag = urlParams.get('local'); //this will be replaced automatically in embedded kcpp
1818
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
@@ -7533,7 +7533,7 @@ Current version indicated by LITEVER below.
75337533
if(usingtemplate)
75347534
{
75357535
let introduction = "[Overview: <give the AI a one sentence overview of what your intention is here>]";
7536-
let character = "\n\n[" + chatopponent + "'s Character definition:\nAge:\nHeight:\nWeight:\nBuild:\nHair:\nEyes:\nEyebrows:\nClothing Preferences:\nPersonality:\nMind:\nSpeech:\nAccent:\nMannerisms:\nLikes:\nDislikes:\nHobbies:\nShort-term Goals:\nLong-term Goals:\n" + chatopponent + "’s primary goal is:\nChildhood memories of " + chatopponent + ":\nLong-term memories of " + chatopponent + ": <also add descriptions of friends and similar persons from the life of " + chatopponent + " here>\nShort-term Memories relevant for the scenario: ]";
7536+
let character = "\n\n[" + chatopponent + "'s Character definition:\nGender: <female, male, unknown>\nSpecies: <human, elf, alien>\nAge:\nHeight:\nWeight:\nBuild:\nHair:\nEyes:\nEyebrows:\nClothing Preferences:\nPersonality:\nMind:\nSpeech:\nAccent:\nMannerisms:\nLikes:\nDislikes:\nHobbies:\nShort-term Goals:\nLong-term Goals:\n" + chatopponent + "’s primary goal is:\nChildhood memories of " + chatopponent + ":\nLong-term memories of " + chatopponent + ": <also add descriptions of friends and similar persons from the life of " + chatopponent + " here>\nShort-term Memories relevant for the scenario: ]";
75377537
let genre = "\n\n[Genre: <add one or more genre definitions for your scenario here>]";
75387538
let tags = "\n\n[Tags: <add one or more tags describing your role-play for the AI here>]";
75397539
let scenario = "\n\n[Scenario: <add your scenario here>]";
@@ -7550,7 +7550,10 @@ Current version indicated by LITEVER below.
75507550
greeting = replace_placeholders(greeting, false, true);
75517551
combinedmem = replace_placeholders(combinedmem, false, true);
75527552
}
7553-
gametext_arr.push(greeting);
7553+
if(greeting)
7554+
{
7555+
gametext_arr.push(greeting);
7556+
}
75547557
if (combinedmem != "") {
75557558
current_memory = combinedmem;
75567559
}
@@ -19045,13 +19048,9 @@ Current version indicated by LITEVER below.
1904519048
memory_tab = newtab;
1904619049
document.getElementById("memory_tab").classList.remove("active");
1904719050
document.getElementById("wi_tab").classList.remove("active");
19048-
document.getElementById("websearch_tab").classList.remove("active");
19049-
document.getElementById("token_tab").classList.remove("active");
1905019051
document.getElementById("documentdb_tab").classList.remove("active");
1905119052
document.getElementById("memory_tab_container").classList.add("hidden");
1905219053
document.getElementById("wi_tab_container").classList.add("hidden");
19053-
document.getElementById("websearch_tab_container").classList.add("hidden");
19054-
document.getElementById("token_tab_container").classList.add("hidden");
1905519054
document.getElementById("documentdb_tab_container").classList.add("hidden");
1905619055

1905719056
switch (newtab) {
@@ -19067,14 +19066,6 @@ Current version indicated by LITEVER below.
1906719066
document.getElementById("documentdb_tab").classList.add("active");
1906819067
document.getElementById("documentdb_tab_container").classList.remove("hidden");
1906919068
break;
19070-
case 3:
19071-
document.getElementById("websearch_tab").classList.add("active");
19072-
document.getElementById("websearch_tab_container").classList.remove("hidden");
19073-
break;
19074-
case 4:
19075-
document.getElementById("token_tab").classList.add("active");
19076-
document.getElementById("token_tab_container").classList.remove("hidden");
19077-
break;
1907819069
default:
1907919070
break;
1908019071
}
@@ -20937,8 +20928,6 @@ Current version indicated by LITEVER below.
2093720928
<li id="memory_tab" class="active"><a class="" href="#" onclick="display_memory_tab(0)">Memory</a></li>
2093820929
<li id="wi_tab"><a class="" href="#" onclick="display_memory_tab(1)">World Info</a></li>
2093920930
<li id="documentdb_tab"><a class="" href="#" onclick="display_memory_tab(2)">TextDB</a></li>
20940-
<li id="websearch_tab"><a class="" href="#" onclick="display_memory_tab(3)">WebSearch</a></li>
20941-
<li id="token_tab"><a class="" href="#" onclick="display_memory_tab(4)">Tokens</a></li>
2094220931
</ul></div>
2094320932

2094420933
<div class="context_tab_container" id="memory_tab_container">
@@ -21077,15 +21066,6 @@ Current version indicated by LITEVER below.
2107721066
<textarea title="Edit TextDB" class="form-control menuinput_multiline" id="documentdb_data" style="height: 120px;"
2107821067
placeholder="Paste as much text data here as you like. This text will populate the database that will be searched by TextDB."></textarea>
2107921068
</div>
21080-
21081-
<div class="context_tab_container" id="websearch_tab_container">
21082-
<div class="settinglabel" style="padding: 4px;">WebSearch Moved to Settings Panel (Media Tab). This section will be removed in future.</div>
21083-
</div>
21084-
21085-
<div class="context_tab_container" id="token_tab_container">
21086-
<div class="settinglabel" style="padding: 4px;">Token Configs Moved to Settings Panel (tokens Tab). This section will be removed in future.</div>
21087-
</div>
21088-
2108921069
<div id="memorycontainerfooter" class="popupfooter">
2109021070
<button type="button" class="btn btn-primary" onclick="confirm_memory();save_wi();commit_wi_changes();render_gametext();sync_multiplayer(true);hide_popups()">OK</button>
2109121071
<button type="button" class="btn btn-primary" onclick="hide_popups();">Cancel</button>
@@ -22356,7 +22336,7 @@ Current version indicated by LITEVER below.
2235622336

2235722337
<div class="popupcontainer flex hidden" id="charactercreator">
2235822338
<div class="popupbg flex"></div>
22359-
<div class="nspopup flexsize higher">
22339+
<div class="nspopup flexsize evenhigher">
2236022340
<div class="popuptitlebar">
2236122341
<div class="popuptitletext">Roleplay Character Creator</div>
2236222342
</div>
@@ -22377,18 +22357,18 @@ Current version indicated by LITEVER below.
2237722357
<input type="checkbox" title="Use Character Template" id="usecharactertemplate" onchange="character_creator_template_toggle()" style="margin:0px 0px 0px auto;"></div>
2237822358
</div>
2237922359
<div id="nocharactertemplate">
22380-
<div class="inlinelabel">
22360+
<div class="inlinelabel" style="padding-bottom: 4px;">
2238122361
<div class="justifyleft" style="padding:4px">Character Persona: </div>
22382-
<input title="Character Persona" style="width:calc(100% - 136px);" type="text" placeholder="Describe this character (e.g. 25yo Male Elf, Brave, Chatty)" value="" id="charcreator_persona">
22362+
<textarea class="form-control menuinput_multiline" title="Character Persona" type="text" placeholder="Describe this character (e.g. 25yo Male Elf, Brave, Chatty)" id="charcreator_persona"></textarea>
2238322363
</div>
22384-
<div class="inlinelabel">
22364+
<div class="inlinelabel" style="padding-bottom: 4px;">
2238522365
<div class="justifyleft" style="padding:4px">Describe Scenario: </div>
22386-
<input title="Describe Scenario" style="width:calc(100% - 136px);" type="text" placeholder="Describe the scenario (e.g. A fireside chat at the spooky campsite)" value="" id="charcreator_scenario">
22366+
<textarea class="form-control menuinput_multiline" title="Describe Scenario" type="text" placeholder="Describe the scenario (e.g. A fireside chat at the spooky campsite)" id="charcreator_scenario"></textarea>
2238722367
</div>
2238822368
</div>
22389-
<div class="inlinelabel">
22369+
<div class="inlinelabel" style="padding-bottom: 4px;">
2239022370
<div class="justifyleft" style="padding:4px">Character Greeting: </div>
22391-
<input title="Character Greeting" style="width:calc(100% - 136px);" type="text" placeholder="First message greeting (e.g. Hello, traveller!)" value="" id="charcreator_greeting">
22371+
<textarea class="form-control menuinput_multiline" title="Character Greeting" type="text" placeholder="First message greeting (e.g. Hello, traveller!)" id="charcreator_greeting"></textarea>
2239222372
</div>
2239322373
After creating your character, you can edit it further at any time in the 'Context' memory window.
2239422374
</div>

0 commit comments

Comments
 (0)