AI DevKit
Search Results for

    Show / Hide Table of Contents

    Enum StopReason

    Reason that a ChatCompletion request stopped generating tokens.

    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public enum StopReason

    Fields

    Name Description
    MaxTokens

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

    None

    Default value (Unused).

    Other

    Unknown reason.

    Pause

    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

    The content was flagged for recitation reasons.

    Safety

    The content was flagged for safety reasons.

    Stop

    Natural stop point of the model or provided stop sequence.

    ToolCalls

    The model called a tool, or function_call.

    In this article
    Back to top Generated by DocFX