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

Function modelDisplayString

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

Source from the content-addressed store, hash-verified

554}
555
556export function modelDisplayString(model: ModelSetting): string {
557 if (model === null) {
558 if (process.env.USER_TYPE === 'ant') {
559 return `Default for Ants (${renderDefaultModelSetting(getDefaultMainLoopModelSetting())})`
560 } else if (isClaudeAISubscriber()) {
561 return `Default (${getClaudeAiUserDefaultModelDescription()})`
562 }
563 return `Default (${getDefaultMainLoopModel()})`
564 }
565 const resolvedModel = parseUserSpecifiedModel(model)
566 return model === resolvedModel ? resolvedModel : `${model} (${resolvedModel})`
567}
568
569// @[MODEL LAUNCH]: Add a marketing name mapping for the new model below.
570export 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