Package com.azure.ai.openai.models
Class CompletionsFinishReason
java.lang.Object
com.azure.core.util.ExpandableStringEnum<CompletionsFinishReason>
com.azure.ai.openai.models.CompletionsFinishReason
public final class CompletionsFinishReason
extends com.azure.core.util.ExpandableStringEnum<CompletionsFinishReason>
Representation of the manner in which a completions response concluded.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CompletionsFinishReasonCompletions generated a response that was identified as potentially sensitive per content moderation policies.static final CompletionsFinishReasonCompletion ended normally, with the model requesting a function to be called.static final CompletionsFinishReasonCompletions ended normally and reached its end of token generation.static final CompletionsFinishReasonCompletions exhausted available token limits before generation could complete. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionsFinishReasonfromString(String name) Creates or finds a CompletionsFinishReason from its string representation.static Collection<CompletionsFinishReason>values()Gets known CompletionsFinishReason values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
STOPPED
Completions ended normally and reached its end of token generation. -
TOKEN_LIMIT_REACHED
Completions exhausted available token limits before generation could complete. -
CONTENT_FILTERED
Completions generated a response that was identified as potentially sensitive per content moderation policies. -
FUNCTION_CALL
Completion ended normally, with the model requesting a function to be called.
-
-
Constructor Details
-
CompletionsFinishReason
Deprecated.Use thefromString(String)factory method.Creates a new instance of CompletionsFinishReason value.
-
-
Method Details
-
fromString
Creates or finds a CompletionsFinishReason from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding CompletionsFinishReason.
-
values
Gets known CompletionsFinishReason values.- Returns:
- known CompletionsFinishReason values.
-
fromString(String)factory method.