Enum StopReason
The reason the model stopped generating tokens. It is also called "finish_reason" in some APIs.
public enum StopReason
Fields
MaxTokens = 2The maximum number of tokens as specified in the request was reached.
None = 0Default value (Unused).
Other = 6Unknown reason.
Pause = 7THe model paused a long-running turn. You may provide the response back as-is in a subsequent request to let the model continue.
Recitation = 4The content was flagged for recitation reasons.
Safety = 3The content was flagged for safety reasons.
Stop = 1Natural stop point of the model or provided stop sequence.
ToolCalls = 5The model called a tool, or function_call.