FireworksAIStreamChunk
Defined in: backend/src/providers/fireworks.ts:83
Properties
Section titled “Properties”choices
Section titled “choices”choices:
object[]
Defined in: backend/src/providers/fireworks.ts:88
delta:
object
delta.content?
Section titled “delta.content?”
optionalcontent:string
delta.role?
Section titled “delta.role?”
optionalrole:"assistant"
finish_reason
Section titled “finish_reason”finish_reason:
"stop"|"length"|null
index:
number
created
Section titled “created”created:
number
Defined in: backend/src/providers/fireworks.ts:86
id:
string
Defined in: backend/src/providers/fireworks.ts:84
model:
string
Defined in: backend/src/providers/fireworks.ts:87
object
Section titled “object”object:
"chat.completion.chunk"
Defined in: backend/src/providers/fireworks.ts:85
usage?
Section titled “usage?”
optionalusage:object
Defined in: backend/src/providers/fireworks.ts:96
completion_tokens
Section titled “completion_tokens”completion_tokens:
number
prompt_tokens
Section titled “prompt_tokens”prompt_tokens:
number
total_tokens
Section titled “total_tokens”total_tokens:
number