Interface LanguageModel

interface LanguageModel {
    defaultRequestSettings?: {
        [key: string]: unknown;
    };
    family?: string;
    id: string;
    maxInputTokens?: number;
    maxOutputTokens?: number;
    name?: string;
    vendor?: string;
    version?: string;
    request(request, cancellationToken?): Promise<LanguageModelResponse>;
}

Hierarchy (view full)

Properties

defaultRequestSettings?: {
    [key: string]: unknown;
}

Default request settings for the language model. These settings can be set by a user preferences. Settings in a request will override these default settings.

Type declaration

  • [key: string]: unknown
family?: string
id: string
maxInputTokens?: number
maxOutputTokens?: number
name?: string
vendor?: string
version?: string

Methods