0.1.5 • Published 9 months ago

openpluginclient v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

NPM openpluginclient

This outsources the request to an OpenPlugin API that uses openpluginclient, so you dont need to worry about the OpenAI api key.

Quickstart

  1. Install openpluginclient
npm install openpluginclient
  1. Start using openpluginclient in your project
import {openpluginCompletion} from 'openpluginclient'

const pluginName = "ByByAI" // enter plugin "Namespace" as written on PLUGINS.md 
const completion = await openpluginCompletion({
  earlyAccessToken: "__extra__-c22a34e2-89a8-48b2-8474-c664b577526b", // (required)
  pluginName: pluginName, // optional
  model: "gpt-3.5-turbo-0613", // optional
  messages: [ // regular ChatGPT messages argument (required)
      {
          "role": "user",
          "content": "Show me a Best Amazon products for puzzles"
      }
  ],
  temperature: 0, // optional
  // ...other openai.ChatCompletion.create arguments
})

// print as prettified JSON
console.log(completion)
0.1.5

9 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.0

11 months ago