Package Exports
- chatbox-dev-ai
- chatbox-dev-ai/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chatbox-dev-ai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
# 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);