StreamingChatChoiceUpdate Class
- java.
lang. Object - com.
azure. ai. inference. models. StreamingChatChoiceUpdate
- com.
Implements
public final class StreamingChatChoiceUpdate
implements JsonSerializable<StreamingChatChoiceUpdate>
Represents an update to a single prompt completion when the service is streaming updates using Server Sent Events (SSE). Generally, `n` choices are generated per provided prompt with a default value of 1. Token limits and other settings may limit the number of choices generated.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Streaming |
fromJson(JsonReader jsonReader)
Reads an instance of Streaming |
|
Streaming |
getDelta()
Get the delta property: An update to the chat message for a given chat completions prompt. |
|
Completions |
getFinishReason()
Get the finish |
| int |
getIndex()
Get the index property: The ordered index associated with this chat completions choice. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static StreamingChatChoiceUpdate fromJson(JsonReader jsonReader)
Reads an instance of StreamingChatChoiceUpdate from the JsonReader.
Parameters:
Returns:
Throws:
getDelta
public StreamingChatResponseMessageUpdate getDelta()
Get the delta property: An update to the chat message for a given chat completions prompt.
Returns:
getFinishReason
public CompletionsFinishReason getFinishReason()
Get the finishReason property: The reason that this chat completions choice completed its generated.
Returns:
getIndex
public int getIndex()
Get the index property: The ordered index associated with this chat completions choice.
Returns: