Skip to content

Commit

Permalink
added new scenario coding assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Oct 7, 2023
1 parent a9ced6e commit 09a1bb7
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand Down Expand Up @@ -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": []
}


];
</script>

Expand Down Expand Up @@ -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; }
}
Expand Down

0 comments on commit 09a1bb7

Please sign in to comment.