diff --git a/public/scripts/reasoning.js b/public/scripts/reasoning.js index c9b0efc3b..19dc024a6 100644 --- a/public/scripts/reasoning.js +++ b/public/scripts/reasoning.js @@ -146,7 +146,7 @@ function registerReasoningSlashCommands() { }), ], callback: async (args, value) => { - const messageId = !isNaN(Number(args[0])) ? Number(args[0]) : chat.length - 1; + const messageId = !isNaN(Number(args.at)) ? Number(args.at) : chat.length - 1; const message = chat[messageId]; if (!message?.extra) { return '';