kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
fix: cli apiKey
rodzic
0f1417f235
commit
785a61f742
|
@ -30,8 +30,11 @@ async function main() {
|
|||
default: true
|
||||
})
|
||||
.option('-t, --timeout', 'Timeout in milliseconds')
|
||||
.option('-k, --apiKey [apiKey]', 'OpenAI API key')
|
||||
.option('-n, --conversationName', 'Unique name for the conversation')
|
||||
.option('-k, --apiKey <apiKey>', 'OpenAI API key')
|
||||
.option(
|
||||
'-n, --conversationName <conversationName>',
|
||||
'Unique name for the conversation'
|
||||
)
|
||||
.action(async (prompt, options) => {
|
||||
const apiKey = options.apiKey || process.env.OPENAI_API_KEY
|
||||
if (!apiKey) {
|
||||
|
|
Ładowanie…
Reference in New Issue