Class CompletionChoice
-
- All Implemented Interfaces:
public final class CompletionChoice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCompletionChoice.BuilderA builder for CompletionChoice.
public final classCompletionChoice.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, orcontent_filterif content was omitted due to a flag from our content filters.public final classCompletionChoice.Logprobs
-
Method Summary
Modifier and Type Method Description final CompletionChoice.FinishReasonfinishReason()The reason the model stopped generating tokens. final Longindex()final Optional<CompletionChoice.Logprobs>logprobs()final Stringtext()final JsonField<CompletionChoice.FinishReason>_finishReason()Returns the raw JSON value of finishReason. final JsonField<Long>_index()Returns the raw JSON value of index. final JsonField<CompletionChoice.Logprobs>_logprobs()Returns the raw JSON value of logprobs. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final CompletionChoice.BuildertoBuilder()final CompletionChoicevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CompletionChoice.Builderbuilder()Returns a mutable builder for constructing an instance of CompletionChoice. -
-
Method Detail
-
finishReason
final CompletionChoice.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, orcontent_filterif content was omitted due to a flag from our content filters.
-
logprobs
final Optional<CompletionChoice.Logprobs> logprobs()
-
_finishReason
final JsonField<CompletionChoice.FinishReason> _finishReason()
Returns the raw JSON value of finishReason.
Unlike finishReason, this method doesn't throw if the JSON field has an unexpected type.
-
_index
final JsonField<Long> _index()
Returns the raw JSON value of index.
Unlike index, this method doesn't throw if the JSON field has an unexpected type.
-
_logprobs
final JsonField<CompletionChoice.Logprobs> _logprobs()
Returns the raw JSON value of logprobs.
Unlike logprobs, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CompletionChoice.Builder toBuilder()
-
validate
final CompletionChoice validate()
-
builder
final static CompletionChoice.Builder builder()
Returns a mutable builder for constructing an instance of CompletionChoice.
The following fields are required:
.finishReason() .index() .logprobs() .text()
-
-
-
-