MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / modelDisplayString

Function modelDisplayString

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

Source from the content-addressed store, hash-verified

576}
577
578export function modelDisplayString(model: ModelSetting): string {
579 if (model === null) {
580 if (process.env.USER_TYPE === 'ant') {
581 return `Default for Ants (${renderDefaultModelSetting(getDefaultMainLoopModelSetting())})`
582 } else if (isClaudeAISubscriber()) {
583 return `Default (${getClaudeAiUserDefaultModelDescription()})`
584 }
585 return `Default (${getDefaultMainLoopModel()})`
586 }
587 const resolvedModel = parseUserSpecifiedModel(model)
588 return model === resolvedModel ? resolvedModel : `${model} (${resolvedModel})`
589}
590
591// @[MODEL LAUNCH]: Add a marketing name mapping for the new model below.
592export function getMarketingNameForModel(modelId: string): string | undefined {

Callers 9

ModelPickerFunction · 0.85
onChangeMainModelConfigFunction · 0.85
ConfigFunction · 0.85
PromptInputFunction · 0.85
getModelDisplayLabelFunction · 0.85
SetProviderAndCloseFunction · 0.85

Tested by

no test coverage detected