1.0.8 • Published 8 months ago

ai-speak v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

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'
1.0.8

8 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago