Table of Contents

Class ModerationsRequest

Namespace
OpenAI.Moderations
Assembly
OpenAI-DotNet.dll

Given a input text, outputs if the model classifies it as violating OpenAI's content policy.

public sealed class ModerationsRequest
Inheritance
ModerationsRequest
Inherited Members

Constructors

ModerationsRequest(string, string)

Constructor.

[JsonConstructor]
public ModerationsRequest(string input, string model = null)

Parameters

input string

The input text to classify.

model string

The default is text-moderation-latest which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use text-moderation-stable, we will provide advanced notice before updating the model. Accuracy of text-moderation-stable may be slightly lower than for text-moderation-latest.

Properties

Input

[JsonPropertyName("input")]
public string Input { get; }

Property Value

string

Model

[JsonPropertyName("model")]
public string Model { get; }

Property Value

string