chatbox-dev-ai

1.0.1 • Public • Published
# chatbox-dev-ai

Interact with Chatterbox AI using this NPM package.

## Installation

```bash
npm install chatbox-dev-ai

To Chat With ChatterBox

const { chatbox } = require('chatbox-dev-ai');

const userId = 'userID'; // Replace with actual user ID
const query = 'How does nuclear fusion work?';

chatbox(userId, query)
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });

To toggle websearch

const { toggle } = require('chatbox-dev-ai');

const message = toggle();
console.log(message);

To Reset Conversation

const { clear } = require('chatbox-dev-ai');

const userId = 'user123'; // replace this according to userID you want to reset conversation.
const message = clear(userId);
console.log(message);

Package Sidebar

Install

npm i chatbox-dev-ai

Weekly Downloads

92

Version

1.0.1

License

MIT

Unpacked Size

21.4 kB

Total Files

3

Last publish

Collaborators

  • lkpanio25