MCPcopy
hub / github.com/claude-code-best/claude-code / modelDisplayString

Function modelDisplayString

src/utils/model/model.ts:647–658  ·  view source on GitHub ↗
(model: ModelSetting)

Source from the content-addressed store, hash-verified

645}
646
647export function modelDisplayString(model: ModelSetting): string {
648 if (model === null) {
649 if (process.env.USER_TYPE === 'ant') {
650 return `Default for Ants (${renderDefaultModelSetting(getDefaultMainLoopModelSetting())})`
651 } else if (isClaudeAISubscriber()) {
652 return `Default (${getClaudeAiUserDefaultModelDescription()})`
653 }
654 return `Default (${getDefaultMainLoopModel()})`
655 }
656 const resolvedModel = parseUserSpecifiedModel(model)
657 return model === resolvedModel ? resolvedModel : `${model} (${resolvedModel})`
658}
659
660// @[MODEL LAUNCH]: Add a marketing name mapping for the new model below.
661export function getMarketingNameForModel(modelId: string): string | undefined {

Callers 6

ModelPickerFunction · 0.85
onChangeMainModelConfigFunction · 0.85
PromptInputFunction · 0.85
getModelDisplayLabelFunction · 0.85

Tested by

no test coverage detected