Colab and any fix

This commit is contained in:
Ash
2023-02-01 23:55:01 +04:00
parent bd338518a0
commit f96bc01d9b
5 changed files with 44 additions and 19 deletions

View File

@@ -589,6 +589,8 @@
if(mesExamples.length > 0){
mesExamples = mesExamples.replace(/{{user}}/gi, name1);
mesExamples = mesExamples.replace(/{{char}}/gi, name2);
mesExamples = mesExamples.replace(/<USER>/gi, name1);
mesExamples = mesExamples.replace(/<BOT>/gi, name2);
//mesExamples = mesExamples.replaceAll('<START>', '[An example of how '+name2+' responds]');
let blocks = mesExamples.split(/<START>/gi);
mesExamplesArray = blocks.slice(1).map(block => `<START>\n${block.trim()}\n`);
@@ -2675,7 +2677,7 @@
<div id="scenario_div">
<h4>Scenario</h4>
<h5>Circumstances and context of the dialogue</h5>
<input id="scenario_pole" name="scenario" class="text_pole" maxlength="999" size="40" value="" autocomplete="off" form="form_create">
<input id="scenario_pole" name="scenario" class="text_pole" maxlength="9999" size="40" value="" autocomplete="off" form="form_create">
</div>
<div id="mes_example_div">

View File

@@ -18,6 +18,9 @@
<br><br>&lt;START&gt;<br>
{{user}}: Hello<br>
{{char}}: *excitedly* Hello there, dear! Are you new to Axel? Don't worry, I, Aqua the goddess of water, am here to help you! Do you need any assistance? And may I say, I look simply radiant today! *strikes a pose and looks at you with puppy eyes*</p>
<hr><br>A list of tags that are replaced when sending AI examples of dialogs:<br><br>
{{user}} and &lt;USER&gt; are replaced by username<br>
{{char}} and &lt;BOT&gt; are replaced by character name
</div>
</div>
</body>