diff --git a/index.html b/index.html index 98c8187..73e7b42 100644 --- a/index.html +++ b/index.html @@ -4065,10 +4065,8 @@ gui_type_chat: 1, //0=standard, 1=messenger, 2=aesthetic, 3=corpo gui_type_instruct: 0, //0=standard, 1=messenger, 2=aesthetic, 3=corpo multiline_replies: true, - multiline_replies_adventure: true, allow_continue_chat: false, - inject_timestamps_chat: false, - inject_timestamps_instruct: false, + inject_timestamps: false, inject_chatnames_instruct: false, inject_jailbreak_instruct: false, idle_responses: 0, @@ -9165,10 +9163,8 @@ toggle_generate_images_mode(true); } document.getElementById("multiline_replies").checked = localsettings.multiline_replies; - document.getElementById("multiline_replies_adventure").checked = localsettings.multiline_replies_adventure; document.getElementById("allow_continue_chat").checked = localsettings.allow_continue_chat; - document.getElementById("inject_timestamps_chat").checked = localsettings.inject_timestamps_chat; - document.getElementById("inject_timestamps_instruct").checked = localsettings.inject_timestamps_instruct; + document.getElementById("inject_timestamps").checked = localsettings.inject_timestamps; document.getElementById("inject_chatnames_instruct").checked = localsettings.inject_chatnames_instruct; document.getElementById("inject_jailbreak_instruct").checked = localsettings.inject_jailbreak_instruct; document.getElementById("idle_responses").value = localsettings.idle_responses; @@ -9473,10 +9469,8 @@ localsettings.gui_type_instruct = document.getElementById("gui_type").value; } localsettings.multiline_replies = (document.getElementById("multiline_replies").checked ? true : false); - localsettings.multiline_replies_adventure = (document.getElementById("multiline_replies_adventure").checked ? true : false); localsettings.allow_continue_chat = (document.getElementById("allow_continue_chat").checked ? true : false); - localsettings.inject_timestamps_chat = (document.getElementById("inject_timestamps_chat").checked ? true : false); - localsettings.inject_timestamps_instruct = (document.getElementById("inject_timestamps_instruct").checked ? true : false); + localsettings.inject_timestamps = (document.getElementById("inject_timestamps").checked ? true : false); localsettings.inject_chatnames_instruct = (document.getElementById("inject_chatnames_instruct").checked ? true : false); localsettings.inject_jailbreak_instruct = (document.getElementById("inject_jailbreak_instruct").checked ? true : false); localsettings.idle_responses = document.getElementById("idle_responses").value; @@ -10889,7 +10883,7 @@ { newgen = localsettings.chatname + ": " + newgen; } - if(localsettings.inject_timestamps_instruct) + if(localsettings.inject_timestamps) { newgen = "["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"] " + newgen; } @@ -10920,7 +10914,7 @@ if (localsettings.opmode == 3 && newgen != "") { //append chatname for chatmode let injecttime = ""; - if(localsettings.inject_timestamps_chat) + if(localsettings.inject_timestamps) { injecttime = " ["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"]"; } @@ -11114,7 +11108,7 @@ { co = replaceAll(co,"\n",""); pending_context_preinjection = "\n"+co + ":"; - if(localsettings.inject_timestamps_chat) + if(localsettings.inject_timestamps) { pending_context_preinjection += " ["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"]"; } @@ -11152,11 +11146,11 @@ { let endmatcher = (localsettings.placeholder_tags ? instructendplaceholder : get_instruct_endtag(false)); if (truncated_context.toLowerCase().trim().endsWith(endmatcher.toLowerCase().trim())) { - if (localsettings.inject_timestamps_instruct) { + if (localsettings.inject_timestamps) { pending_context_preinjection += "[" + (new Date().toLocaleTimeString([], { year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit' })) + "]"; } if (localsettings.inject_chatnames_instruct && localsettings.chatopponent!="") { - if (localsettings.inject_timestamps_instruct) { + if (localsettings.inject_timestamps) { pending_context_preinjection += " "; } pending_context_preinjection += localsettings.chatopponent + ":"; @@ -11450,7 +11444,7 @@ if (localsettings.opmode == 2) //stop on new action found { seqs = ["\n\> "]; - if(!localsettings.multiline_replies_adventure) + if(!localsettings.multiline_replies) { seqs.push("\n"); } @@ -12768,7 +12762,7 @@ splitresponse = gentxt.split("\n\> "); gentxt = splitresponse[0]; } - if(!localsettings.multiline_replies_adventure) + if(!localsettings.multiline_replies) { let foundnl = gentxt.indexOf("\n"); if (foundnl != -1) //if found, truncate to it @@ -13234,7 +13228,7 @@ } else { pending_context_preinjection = instructendplaceholder; } - if(localsettings.inject_timestamps_instruct) + if(localsettings.inject_timestamps) { pending_context_preinjection += "["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"]"; } @@ -14250,7 +14244,7 @@ fulltxt = replaceAll(fulltxt, `%SpcStg%`, `
`); fulltxt = replaceAll(fulltxt, `%SpcEtg%`, `
`); //apply stylization to time tags - if(localsettings.inject_timestamps_instruct && localsettings.instruct_has_markdown) + if(localsettings.inject_timestamps && localsettings.instruct_has_markdown) { fulltxt = fulltxt.replace(/(\[\d{1,2}\/\d{1,2}\/\d{4}, \d{1,2}:\d{2} [AP]M\])/g, "$1\n"); } @@ -15757,7 +15751,7 @@ { let txt = ""; - if(localsettings.inject_timestamps_instruct) + if(localsettings.inject_timestamps) { userinput = "["+(new Date().toLocaleTimeString([], {year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit'}))+"] " + userinput; } @@ -17064,31 +17058,127 @@
-
+
+
Advanced Sampler Config ?These settings control alternative samplers configurations. They are inactive by default, you usually do not need to change them.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Top-KTop-ATyp.TFS
SeedMin-PPrPen.DyTmp.
-
-
-
Multiline Replies ?Whether to allow multiple lines in AI responses. Disable this if the AI starts generating rubbish.
- -
+
-
-
-
Multiline Replies ?Whether to allow multiple lines in AI responses. Disable this if the AI starts generating rubbish.
- +
+
+ +
Mirostat (If supported) ?Replaces your samplers with mirostat, an alternative sampling method. May not be available depending on backend, not supported on Horde.
+
+ + + + + + + + + + + +
ModeTauEta
+
Mirostat Not Supported
-
Continue Bot Replies ?Allow incomplete AI chat replies, which can be continued by pressing submit again. Not recommended for newbies.
- +
User Mods ?Allows you to load third-party user created mods (caution).
+
-
+ +
+
+ + + + + + + + + + + +
RpRng.RpSlp.Smp.Order ?The order by which all 7 samplers are applied, separated by commas. 0=top_k, 1=top_a, 2=top_p, 3=tfs, 4=typ, 5=temp, 6=rep_pen
+
+ +
+ +
+
+
Additional Configs ?Grammar Sampling (KCPP) - Allows you to constrain output to fit specific structures. Resets grammar state every generation unless Retain is checked.
+ +
Retain
+ +
+
+ +
+
+
EOS Token Ban ?Allow the End-Of-Stream (EOS) token and potentially other restricted special tokens to be generated.
+ +
+
@@ -17136,15 +17226,80 @@
+ +
+ +
+
+
Multiline Replies ?Whether to allow multiple lines in AI responses (Chat/Adventure). Disable this if the AI starts generating rubbish.
+ +
+
+
Continue Bot Replies ?Allow incomplete AI chat mode replies, which can be continued by pressing submit again. Not recommended for newbies.
+ +
+
+ +
+
+
Chat PrePrompt ?Modifies the context, injecting tokens to improve chat quality for new chats.
+ +
+
+
Adventure PrePrompt ?Modifies the context, injecting tokens to improve adventure quality for new adventures.
+ +
+
+ +
+
+
Enable Markdown ?Allows the UI to use markdown formatting such as quotes and code blocks.
+ +
+
+
Trim Sentences ?Trims incomplete sentences in AI output.
+ +
+
+
Trim Whitespace ?Removes trailing whitespace in AI output.
+ +
+
+
Compress Newlines ?Compresses multiple newlines into one newline in AI output.
+ +
+
+ +
+
+
Inject Timestamps ?Injects timestamps into context (Chat/Instruct), allowing the AI to have a sense of time.
+ +
+
+
Inject ChatNames ?Appends chat names after every instruct tag, a hybrid chat mode.
+ +
+
+
Assistant Jailbreak ?Automatically injects a jailbreak message after every instruct query, to make the AI more likely to obey you.
+ +
+
- - - + + +