From 9666b9920aebaa54d61197da101bc23000045d86 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Fri, 28 Jun 2024 03:55:03 +0200 Subject: [PATCH] Remove /summarize's variable usage in 'prompt' --- public/scripts/extensions/memory/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/scripts/extensions/memory/index.js b/public/scripts/extensions/memory/index.js index 34b3caeb2..efd6f5fdd 100644 --- a/public/scripts/extensions/memory/index.js +++ b/public/scripts/extensions/memory/index.js @@ -447,7 +447,7 @@ async function summarizeCallback(args, text) { } const source = args.source || extension_settings.memory.source; - const prompt = substituteParamsExtended((resolveVariable(args.prompt) || extension_settings.memory.prompt), { words: extension_settings.memory.promptWords }); + const prompt = substituteParamsExtended((args.prompt || extension_settings.memory.prompt), { words: extension_settings.memory.promptWords }); try { switch (source) { @@ -923,10 +923,8 @@ jQuery(async function () { SlashCommandNamedArgument.fromProps({ name: 'prompt', description: 'prompt to use for summarization', - typeList: [ARGUMENT_TYPE.STRING, ARGUMENT_TYPE.VARIABLE_NAME], + typeList: [ARGUMENT_TYPE.STRING], defaultValue: '', - enumProvider: commonEnumProviders.variables('all'), - forceEnum: false, }), ], unnamedArgumentList: [