MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / handleModelCommand

Function handleModelCommand

apps/kimi-code/src/tui/commands/config.ts:216–228  ·  view source on GitHub ↗
(host: SlashCommandHost, args: string)

Source from the content-addressed store, hash-verified

214}
215
216export 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
230export async function handleEffortCommand(host: SlashCommandHost, args: string): Promise<void> {
231 const alias = host.state.appState.model;

Callers 1

Calls 3

refreshModelsForPickerFunction · 0.85
showModelPickerFunction · 0.85
showErrorMethod · 0.65

Tested by

no test coverage detected