🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

@paulkinlan/openai-breadboard-kit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paulkinlan/openai-breadboard-kit

A Kit that allows you to build Breadboard graphs for OpenAI.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

"Google Labs Breadboard" Kit for the OpenAI API

The OpenAI Breadboard Kit is a collection of Breadboard nodes that are helpful for building LLM-based (Generative AI) applications using the OpenAI API.

Installing

OpenAI Breadboard Kit requires Node version >=v19.0.0. To install:

npm install @paulkinlan/openai-breadboard-kit

Node Types

Here are all node handlers that are included in the OpenAI Breadboard Kit

The generateCompletion node

This is an OpenAI API text completion node. To produce useful output, the node needs an OPENAI_API_KEY input and the text input and the model to run it against.

Example:

Given this input:

{
  "OPENAI_API_KEY": "<your API key>",
  "text": "How much wood can a woodchuck chuck?"
}

The node will produce this output:

{
  "completion": "The exact amount a woodchuck can chuck is unknown, but it is believed that they can chuck about 700 pounds of wood in a day."
}

Inputs:

  • OPENAI_API_KEY required, must contain the OpenAI API key.
  • text required, sent as the prompt for the completion.
  • model the name of the model OpenAI that you want to use.

Outputs:

  • completion - result of the OpenAI API text completion.

FAQs

Package last updated on 20 Oct 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