1.0.1 • Published 1 year ago

@tockawa/openai-plugin v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

OpenAI Plugin Node.js Library

PROJECT IN EARLY DEVELOPMENT

A simple modification in the official OpenAI module that gives the possibility to use plugins that follow the OpenAI standards together with the API.

Important note: this library is meant for server-side usage only, as using it in client-side browser code will expose your secret API key. See here for more details.

Installation

npm install @tockawa/openai-plugin

Usage

The library needs to be configured with your account's secret api key, which is available on the website. We recommend setting as an environment variable due to the security risk of having it in your source code.

You can find examples of how to use the library in the examples directory.

Check out the full API documentation for examples of all the available functions.

TODO

  • support to auth
  • support to all openapi versions
  • support to predefined variables(like $userId)
  • debug mode
  • token management
  • Fix method in sdk generation
  • make tamplates and handles more modular

Thanks

Thank you to ceifa for creating and maintaining the original unofficial openai npm package before we released this official library! ceifa's original package has been renamed to gpt-x.

1.0.1

1 year ago

1.0.0

1 year ago