ai-speak
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

ai-speak

Profanity filter, based on openai api chat gpt interpretations.

PS - this package is ongoing testing playground.

Installation


// npm
npm install ai-speak

Example usage for npm

import { aiJudgement } from 'ai-speak';

await aiJudgement(
  process.env.CHAT_GPT_MODEL,
  process.env.API_KEY,
  'Tom brady is not the best quarterback'
)
  .then((res) => console.log(res))
  .catch((err) => console.error(err));

Responses

if chatGPT believes the string needs to be censored it will return its reasoning

'Censor, followed by reasoning'

otherwise respond with false

'false'

Readme

Keywords

none

Package Sidebar

Install

npm i ai-speak

Weekly Downloads

11

Version

1.0.8

License

ISC

Unpacked Size

42.8 kB

Total Files

10

Last publish

Collaborators

  • kittyturbo