MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / modelDisplayString

Function modelDisplayString

source code/utils/model/model.ts:558–569  ·  view source on GitHub ↗
(model: ModelSetting)

Source from the content-addressed store, hash-verified

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