A legacy text completion response generated by a model.

interface CompletionsResponse {
    cached?: boolean;
    choices: CompletionsChoice[];
    created?: number;
    id: string;
    model: string;
    object: string;
    system_fingerprint?: string;
    usage?: Usage;
}

Properties

cached?: boolean

Indicates whether the request was cached.

A list of completion choices the model generated for the input prompt.

created?: number

The UNIX timestamp (in seconds) of when the completion was created.

id: string

A unique identifier for the completion.

model: string

The ID of the model used for the completion.

object: string

Object type, which is always "text_completion".

system_fingerprint?: string

The backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.

usage?: Usage

Usage information for a model request.