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 - npm Package Compare versions

Comparing version

to
1.0.4

README.me

14

index.js

@@ -31,10 +31,14 @@ #!/usr/bin/env node

program
.command('key <key>')
.description('Set the API key')
.action(function (key) {
apiKey = key;
console.log(`API key set to ${apiKey}`);
});
program
.arguments('<prompt>')
.option('-k, --key <key>', 'API key')
.action(function (prompt) {
if (program.key) {
apiKey = program.key;
}
generateTextCompletions(prompt);
})
.parse(process.argv);
.parse(process.argv);
{
"name": "openai-text-completions",
"version": "1.0.2",
"version": "1.0.4",
"description": "A global npm package for generating text completions using the OpenAI API",

@@ -5,0 +5,0 @@ "main": "index.js",