Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/mod.ts>ModerationCreateParams

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface ModerationCreateParams
import { type ModerationCreateParams } from "https://deno.land/x/openai@v4.29.0/resources/mod.ts";

Properties

input: string | Array<string>

The input text to classify

optional
model: (string & { }) | "text-moderation-latest" | "text-moderation-stable"

Two content moderations models are available: text-moderation-stable and text-moderation-latest.

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.