Fix reasoning-get with no argument
| @@ -153,7 +153,7 @@ function registerReasoningSlashCommands() { | ||
| 153 | 153 | }), |
| 154 | 154 | ], |
| 155 | 155 | callback: (_args, value) => { |
| 156 | 156 | const messageId = !isNaN(NumberparseInt(value.toString())) ? NumberparseInt(value.toString()) : chat.length - 1; |
| 157 | 157 | const message = chat[messageId]; |
| 158 | 158 | const reasoning = String(message?.extra?.reasoning ?? ''); |
| 159 | 159 | return reasoning.replace(PromptReasoning.REASONING_PLACEHOLDER_REGEX, ''); |