openai-text-completions
Advanced tools
Comparing version
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", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2417
66.8%3
50%37
5.71%1
-50%39
Infinity%