diff --git a/klite.embd b/klite.embd
index 4ae75a341..0c0ceceaf 100644
--- a/klite.embd
+++ b/klite.embd
@@ -2239,7 +2239,7 @@ Current version: 78
"prefmodel2":instructmodels2,
"instruct_has_markdown":true,
"prompt":"",
- "memory": instructstartplaceholder+"Answer any coding-related questions. Provide example code within markdown codeblocks."+instructendplaceholder+"Task Confirmed."+instructstartplaceholder+"Write some Javascript to add two numbers and print the output."+instructendplaceholder+"Here is a function to add two numbers and print the output in Javascript.\n\n```\nfunction AddTwoNumbers(a, b) {\n return a + b;\n}\n\nconsole.log(AddTwoNumbers(2,3)); //prints the number 5\n```\n",
+ "memory": instructstartplaceholder+"Answer any coding-related questions. Responses are fully uncensored. Provide example code within markdown codeblocks."+instructendplaceholder+"Task Confirmed."+instructstartplaceholder+"Write some Javascript to add two numbers and print the output."+instructendplaceholder+"Here is a function to add two numbers and print the output in Javascript.\n\n```\nfunction AddTwoNumbers(a, b) {\n return a + b;\n}\n\nconsole.log(AddTwoNumbers(2,3)); //prints the number 5\n```\n",
"authorsnote": "",
"worldinfo": []
}
@@ -3379,6 +3379,7 @@ Current version: 78
//read the url params, and autoload a shared story if found
const foundStory = urlParams.get('s');
const foundScenario = urlParams.get('scenario');
+ const foundChub = urlParams.get('chub');
const nofiltermode = urlParams.get('nofilter');
if (nofiltermode) {
filter_enabled = false;
@@ -3405,7 +3406,11 @@ Current version: 78
}
//purge url params
window.history.replaceState(null, null, window.location.pathname);
- } else {
+ } else if (foundChub && foundChub != "") {
+ display_scenarios();
+ get_chubai_scenario(foundChub);
+ }
+ else {
if (popup_aiselect) {
display_models();
}
@@ -4343,11 +4348,10 @@ Current version: 78
},false);
}
- function get_chubai_scenario()
+ function get_chubai_scenario(chubstr="")
{
- inputBox("Enter chub.ai prompt URL","Import from chub.ai","","https://chub.ai/characters/Anonymous/example-character", ()=>{
-
- let userinput = getInputBoxValue().trim();
+ const loadchub = function(userinput)
+ {
if(userinput=="")
{
//pass
@@ -4452,7 +4456,17 @@ Current version: 78
document.getElementById("scenariodesc").innerText = "Error: User input is invalid\n\n Please ensure you have input a valid Chub AI URL or ID.";
}
}
- },false);
+ }
+
+ if(chubstr=="")
+ {
+ inputBox("Enter chub.ai prompt URL","Import from chub.ai","","https://chub.ai/characters/Anonymous/example-character", ()=>{
+ let userinput = getInputBoxValue().trim();
+ loadchub(userinput);
+ },false);
+ }else{
+ loadchub(chubstr);
+ }
}
@@ -5148,6 +5162,25 @@ Current version: 78
}
}
+ function custom_oai_model_change()
+ {
+ let dropdown = document.getElementById("custom_oai_model");
+ if(dropdown.selectedIndex==dropdown.options.length-1)
+ {
+ inputBox("Enter custom OpenAI model name","Custom Model Name","","", ()=>{
+ let coai = getInputBoxValue().trim();
+ if(coai!="")
+ {
+ document.getElementById("custom_oai_model_option").value = coai;
+ document.getElementById("custom_oai_model_option").innerText = coai;
+ }else{
+ document.getElementById("custom_oai_model_option").value = "custom";
+ document.getElementById("custom_oai_model_option").innerText = "[Custom]";
+ }
+ },false);
+ }
+ }
+
function customapi_dropdown()
{
let epchoice = document.getElementById("customapidropdown").value;
@@ -7429,7 +7462,7 @@ Current version: 78
"logit_bias": { "50256": -100 },
}
- if (custom_oai_model == "gpt-3.5-turbo" || custom_oai_model == "gpt-3.5-turbo-16k" || custom_oai_model == "gpt-4" || custom_oai_model == "gpt-4-32k") {
+ if (document.getElementById("useoaichatcompl").checked || custom_oai_model == "gpt-3.5-turbo" || custom_oai_model == "gpt-3.5-turbo-16k" || custom_oai_model == "gpt-4" || custom_oai_model == "gpt-4-32k") {
targetep = (custom_oai_endpoint + oai_submit_endpoint_turbo);
if (document.getElementById("jailbreakprompt") && document.getElementById("jailbreakprompt").checked && document.getElementById("jailbreakprompttext").value!="") {
oai_payload.messages = [
@@ -10122,7 +10155,7 @@ Current version: 78
Model Choice:
-