1.0.3 • Published 1 year ago

better-chatgpt v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

better-chatgpt

Unoffical ChatGPT Api

Based on reverse engineering work done by the python community and quickly ported to nodejs for a project 😉

Install

npm install better-chatgpt

Functionality

  • No moderation
  • Programmable.
  • Resume conversation
  • Rewind/undo
  • Email/password authentication
  • Cookie based authentication
  • Access Token authentication

Usage

Login via email and password

import { ChatGPT } from 'better-chatgpt';

const chat = new ChatGPT();
await chat.login('some@email.com', 'mypassword');

let response = await chat.getNextResponse('Hello, how are you?');
console.log(response);

response = await chat.getNextResponse('');

Use existing session/auth token

import { ChatGPT } from 'better-chatgpt';

const chat = new ChatGPT({
  Authorization: '<token>',
  sessionToken: '<token>'.
});

revert last response

chat.rollback()

WIP - More info to be added

TODO

  • Examples
  • Documentation
  • Proxies
  • Logging
  • Improve test conerage

Credits

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago