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

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

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface Moderation.CategoryScores
import { type Moderation } from "https://deno.land/x/openai@v4.69.0/resources/mod.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'.

illicit: number

The score for the category 'illicit'.

illicit/violent: number

The score for the category 'illicit/violent'.

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'.