@ab6162/simple-chatgpt-wrapper
v0.0.56
Published
A simple npm package to perform requests automatically as a user on the ChatGPT OpenAI page.
Downloads
1,247
Maintainers
Readme
simple-chatgpt-wrapper
A simple npm package to perform requests automatically as a user on the ChatGPT OpenAI page.
Install
Package managers
npm: npm i @ab6162/simple-chatgpt-wrapper
Usage
Using this package is so easy, just pass it the user credentials you use in the OpenAI ChatGPT platform and the magic will happen.
This is a fully functional initial version for those who want to connect some kind of service in NodeJS. It's recommended to keep the timeouts as they're to avoid possible bans.
This package doesn't collect any kind of data, which you can see in the source code published in GitHub
This is an example code for use:
const chatgpt = require('@ab6162/simple-chatgpt-wrapper');
(async () => {
//user and password here
const statusLogin = await chatgpt.login('[email protected]', 'xxxx');
//verify that the answer is not null
if (statusLogin) {
//send a request and wait the response in raw format.
var response = await chatgpt.sendMessage('¿Hello, how are you?');
console.log(response);
response = await chatgpt.sendMessage('Give me five names...');
console.log(response);
} else {
console.log('Login failed!');
}
})();
Issues
If there are any bugs or questions open a new issue
License
MIT