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.0.6
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

openai-text-completions

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

Installation

To install the package globally, run the following command:

npm install -g openai-text-completions

Usage

To generate a text completion, run the following command:

openai-text-completions "The quick brown fox"

This will generate a text completion based on the provided prompt and the default model and temperature and print it to the terminal.

To set the API key, run the following command:

openai-text-completions key YOUR_API_KEY

To check if the API key has been set correctly, run the following command:

openai-text-completions check-key

Options

  • -k, --key <key>: Specify a new API key.

License

This package is released under the ISC license.

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