1.0.8 • Published 2 years ago

ai-speak v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago