chatgpt-api/docs/interfaces/CreateChatCompletionStreamR...

2.6 KiB

chatgpt / Exports / CreateChatCompletionStreamResponse

Interface: CreateChatCompletionStreamResponse

Hierarchy

Table of contents

Properties

Properties

choices

choices: [{ delta: { content?: string ; role: Role } ; finish_reason: string ; index: number }]

Inherited from

CreateChatCompletionDeltaResponse.choices

Defined in

src/types.ts:198


created

created: number

Inherited from

CreateChatCompletionDeltaResponse.created

Defined in

src/types.ts:196


id

id: string

Inherited from

CreateChatCompletionDeltaResponse.id

Defined in

src/types.ts:194


model

model: string

Inherited from

CreateChatCompletionDeltaResponse.model

Defined in

src/types.ts:197


object

object: "chat.completion.chunk"

Inherited from

CreateChatCompletionDeltaResponse.object

Defined in

src/types.ts:195


usage

usage: CreateCompletionStreamResponseUsage

Defined in

src/types.ts:97