AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class ModerationOptions

    Configuration options for chat moderation.

    Inheritance
    object
    ModerationOptions
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class ModerationOptions

    Properties

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Model

    Optional. Custom moderation model to use. This will be ignored for Google API calls because Google has its own moderation process.

    Declaration
    public Model Model { get; set; }
    Property Value
    Type Description
    Model

    SafetySettings

    A list of unique SafetySetting instances for blocking unsafe content. that will be enforced on the GenerateTextRequest.prompt and GenerateTextResponse.candidates. There should not be more than one setting for each SafetyCategory type. The API will block any prompts and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each SafetyCategory specified in the safetySettings. If there is no SafetySetting for a given SafetyCategory provided in the list, the API will use the default safety setting for that category.

    Declaration
    public List<SafetySetting> SafetySettings { get; set; }
    Property Value
    Type Description
    List<SafetySetting>
    In this article
    Back to top Generated by DocFX