From 8379e5eff60909cb8e6cc8d7b310bc8f5202cb09 Mon Sep 17 00:00:00 2001 From: shulandmimi Date: Sun, 5 Mar 2023 15:14:06 +0800 Subject: [PATCH] fix: can't use apiKey flag --- legacy/bin/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/bin/cli.js b/legacy/bin/cli.js index 4692bf89..7518623a 100755 --- a/legacy/bin/cli.js +++ b/legacy/bin/cli.js @@ -30,7 +30,7 @@ async function main() { default: true }) .option('-t, --timeout', 'Timeout in milliseconds') - .option('-k, --apiKey', 'OpenAI API key') + .option('-k, --apiKey [apiKey]', 'OpenAI API key') .option('-n, --conversationName', 'Unique name for the conversation') .action(async (prompt, options) => { const apiKey = options.apiKey || process.env.OPENAI_API_KEY