mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix command argument definitions
This commit is contained in:
@ -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) => {
|
||||||
|
Reference in New Issue
Block a user