mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-08 22:28:48 +03:00
claude-code
This commit is contained in:
18
src/commands/model/index.ts
Normal file
18
src/commands/model/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import 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
|
||||
|
||||
|
||||
298
src/commands/model/model.tsx
Normal file
298
src/commands/model/model.tsx
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user