Class CompletionChoice
-
- All Implemented Interfaces:
public final class CompletionChoice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCompletionChoice.Builderpublic 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()The reason the model stopped generating tokens. final JsonField<Long>_index()final JsonField<CompletionChoice.Logprobs>_logprobs()final JsonField<String>_text()final Map<String, JsonValue>_additionalProperties()final CompletionChoicevalidate()final CompletionChoice.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CompletionChoice.Builderbuilder()-
-
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()
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 JsonField<CompletionChoice.Logprobs> _logprobs()
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final CompletionChoice validate()
-
toBuilder
final CompletionChoice.Builder toBuilder()
-
builder
final static CompletionChoice.Builder builder()
-
-
-
-