OpenAIChatCompletionStreamResponse
class OpenAIChatCompletionStreamResponse(val choices: List<OpenAIStreamChoice>, val created: Long, val id: String, val model: String, val serviceTier: String? = null, val systemFingerprint: String? = null, val objectType: String, val usage: OpenAIUsage? = null) : OpenAIBaseLLMStreamResponse(source)
Represents the stream response from the OpenAI chat completion API.
Constructors
Link copied to clipboard
constructor(choices: List<OpenAIStreamChoice>, created: Long, id: String, model: String, serviceTier: String? = null, systemFingerprint: String? = null, objectType: String, usage: OpenAIUsage? = null)
Properties
Link copied to clipboard
A list of chat completion choices. Can contain more than one element if n
is greater than 1. Can also be empty for the last chunk if you set stream_options: {"include_usage": true}
.
Link copied to clipboard
The object type, which is always chat.completion
.
Link copied to clipboard
Specifies the processing type used for serving the request.
Link copied to clipboard
This fingerprint represents the backend configuration that the model runs with.
Link copied to clipboard
Usage statistics for the completion request.