Type alias CreateChatCompletionStreamResponse

CreateChatCompletionStreamResponse: {
    choices: {
        delta: ChatCompletionStreamResponseDelta;
        finish_reason: "stop" | "length" | "function_call" | "content_filter" | null;
        index: number;
    }[];
    created: number;
    id: string;
    model: string;
    object: string;
}

Represents a streamed chunk of a chat completion response returned by model, based on the provided input.

Type declaration

  • choices: {
        delta: ChatCompletionStreamResponseDelta;
        finish_reason: "stop" | "length" | "function_call" | "content_filter" | null;
        index: number;
    }[]

    A list of chat completion choices. Can be more than one if n is greater than 1.

  • created: number

    The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.

  • id: string

    A unique identifier for the chat completion. Each chunk has the same ID.

  • model: string

    The model to generate the completion.

  • object: string

    The object type, which is always chat.completion.chunk.

Generated using TypeDoc