0.0.2 • Published 2 years ago
@song940/chatgpt-api v0.0.2
@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.