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;