(host: SlashCommandHost, args: string)
| 214 | } |
| 215 | |
| 216 | export async function handleModelCommand(host: SlashCommandHost, args: string): Promise<void> { |
| 217 | const alias = args.trim(); |
| 218 | await refreshModelsForPicker(host); |
| 219 | if (alias.length === 0) { |
| 220 | showModelPicker(host); |
| 221 | return; |
| 222 | } |
| 223 | if (host.state.appState.availableModels[alias] === undefined) { |
| 224 | host.showError(`Unknown model alias: ${alias}`); |
| 225 | return; |
| 226 | } |
| 227 | showModelPicker(host, alias); |
| 228 | } |
| 229 | |
| 230 | export async function handleEffortCommand(host: SlashCommandHost, args: string): Promise<void> { |
| 231 | const alias = host.state.appState.model; |
no test coverage detected