Skip to content

SL-CODE-LORDS/openai-chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

YT5S

OpenAI chatGPT - API

📝 Table of Contents

🧐 About

API [https://openai.com/]

🏁 Getting Started

This project was created using chatgpt 3.5 edition

Installing

yarn add @sl-code-lords/openai-chatgpt

or

npm i @sl-code-lords/openai-chatgpt

🎈 Usage

const openai = require("@sl-code-lords/openai-chatgpt")
var result = await openai.chatgpt({api_key: "your_chatgpt_api", message: "Hello World!"})
//result

{
  status: true,
  code_creator: { name: 'Sisula Welgamage', github: '@sisula' },
  result: {
    model: 'gpt-3.5-turbo-0613',
    created: 1690112224,
    message: 'Hello! How can I assist you today?'
  }
}

New Chat | Reset Session

await openai.reset_session()

✍️ Authors

See also the list of contributors who participated in this project.

About

Open AI chatgpt - API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published