MCPcopy Index your code
hub / github.com/freecodexyz/free-code / modelDisplayString

Function modelDisplayString

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

Source from the content-addressed store, hash-verified

593}
594
595export function modelDisplayString(model: ModelSetting): string {
596 if (model === null) {
597 if (process.env.USER_TYPE === 'ant') {
598 return `Default for Ants (${renderDefaultModelSetting(getDefaultMainLoopModelSetting())})`
599 } else if (isClaudeAISubscriber()) {
600 return `Default (${getClaudeAiUserDefaultModelDescription()})`
601 }
602 return `Default (${getDefaultMainLoopModel()})`
603 }
604 const resolvedModel = parseUserSpecifiedModel(model)
605 return model === resolvedModel ? resolvedModel : `${model} (${resolvedModel})`
606}
607
608// @[MODEL LAUNCH]: Add a marketing name mapping for the new model below.
609export 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