Interface ChatSSE

ChatSSE represents an object that contains the result for the chatSSE call.

interface ChatSSE {
    choices: ChatSSEChoice[];
    created: number;
    error: string;
    id: string;
    model: string;
    object: string;
    createdDate(): Date;
}

Properties

choices: ChatSSEChoice[]

choices represents the collection of choices to choose from.

created: number

created represents the unix timestamp for when the request was received.

error: string

error provides error information from the stream.

id: string

id represents a unique identifier for the result.

model: string

model represents the model used for generating the result.

object: string

object represent the type of the result document.

Methods

  • createdDate converts the created unix timestamp into a JS Date.

    Returns Date