Fix command argument definitions

This commit is contained in:
Cohee
2025-01-31 09:39:26 +00:00
parent 80b29ed5cb
commit 2a904c4aea

View File

@ -176,15 +176,16 @@ function registerReasoningSlashCommands() {
SlashCommandNamedArgument.fromProps({ SlashCommandNamedArgument.fromProps({
name: 'regex', name: 'regex',
description: 'Whether to apply regex scripts to the reasoning content.', description: 'Whether to apply regex scripts to the reasoning content.',
typeList: ARGUMENT_TYPE.BOOLEAN, typeList: [ARGUMENT_TYPE.BOOLEAN],
defaultValue: 'true', defaultValue: 'true',
isRequired: false, isRequired: false,
enumProvider: commonEnumProviders.boolean('trueFalse'),
}), }),
], ],
unnamedArgumentList: [ unnamedArgumentList: [
SlashCommandArgument.fromProps({ SlashCommandArgument.fromProps({
description: 'input string', description: 'input string',
typeList: ARGUMENT_TYPE.STRING, typeList: [ARGUMENT_TYPE.STRING],
}), }),
], ],
callback: (args, value) => { callback: (args, value) => {