Class ChatCompletionChunk.Choice
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionChunk.Choice.Builder
A builder for Choice.
public final class
ChatCompletionChunk.Choice.Delta
A chat completion delta generated by streamed model responses.
public final class
ChatCompletionChunk.Choice.FinishReason
The reason the model stopped generating tokens. This will be
stop
if the model hit a natural stop point or a provided stop sequence,length
if the maximum number of tokens specified in the request was reached,content_filter
if content was omitted due to a flag from our content filters,tool_calls
if the model called a tool, orfunction_call
(deprecated) if the model called a function.public final class
ChatCompletionChunk.Choice.Logprobs
Log probability information for the choice.
-
Method Summary
Modifier and Type Method Description final ChatCompletionChunk.Choice.Delta
delta()
A chat completion delta generated by streamed model responses. final Optional<ChatCompletionChunk.Choice.FinishReason>
finishReason()
The reason the model stopped generating tokens. final Long
index()
The index of the choice in the list of choices. final Optional<ChatCompletionChunk.Choice.Logprobs>
logprobs()
Log probability information for the choice. final JsonField<ChatCompletionChunk.Choice.Delta>
_delta()
A chat completion delta generated by streamed model responses. final JsonField<ChatCompletionChunk.Choice.FinishReason>
_finishReason()
The reason the model stopped generating tokens. final JsonField<Long>
_index()
The index of the choice in the list of choices. final JsonField<ChatCompletionChunk.Choice.Logprobs>
_logprobs()
Log probability information for the choice. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionChunk.Choice
validate()
final ChatCompletionChunk.Choice.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionChunk.Choice.Builder
builder()
-
-
Method Detail
-
delta
final ChatCompletionChunk.Choice.Delta delta()
A chat completion delta generated by streamed model responses.
-
finishReason
final Optional<ChatCompletionChunk.Choice.FinishReason> finishReason()
The reason the model stopped generating tokens. This will be
stop
if the model hit a natural stop point or a provided stop sequence,length
if the maximum number of tokens specified in the request was reached,content_filter
if content was omitted due to a flag from our content filters,tool_calls
if the model called a tool, orfunction_call
(deprecated) if the model called a function.
-
logprobs
final Optional<ChatCompletionChunk.Choice.Logprobs> logprobs()
Log probability information for the choice.
-
_delta
final JsonField<ChatCompletionChunk.Choice.Delta> _delta()
A chat completion delta generated by streamed model responses.
-
_finishReason
final JsonField<ChatCompletionChunk.Choice.FinishReason> _finishReason()
The reason the model stopped generating tokens. This will be
stop
if the model hit a natural stop point or a provided stop sequence,length
if the maximum number of tokens specified in the request was reached,content_filter
if content was omitted due to a flag from our content filters,tool_calls
if the model called a tool, orfunction_call
(deprecated) if the model called a function.
-
_logprobs
final JsonField<ChatCompletionChunk.Choice.Logprobs> _logprobs()
Log probability information for the choice.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionChunk.Choice validate()
-
toBuilder
final ChatCompletionChunk.Choice.Builder toBuilder()
-
builder
final static ChatCompletionChunk.Choice.Builder builder()
-
-
-
-