MCPcopy Create free account
hub / github.com/freecodexyz/free-code / renderModelSetting

Function renderModelSetting

src/utils/model/model.ts:354–362  ·  view source on GitHub ↗
(setting: ModelName | ModelAlias)

Source from the content-addressed store, hash-verified

352}
353
354export function renderModelSetting(setting: ModelName | ModelAlias): string {
355 if (setting === 'opusplan') {
356 return 'Opus Plan'
357 }
358 if (isModelAlias(setting)) {
359 return capitalize(setting)
360 }
361 return renderModelName(setting)
362}
363
364// @[MODEL LAUNCH]: Add display name cases for the new model (base + [1m] variant if applicable).
365/**

Callers 2

LogoV2Function · 0.85
CondensedLogoFunction · 0.85

Calls 3

isModelAliasFunction · 0.85
capitalizeFunction · 0.85
renderModelNameFunction · 0.85

Tested by

no test coverage detected