Interface StreamedChatCompletionResponse

Describes a streamed response for chat completion request. Each response chunk will have the same shape.

interface StreamedChatCompletionResponse {
    choices: ChoiceModel[];
    id: string;
    model: string;
}

Properties

Properties

choices: ChoiceModel[]

An array of ChoiceModel representing different response types.

id: string

The unique identifier for the streaming response.

model: string

The model used to generate the response.