Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
559 B · 16 lines
TypeScript
at main
1234567891011121314151617import type { Command } from '../../commands.js'import { shouldInferenceConfigCommandBeImmediate } from '../../utils/immediateCommand.js'import { getMainLoopModel, renderModelName } from '../../utils/model/model.js'
export default { type: 'local-jsx', name: 'model', get description() { return `Set the AI model for Claude Code (currently ${renderModelName(getMainLoopModel())})` }, argumentHint: '[model]', get immediate() { return shouldInferenceConfigCommandBeImmediate() }, load: () => import('./model.js'),} satisfies Command