This package enables you to use chatGpt in your application without worrying about underlying methods. You can get api key from openai labs and get started in a minute.
Here are instructions on how you can get started.
You must have openai labs api key credentials before you can get going. Get one from openaichatgpt
# Npm
npm install openai
npm install getchatgpt
# yarn
yarn add openai
yarn add getchatgpt
# pnpm
pnpm add openai
pnpm add getchatgpt
const gptapi = require('getchatgpt')
const myGpt = new gptapi({
apiKey: process.env.OPEN_AI_API,
})
async function myFunction()
{
const myResponse = await myGpt.answer("who made tesla?")
console.log(myResponse)
}
myFunction()
- Roshan K.C - Initial work - roshankcpkr
This project is licensed under the MIT License - see the LICENSE.md file for details