Fix reasoning-get with no argument

ed46b96ba2b92ea2df99736fb59e01acf49cc8bc

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/reasoning.js+1 -1
@@ -153,7 +153,7 @@ function registerReasoningSlashCommands() {
153153 }),
154154 ],
155155 callback: (_args, value) => {
156156 const messageId = !isNaN(NumberparseInt(value.toString())) ? NumberparseInt(value.toString()) : chat.length - 1;
157157 const message = chat[messageId];
158158 const reasoning = String(message?.extra?.reasoning ?? '');
159159 return reasoning.replace(PromptReasoning.REASONING_PLACEHOLDER_REGEX, '');