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

x/openai/src/types.ts>Moderation

Unofficial Deno wrapper for the Open Ai api
Extremely Popular
Go to Latest
interface Moderation
import { type Moderation } from "https://deno.land/x/openai@1.4.2/src/types.ts";

Properties

id: string
model: string
results: { categories: { hate: boolean; hate/threatening: boolean; self-harm: boolean; sexual: boolean; sexual/minors: boolean; violence: boolean; violence/graphic: boolean; }; category_scores: { hate: number; hate/threatening: number; self-harm: number; sexual: number; sexual/minors: number; violence: number; violence/graphic: number; }; flagged: boolean; }[]