mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-12 14:11:27 +00:00
updated lite, added personal notes
This commit is contained in:
parent
fda905a36a
commit
4c0beef598
1 changed files with 15 additions and 0 deletions
15
klite.embd
15
klite.embd
|
|
@ -3462,6 +3462,7 @@ Current version: 118
|
|||
var globalabortcontroller = null;
|
||||
var passed_ai_warning_local = false;
|
||||
var welcome = "";
|
||||
var personal_notes = "";
|
||||
var logitbiasdict = {};
|
||||
|
||||
var localsettings = {
|
||||
|
|
@ -4832,6 +4833,7 @@ Current version: 118
|
|||
new_save_storyobj.anotestr = anote_strength;
|
||||
new_save_storyobj.wisearchdepth = wi_searchdepth;
|
||||
new_save_storyobj.wiinsertlocation = wi_insertlocation;
|
||||
new_save_storyobj.personal_notes = personal_notes;
|
||||
new_save_storyobj.logitbiasdict = JSON.parse(JSON.stringify(logitbiasdict));
|
||||
|
||||
if (export_settings) {
|
||||
|
|
@ -5067,6 +5069,9 @@ Current version: 118
|
|||
if (storyobj.welcome) {
|
||||
welcome = storyobj.welcome;
|
||||
}
|
||||
if (storyobj.personal_notes) {
|
||||
personal_notes = storyobj.personal_notes;
|
||||
}
|
||||
} else {
|
||||
//v2 load
|
||||
if(storyobj.prompt!="")
|
||||
|
|
@ -8414,6 +8419,14 @@ Current version: 118
|
|||
render_gametext();
|
||||
}
|
||||
|
||||
function set_personal_notes()
|
||||
{
|
||||
inputBox("Here you can add some personal notes or comments to be saved.\nYou can write anything you want.\nNotes are saved to file, but not added to the context.\n","Set Personal Notes",personal_notes,"Enter Personal Notes",()=>{
|
||||
let userinput = getInputBoxValue().trim();
|
||||
personal_notes = userinput;
|
||||
},false,true);
|
||||
}
|
||||
|
||||
let temp_automem_store = "";
|
||||
function autogenerate_summary_memory()
|
||||
{
|
||||
|
|
@ -8583,6 +8596,7 @@ Current version: 118
|
|||
last_token_budget = "";
|
||||
groupchat_removals = [];
|
||||
welcome = "";
|
||||
personal_notes = "";
|
||||
last_known_filename = "saved_story.json";
|
||||
is_impersonate_user = false;
|
||||
if (!keep_memory)
|
||||
|
|
@ -14139,6 +14153,7 @@ Current version: 118
|
|||
<div class="justifyleft"><br>Author's Note<span class="helpicon">?<span
|
||||
class="helptext">Similar to Memory, but inserted near the end of the text instead of the start. A good way to control the mood/behavior of the AI.</span></span></div>
|
||||
<span class="justifyright flex-push-right" >
|
||||
<button type="button" class="btn btn-primary" style="padding:4px 6px;margin-top:4px;" id="btnnotes" onclick="set_personal_notes()">Notes</button>
|
||||
<button type="button" class="btn btn-primary" style="padding:4px 6px;margin-top:4px;" id="btnautogenmem" onclick="autogenerate_summary_memory()">AutoGenerate Memory</button>
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue