MCPcopy Index your code
hub / github.com/Noumena-Network/code / modelDisplayString

Function modelDisplayString

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

Source from the content-addressed store, hash-verified

688}
689
690export function modelDisplayString(model: ModelSetting): string {
691 if (model === null) {
692 const session = getCurrentSubscriptionSessionState()
693 if (isInternalBuild()) {
694 return `Default for Ants (${renderDefaultModelSetting(getDefaultMainLoopModelSetting())})`
695 } else if (session.isOauthBackedFirstPartySession) {
696 return `Default (${getClaudeAiUserDefaultModelDescription()})`
697 }
698 return `Default (${getDefaultMainLoopModel()})`
699 }
700 const resolvedModel = parseUserSpecifiedModel(model)
701 return model === resolvedModel ? resolvedModel : `${model} (${resolvedModel})`
702}
703
704// @[MODEL LAUNCH]: Add a marketing name mapping for the new model below.
705export function getMarketingNameForModel(modelId: string): string | undefined {

Callers 7

ModelPickerFunction · 0.85
onChangeMainModelConfigFunction · 0.85
PromptInputFunction · 0.85
status.test.tsFile · 0.85
getModelDisplayLabelFunction · 0.85

Tested by

no test coverage detected