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

    The shared half of a provider that discovers its language models: it asks the provider what it offers, registers the answer, unregisters what disappeared, and reports the state of all of that to the ModelDiscoveryStatusService so the provider's page can show it.

    A provider brings what only it can know: its id, its manager, the preferences it reads, how a discovered model becomes a model description, and the messages that name it. Everything a provider does beyond discovery (a custom endpoint, a proxy, its own retry settings) stays in the subclass, which hooks into initializeProvider and handlePreferenceChange.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    allowEnvironmentApiKeyPreference: string

    Preference holding the consent to use an API key found in the environment.

    discoveredModels: DiscoveredModel[] = []

    The models registered from the last discovery, as the provider reported them.

    discovering: Promise<void> = ...
    envConsentPrompted: boolean = false

    Ensures the env-key consent prompt is shown at most once per session.

    messageService: MessageService
    modelOverridesPreference: string

    Preference holding an explicit model list that replaces discovery.

    preferenceService: PreferenceService
    providerId: string

    Provider node id, e.g. anthropic. Matches the provider's node in the Models category.

    providerLabel: string

    Human-readable provider name, e.g. Anthropic.

    Accessors

    Methods