Table of Contents

Enum StopReason

Namespace
Glitch9.AIDevKit

The reason the model stopped generating tokens. It is also called "finish_reason" in some APIs.

public enum StopReason

Fields

MaxTokens = 2

The maximum number of tokens as specified in the request was reached.

None = 0

Default value (Unused).

Other = 6

Unknown reason.

Pause = 7

THe model paused a long-running turn. You may provide the response back as-is in a subsequent request to let the model continue.

Recitation = 4

The content was flagged for recitation reasons.

Safety = 3

The content was flagged for safety reasons.

Stop = 1

Natural stop point of the model or provided stop sequence.

ToolCalls = 5

The model called a tool, or function_call.