Merge branch 'staging' into neo-server
This commit is contained in:
commit
14d7665072
|
@ -283,6 +283,7 @@ export function evaluateMacros(content, env) {
|
||||||
content = replaceVariableMacros(content);
|
content = replaceVariableMacros(content);
|
||||||
content = content.replace(/{{newline}}/gi, '\n');
|
content = content.replace(/{{newline}}/gi, '\n');
|
||||||
content = content.replace(/\n*{{trim}}\n*/gi, '');
|
content = content.replace(/\n*{{trim}}\n*/gi, '');
|
||||||
|
content = content.replace(/{{noop}}/gi, '');
|
||||||
content = content.replace(/{{input}}/gi, () => String($('#send_textarea').val()));
|
content = content.replace(/{{input}}/gi, () => String($('#send_textarea').val()));
|
||||||
|
|
||||||
// Substitute passed-in variables
|
// Substitute passed-in variables
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<li><tt>{{pipe}}</tt> – only for slash command batching. Replaced with the returned result of the previous command.</li>
|
<li><tt>{{pipe}}</tt> – only for slash command batching. Replaced with the returned result of the previous command.</li>
|
||||||
<li><tt>{{newline}}</tt> – just inserts a newline.</li>
|
<li><tt>{{newline}}</tt> – just inserts a newline.</li>
|
||||||
<li><tt>{{trim}}</tt> – trims newlines surrounding this macro.</li>
|
<li><tt>{{trim}}</tt> – trims newlines surrounding this macro.</li>
|
||||||
|
<li><tt>{{noop}}</tt> – no operation, just an empty string.</li>
|
||||||
<li><tt>{{original}}</tt> – global prompts defined in API settings. Only valid in Advanced Definitions prompt overrides.</li>
|
<li><tt>{{original}}</tt> – global prompts defined in API settings. Only valid in Advanced Definitions prompt overrides.</li>
|
||||||
<li><tt>{{input}}</tt> – the user input</li>
|
<li><tt>{{input}}</tt> – the user input</li>
|
||||||
<li><tt>{{charPrompt}}</tt> – the Character's Main Prompt override</li>
|
<li><tt>{{charPrompt}}</tt> – the Character's Main Prompt override</li>
|
||||||
|
|
Loading…
Reference in New Issue