diff --git a/public/scripts/macros.js b/public/scripts/macros.js index f89197d3f..74c89b715 100644 --- a/public/scripts/macros.js +++ b/public/scripts/macros.js @@ -283,6 +283,7 @@ export function evaluateMacros(content, env) { content = replaceVariableMacros(content); content = content.replace(/{{newline}}/gi, '\n'); content = content.replace(/\n*{{trim}}\n*/gi, ''); + content = content.replace(/{{noop}}/gi, ''); content = content.replace(/{{input}}/gi, () => String($('#send_textarea').val())); // Substitute passed-in variables diff --git a/public/scripts/templates/macros.html b/public/scripts/templates/macros.html index 46336c083..dbb50db80 100644 --- a/public/scripts/templates/macros.html +++ b/public/scripts/templates/macros.html @@ -5,6 +5,7 @@
  • {{pipe}} – only for slash command batching. Replaced with the returned result of the previous command.
  • {{newline}} – just inserts a newline.
  • {{trim}} – trims newlines surrounding this macro.
  • +
  • {{noop}} – no operation, just an empty string.
  • {{original}} – global prompts defined in API settings. Only valid in Advanced Definitions prompt overrides.
  • {{input}} – the user input
  • {{charPrompt}} – the Character's Main Prompt override