OpenAIStreamChunk
Defined in: backend/src/providers/openai.ts:110
OpenAI streaming chunk.
Properties
Section titled “Properties”choices
Section titled “choices”choices:
object[]
Defined in: backend/src/providers/openai.ts:115
delta:
object
delta.content?
Section titled “delta.content?”
optionalcontent:string
delta.role?
Section titled “delta.role?”
optionalrole:"assistant"
delta.tool_calls?
Section titled “delta.tool_calls?”
optionaltool_calls:object[]
finish_reason
Section titled “finish_reason”finish_reason:
"stop"|"length"|"tool_calls"|"content_filter"|null
index:
number
created
Section titled “created”created:
number
Defined in: backend/src/providers/openai.ts:113
id:
string
Defined in: backend/src/providers/openai.ts:111
model:
string
Defined in: backend/src/providers/openai.ts:114
object
Section titled “object”object:
"chat.completion.chunk"
Defined in: backend/src/providers/openai.ts:112