Theia API Documentation v1.77.0
    Preparing search index...

    Registry for managing language model aliases.

    Implements

    Index
    _ready: Deferred<void> = ...
    aiConfigurationService: AiConfigurationService
    aliases: LanguageModelAlias[] = ...
    onDidChange: Event<void> = ...

    Event that is fired when the alias list changes.

    onDidChangeEmitter: Emitter<void> = ...
    • 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.

      Parameters

      • id: string

      Returns string[] | undefined

    • Set the selected model for the given alias id. Updates the alias' selectedModelId to the given modelId, persists, and fires onDidChange.

      Parameters

      • aliasId: string
      • modelId: string

      Returns void