1.0.3 • Published 8 months ago

getchatgpt v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

1.0.3

8 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago