Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai/resources/mod.ts>Moderation.CategoryAppliedInputTypes

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface Moderation.CategoryAppliedInputTypes
import { type Moderation } from "https://deno.land/x/openai@v4.66.1/resources/mod.ts";
const { CategoryAppliedInputTypes } = Moderation;

A list of the categories along with the input type(s) that the score applies to.

Properties

harassment: Array<"text">

The applied input type(s) for the category 'harassment'.

harassment/threatening: Array<"text">

The applied input type(s) for the category 'harassment/threatening'.

hate: Array<"text">

The applied input type(s) for the category 'hate'.

hate/threatening: Array<"text">

The applied input type(s) for the category 'hate/threatening'.

illicit: Array<"text">

The applied input type(s) for the category 'illicit'.

illicit/violent: Array<"text">

The applied input type(s) for the category 'illicit/violent'.

self-harm: Array<"text" | "image">

The applied input type(s) for the category 'self-harm'.

self-harm/instructions: Array<"text" | "image">

The applied input type(s) for the category 'self-harm/instructions'.

self-harm/intent: Array<"text" | "image">

The applied input type(s) for the category 'self-harm/intent'.

sexual: Array<"text" | "image">

The applied input type(s) for the category 'sexual'.

sexual/minors: Array<"text">

The applied input type(s) for the category 'sexual/minors'.

violence: Array<"text" | "image">

The applied input type(s) for the category 'violence'.

violence/graphic: Array<"text" | "image">

The applied input type(s) for the category 'violence/graphic'.