Skip to content

Releases: utilityfueled/content-checker

OpenAI Moderation API Integration

20 May 06:56
b1f4e8d
Compare
Choose a tag to compare
  • OpenAI opened up their Moderation API, even if not using their AI models! I've integrated it into content-checker. To use it, specify "openai" in a new config object like this...see the README for details:
const config = {
  checkManualProfanityList: true,
  provider: "openai",
};

filter.isProfaneAI("your string here", config).then((response) => {
  if (response.profane) {
    console.log("Profanity found. Types: ", response.type.join(", "));
  } else {
    console.log("No profanity found");
  }
});
  • I'll work on adding the above to the demo repos

ESM & CommonJS Compatibility

19 May 01:42
7750c10
Compare
Choose a tag to compare
  • Added tsup for bundling so content-checker now works in ESM and CommonJS
  • Created a sample vanilla JS implementation in another repo: https://github.com/utilityfueled/vanilla-js-demo
  • More tests, better regex for non-AI filtering
  • badword.ts renamed to filter.ts

1.0.9

08 Jan 03:09
Compare
Choose a tag to compare

README.md edits, include src files in npm distribution

1.0.8

05 Jan 00:51
Compare
Choose a tag to compare

Fixes redirection bug caused by not using www before the API base URL (www.openmoderator.com is correct, openmoderator.com is not)

1.0.7

02 Jan 06:46
Compare
Choose a tag to compare

Versioning with CI working

Fix versioning

02 Jan 06:18
Compare
Choose a tag to compare
1.0.6

versioning

✅ Image moderation

02 Jan 06:09
Compare
Choose a tag to compare

Adds the isImageNSFW method and documentation