Interface OpenAiModelDescription

interface OpenAiModelDescription {
    apiKey: undefined | string | true;
    defaultRequestSettings?: {
        [key: string]: unknown;
    };
    enableStreaming: boolean;
    id: string;
    model: string;
    url?: string;
}

Properties

apiKey: undefined | string | true

The key for the model. If 'true' is provided the global OpenAI API key will be used.

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

Default request settings for the OpenAI model.

Type declaration

  • [key: string]: unknown
enableStreaming: boolean

Indicate whether the streaming API shall be used.

id: string

The identifier of the model which will be shown in the UI.

model: string

The model ID as used by the OpenAI API.

url?: string

The OpenAI API compatible endpoint where the model is hosted. If not provided the default OpenAI endpoint will be used.