Skip to main content
Module

x/openai/resources/moderations.ts>Moderation

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
namespace Moderation
import { Moderation } from "https://deno.land/x/openai@v4.19.0/resources/moderations.ts";

Interfaces

A list of the categories, and whether they are flagged or not.

A list of the categories along with their scores as predicted by model.

interface Moderation
import { type Moderation } from "https://deno.land/x/openai@v4.19.0/resources/moderations.ts";

Properties

A list of the categories, and whether they are flagged or not.

category_scores: Moderation.CategoryScores

A list of the categories along with their scores as predicted by model.

flagged: boolean

Whether the content violates OpenAI's usage policies.