Skip to content

PromptScript API


Function: createModelCatalog()

createModelCatalog(config?, builtIns?): ModelCatalog

Defined in: core/src/model-catalog.ts:242

Create a catalog from the built-in profiles and a project's model config.

A models.profiles key that matches a built-in id changes only the fields it sets (per-target names merge); any other key adds a custom profile. Custom names win lookups over built-in names they collide with.

Parameters

config?

ModelsConfig

builtIns?

readonly ModelProfile[] = MODEL_PROFILES

Returns

ModelCatalog