0.0.2 • Published 1 year ago

@song940/chatgpt-api v0.0.2

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

@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.