Interface CreateChatCompletionStreamResponse

The response body for a single chunk generated by the Create Chat Completion request request with stream set to true.

Hierarchy

  • CreateChatCompletionStreamResponse

Properties

choices: [{
    delta: CreateChatCompletionMessage | CreateChatCompletionFunctionCallMessage;
    finish_reason: null | string;
    index: number;
}]

The chat completion choices generated by the model. Always contains exactly one choice.

Type declaration

created: number

The time the chat completion was created, in Unix time.

id: string

A unique identifier for the chat completion.

model: string

The model used to generate the chat completion.

object: string

The object type, which is always chat_completion.

Generated using TypeDoc