Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OpenAIHandler

import type { OpenAIHandler } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";

Callback for fine control over the policy. It contains the event and the OpenAI moderation data. Implementations should return true to reject the content, and false to accept.

type OpenAIHandler = (event: Event, data: ModerationData) => boolean;

§Type

§
(event: Event, data: ModerationData) => boolean
[src]