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

x/openai/resources/moderations.ts>Moderation.CategoryScores

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

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

Properties

harassment: number

The score for the category 'harassment'.

harassment/threatening: number

The score for the category 'harassment/threatening'.

hate: number

The score for the category 'hate'.

hate/threatening: number

The score for the category 'hate/threatening'.

self-harm: number

The score for the category 'self-harm'.

self-harm/instructions: number

The score for the category 'self-harm/instructions'.

self-harm/intent: number

The score for the category 'self-harm/intent'.

sexual: number

The score for the category 'sexual'.

sexual/minors: number

The score for the category 'sexual/minors'.

violence: number

The score for the category 'violence'.

violence/graphic: number

The score for the category 'violence/graphic'.