Protected
Readonly
_Protected
aliasesReadonly
onEvent that is fired when the alias list changes.
Protected
Readonly
onProtected
Readonly
preferencePromise that resolves when the registry is ready for use (preferences loaded).
Get all aliases.
Protected
initProtected
loadLoad aliases from the persisted setting
Remove an alias by its id.
Resolve an alias or model id to a prioritized list of model ids. If the id is not an alias, returns [id]. If the alias exists and has a selectedModelId, returns [selectedModelId]. If the alias exists and has no selectedModelId, returns defaultModelIds. If the alias does not exist, returns undefined.
Protected
savePersist the current aliases and their selected models to the setting
Set the selected model for the given alias id. Updates the alias' selectedModelId to the given modelId, persists, and fires onDidChange.
Registry for managing language model aliases.