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

    What a provider contributes to a discovery run; everything around it is the same for all of them.

    interface ModelDiscoveryRequest {
        providerLabel: string;
        snapshotFile: string;
        isRetryable?(error: unknown): boolean;
        listModels(): Promise<DiscoveredModel[]>;
    }
    Index

    Properties

    providerLabel: string

    The provider, for the log entry a failed fetch leaves, e.g. Anthropic.

    snapshotFile: string

    Name the provider's snapshot is kept under, e.g. anthropic-models.json.

    Methods

    • Whether a failure is transient enough to try again. Nothing is retried by default: a provider knows which of its SDK's errors are a connection giving out and which are an answer.

      Parameters

      • error: unknown

      Returns boolean