Class CompletionChoice
-
- All Implemented Interfaces:
public final class CompletionChoice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CompletionChoice.Builder
public final class
CompletionChoice.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, orcontent_filter
if content was omitted due to a flag from our content filters.public final class
CompletionChoice.Logprobs
-
Method Summary
Modifier and Type Method Description final CompletionChoice.FinishReason
finishReason()
The reason the model stopped generating tokens. final Long
index()
final Optional<CompletionChoice.Logprobs>
logprobs()
final String
text()
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 CompletionChoice
validate()
final CompletionChoice.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CompletionChoice.Builder
builder()
-
-
Method Detail
-
finishReason
final CompletionChoice.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, orcontent_filter
if 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
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, orcontent_filter
if 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()
-
-
-
-