Protected Readonly_ProtectedaliasesReadonlyonEvent that is fired when the alias list changes.
Protected ReadonlyonProtected ReadonlypreferencePromise that resolves when the registry is ready for use (preferences loaded).
Get all aliases.
ProtectedinitProtectedloadLoad 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.
ProtectedsavePersist 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.