Class ChatCompletionChunk.Choice
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionChunk.Choice.Builderpublic final classChatCompletionChunk.Choice.DeltaA chat completion delta generated by streamed model responses.
public final classChatCompletionChunk.Choice.FinishReasonThe reason the model stopped generating tokens. This will be
stopif the model hit a natural stop point or a provided stop sequence,lengthif the maximum number of tokens specified in the request was reached,content_filterif content was omitted due to a flag from our content filters,tool_callsif the model called a tool, orfunction_call(deprecated) if the model called a function.public final classChatCompletionChunk.Choice.LogprobsLog probability information for the choice.
-
Method Summary
Modifier and Type Method Description final ChatCompletionChunk.Choice.Deltadelta()A chat completion delta generated by streamed model responses. final Optional<ChatCompletionChunk.Choice.FinishReason>finishReason()The reason the model stopped generating tokens. final Longindex()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.Choicevalidate()final ChatCompletionChunk.Choice.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionChunk.Choice.Builderbuilder()-
-
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
stopif the model hit a natural stop point or a provided stop sequence,lengthif the maximum number of tokens specified in the request was reached,content_filterif content was omitted due to a flag from our content filters,tool_callsif 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
stopif the model hit a natural stop point or a provided stop sequence,lengthif the maximum number of tokens specified in the request was reached,content_filterif content was omitted due to a flag from our content filters,tool_callsif 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()
-
-
-
-