Package com.openai.models
Class CompletionChoice.FinishReason
-
- All Implemented Interfaces:
-
com.openai.core.Enum
public final class CompletionChoice.FinishReason implements Enum
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
CompletionChoice.FinishReason.Known
public enum
CompletionChoice.FinishReason.Value
-
Field Summary
Fields Modifier and Type Field Description public final static CompletionChoice.FinishReason
STOP
public final static CompletionChoice.FinishReason
LENGTH
public final static CompletionChoice.FinishReason
CONTENT_FILTER
-
Method Summary
Modifier and Type Method Description final JsonField<String>
_value()
final CompletionChoice.FinishReason.Value
value()
final CompletionChoice.FinishReason.Known
known()
final String
asString()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CompletionChoice.FinishReason
of(String value)
-
-
Method Detail
-
value
final CompletionChoice.FinishReason.Value value()
-
known
final CompletionChoice.FinishReason.Known known()
-
of
final static CompletionChoice.FinishReason of(String value)
-
-
-
-