Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
Streaming completion choice chunk

Fields

FieldTypeRequiredDescriptionExample
Deltacomponents.ChatStreamDelta:heavy_check_mark:Delta changes in streaming response{"content": "Hello","role": "assistant"}
FinishReason*components.ChatFinishReasonEnum:heavy_check_mark:N/Astop
Indexint64:heavy_check_mark:Choice index0
Logprobsoptionalnullable.OptionalNullable[components.ChatTokenLogprobs]:heavy_minus_sign:Log probabilities for the completion{"content": [{"bytes": null,"logprob": -0.612345,"token": " Hello","top_logprobs": []}
],
“refusal”: null<br/>}