diff --git a/index.html b/index.html index 267f373..b4fde5e 100644 --- a/index.html +++ b/index.html @@ -1837,7 +1837,7 @@ "opmode":3, "chatname": "You", "chatopponent": "KoboldGPT", - "gui_type":0, + "gui_type":1, "prefmodel1":chatmodels1, "prefmodel2":chatmodels2, "prompt":"\nKoboldGPT: Hello, I am KoboldGPT, your personal AI assistant. What would you like to know?", @@ -2226,9 +2226,23 @@ "memory": `[Interactive Fiction: Game Mode Enabled]\n[You are playing a choose-your-own-adventure game. Please input action.]\n`, "authorsnote": "", "worldinfo": [] + }, + { + "title":"Coding Assistant", + "author":"Concedo", + "desc":"Provides coding examples and instructions, and completes programming tasks.", + "opmode":4, + "instruct_starttag": "\\n### Instruction:\\n", + "instruct_endtag": "\\n### Response:\\n", + "prefmodel1":instructmodels1, + "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", + "authorsnote": "", + "worldinfo": [] } - ]; @@ -4496,6 +4510,14 @@ else if(temp_scenario.gui_type===2) { localsettings.gui_type_instruct = 2; } else if(temp_scenario.gui_type===0) { localsettings.gui_type_instruct = 0; } + if (temp_scenario.instruct_has_markdown===true) { + localsettings.instruct_has_markdown = true; + } + else if(temp_scenario.instruct_has_markdown===false) + { + localsettings.instruct_has_markdown = false; + } + if (temp_scenario.instruct_starttag) { localsettings.instruct_starttag = temp_scenario.instruct_starttag; } if (temp_scenario.instruct_endtag) { localsettings.instruct_endtag = temp_scenario.instruct_endtag; } }