Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@sl-code-lords/openai-chatgpt

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sl-code-lords/openai-chatgpt

Open AI chatgpt - API

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
4
Created
Source

YT5S

OpenAI chatGPT - API

📝 Table of Contents

🧐 About

API [https://openai.com/]

🏁 Getting Started

This project was created using chatgpt 3.5 edition You can find your API key at https://platform.openai.com/account/api-keys

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.

Keywords

openai

FAQs

Package last updated on 23 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts