ModelCatalog
Defined in: core/src/model-catalog.ts:53
Built-in profiles merged with the project’s models.profiles.
Properties
profiles
readonlyprofiles: readonlyModelProfile[]
Defined in: core/src/model-catalog.ts:55
Every profile: built-in entries first, then custom ones in config order
Methods
getLatest()
getLatest(
family):ModelProfile|undefined
Defined in: core/src/model-catalog.ts:59
Newest non-retired release of a family
Parameters
family
string
Returns
ModelProfile | undefined
getProfile()
getProfile(
id):ModelProfile|undefined
Defined in: core/src/model-catalog.ts:57
Find a profile by id (case-insensitive)
Parameters
id
string
Returns
ModelProfile | undefined
getReplacement()
getReplacement(
id):ModelProfile|undefined
Defined in: core/src/model-catalog.ts:67
Replacement for a profile, found by following successor links until a current release. Undefined when the chain has no current release: no successor, a missing one, or a loop.
Parameters
id
string
Returns
ModelProfile | undefined
resolve()
resolve(
reference):ModelResolution|undefined
Defined in: core/src/model-catalog.ts:61
Resolve a profile id, floating alias, alias, API id, or display name
Parameters
reference
string
Returns
ModelResolution | undefined