1.0.3 • Published 8 months ago
getchatgpt v1.0.3
Introduction
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.
Getting Started
Here are instructions on how you can get started.
Prerequisites
You must have openai labs api key credentials before you can get going. Get one from openaichatgpt
Installation
# Npm
npm install openai
npm install getchatgpt
# yarn
yarn add openai
yarn add getchatgpt
# pnpm
pnpm add openai
pnpm add getchatgpt
Usage
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()
Authors
- Roshan K.C - Initial work - roshankcpkr
License
This project is licensed under the MIT License - see the LICENSE.md file for details