Package com.openai.models
Class CompletionChoice.FinishReason
-
- All Implemented Interfaces:
-
com.openai.core.Enum
public final class CompletionChoice.FinishReason implements EnumThe 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCompletionChoice.FinishReason.Knownpublic enumCompletionChoice.FinishReason.Value
-
Field Summary
Fields Modifier and Type Field Description public final static CompletionChoice.FinishReasonSTOPpublic final static CompletionChoice.FinishReasonLENGTHpublic final static CompletionChoice.FinishReasonCONTENT_FILTER
-
Method Summary
Modifier and Type Method Description final JsonField<String>_value()final CompletionChoice.FinishReason.Valuevalue()final CompletionChoice.FinishReason.Knownknown()final StringasString()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CompletionChoice.FinishReasonof(String value)-
-
Method Detail
-
value
final CompletionChoice.FinishReason.Value value()
-
known
final CompletionChoice.FinishReason.Known known()
-
of
final static CompletionChoice.FinishReason of(String value)
-
-
-
-