Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gpt3

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpt3

A simple CLI tool to interface with OpenAI's beta API

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

GPT3 CLI API

A simple NodeJS wrapper library and CLI to interface with OpenAI's Beta API. Written in Typescript.

Requirements

When using the CLI, the API key and secret key must be defined in your environment under OPENAI_KEY and OPENAI_SECRET_KEY respectively.

When using this package as a library, you may either provide the keys in the environment as above, or provide them as a final auth parameter.

Installation

If CLI:

npm i -g gpt3

If programmatic:

npm i gpt3

CLI Usage

You pass in the starter text as the first parameter, and the tool returns the completion.

> gpt3 "Once upon a time, there was a thing..."

"Once upon a time, there was a thing that did this, etc, foobar."

Programmatic Usage

import { getCompletion } from "gpt3";

const result = await getCompletion("Once upon a time, ");

// etc.

Limitations and Future Work

Features not supported, but which I eventually plan to:

  • Streaming
  • Simple filtering, optional clean-up logic
  • Automatic truth checking
  • Search API
  • Fine-tuning API (Once it comes out)
  • Pre-selected prompt generation logic

Keywords

FAQs

Package last updated on 21 Jul 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc