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

Function resolveNCodeManagedModel

src/utils/model/ncodeModels.ts:133–148  ·  view source on GitHub ↗
(
  model: string | undefined,
)

Source from the content-addressed store, hash-verified

131}
132
133export function resolveNCodeManagedModel(
134 model: string | undefined,
135): NCodeManagedModelProfile | undefined {
136 if (!model) return undefined
137 const normalized = model.trim().toLowerCase()
138 const exactMatch = NCODE_MANAGED_MODEL_PROFILES.find(profile => {
139 if (normalized === profile.model.toLowerCase()) return true
140 if ((profile.aliases as readonly string[]).includes(normalized)) return true
141 return false
142 })
143 if (exactMatch) return exactMatch
144
145 return NCODE_MANAGED_MODEL_PROFILES.find(profile => {
146 return normalized.includes(profile.model.toLowerCase())
147 })
148}
149
150export function getNCodeManagedModelOptions(): Array<{
151 value: string

Callers 15

modelSupportsEffortFunction · 0.85
modelSupportsMaxEffortFunction · 0.85
resolveAppliedEffortFunction · 0.85
getDefaultEffortForModelFunction · 0.85
getContextWindowForModelFunction · 0.85
getModelMaxOutputTokensFunction · 0.85
parseUserSpecifiedModelFunction · 0.85
getMarketingNameForModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected