fix: can't use apiKey flag

pull/433/head
shulandmimi 2023-03-05 15:14:06 +08:00
rodzic 0ed1ad0035
commit 7921b52446
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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