From 2a904c4aea06ff2aeb9569b262e5a1116a76f434 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 31 Jan 2025 09:39:26 +0000 Subject: [PATCH] Fix command argument definitions --- public/scripts/reasoning.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/scripts/reasoning.js b/public/scripts/reasoning.js index 0e5437edf..26f276600 100644 --- a/public/scripts/reasoning.js +++ b/public/scripts/reasoning.js @@ -176,15 +176,16 @@ function registerReasoningSlashCommands() { SlashCommandNamedArgument.fromProps({ name: 'regex', description: 'Whether to apply regex scripts to the reasoning content.', - typeList: ARGUMENT_TYPE.BOOLEAN, + typeList: [ARGUMENT_TYPE.BOOLEAN], defaultValue: 'true', isRequired: false, + enumProvider: commonEnumProviders.boolean('trueFalse'), }), ], unnamedArgumentList: [ SlashCommandArgument.fromProps({ description: 'input string', - typeList: ARGUMENT_TYPE.STRING, + typeList: [ARGUMENT_TYPE.STRING], }), ], callback: (args, value) => {