@song940/chatgpt-api

0.0.2 • Public • Published

@song940/chatgpt-api

ChatGPT API in Node.js

Installation

~$ npm i @song940/chatgpt-api --save

Example

import { ChatGPT } from '@song940/chatgpt-api';

(async () => {
  const chat = new ChatGPT({
    sessionToken: `session token of cookies in browser`,
  })
  const answer = await chat.getAnswer("hello world");
  console.log(answer);
})();

License

This project is licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @song940/chatgpt-api

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

9.98 kB

Total Files

6

Last publish

Collaborators

  • song940