AI Moderation

AI moderation is a tool that Uses AI to Auto Moderate your chat, You can make it censor, block, or ignore the message based on the level of a threat! and it checks them before it sends it out.

AS A FINAL WARNING, YOU MUST PAY $5 MINIMUM TO USE THIS FEATURE AND THATS IT! AFTER THAT YOU'RE ALL GOOD!!! THIS ISNT MY FAULT, THIS IS OPENAI's FAULT.

I might in the future enable AI Moderation To use MY API key so you wouldn't have to pay a dime, but until further notice, you'll have to provide one as i cannot afford many people use the same API Key.

I also might add more AI Models, NOT by OpenAI, maybe other "Free" Options

How To Use AI Moderation?

1

Enabling The Feature

First, you need to go inside the ai_moderation.yml and enable it

# EasyChat AI Moderation Configuration

# This file configures AI-powered moderation for chat messages
# Using OpenAI's Moderation API (which is free to use)

# Whether AI moderation is enabled
enabled: true
2

Getting The API Key

  1. Visit platform.openai.com and Login/Signup to the site

  2. Create an Organization If you do not have one

  3. Generate A New Key

  4. Copy The Key AND DO NOT SHARE IT WITH ANYONE ELSE!!

  5. You Must Go To Settings > Billing > Overview And Press the Add Payment Details Button

  6. Add your details, and pay (MINIMUM OF $5) to allow OpenAI to activate your Key!

3

Loading Up The AI

On the config, Replace the your-api-key-here With Your actual Key

openai:
  # Your OpenAI API key - KEEP THIS PRIVATE!
  api_key: 'your-api-key-here'
  # API URL for the moderation endpoint
  url: 'https://api.openai.com/v1/moderations'
  # Moderation model to use - omni-moderation-latest is newer and recommended over text-moderation-latest
  model: 'omni-moderation-latest'
  # Timeout in milliseconds (increased to handle slow connections)
  timeout_ms: 10000
  # Enable detailed API debugging (logs request/response details)
  debug: true

Keep The url: The Same, and keep the model the same UNLESS YOU KNOW WHAT YOU'RE DOING!

Available Models:

  • omni-moderation-latest: This model and all snapshots support more categorization options and multi-modal inputs.

  • text-moderation-latest (Legacy): Older model that supports only text inputs and fewer input categorizations. The newer omni-moderation models will be the best choice for new applications.

More Information About OpenAI's Moderation API here

4

Restarting The Server

Reload the plugin or restart the Server to enable the AI features

5

6

Perfect! If you enabled the AI, Enjoy it!

Here is a preview of it working Properly:

OPPED players and players with easychat.bypass.aimoderation Bypass AI detection and their message get sent INSTANTLY

Last updated