New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openai-text-completions

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai-text-completions

A global npm package for generating text completions using the OpenAI API

1.1.15
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

openai-text-completions

A simple command-line tool for generating text using the OpenAI text completion API.

Installation

npm install -g openai-text-completions

Usage

First, you will need to obtain an API key from OpenAI. Once you have your key, you can set it using the key command:

openai-text-completions key <your-api-key>

You can then use the generate command to generate text, optionally specifying a model and temperature:

openai-text-completions generate <prompt> [model] [temperature]

If you have a file containing text that you would like to use as a prompt, you can use the generate-from-file command:

openai-text-completions generate-from-file <file> [model] [temperature]

License

MIT

FAQs

Package last updated on 26 Dec 2022

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