kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
Merge pull request #433 from shulandmimi/main
commit
0f1417f235
|
@ -30,7 +30,7 @@ async function main() {
|
||||||
default: true
|
default: true
|
||||||
})
|
})
|
||||||
.option('-t, --timeout', 'Timeout in milliseconds')
|
.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')
|
.option('-n, --conversationName', 'Unique name for the conversation')
|
||||||
.action(async (prompt, options) => {
|
.action(async (prompt, options) => {
|
||||||
const apiKey = options.apiKey || process.env.OPENAI_API_KEY
|
const apiKey = options.apiKey || process.env.OPENAI_API_KEY
|
||||||
|
|
Ładowanie…
Reference in New Issue