kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
style: prettier code
rodzic
79a9d50ec0
commit
de78787bc9
|
@ -37,7 +37,7 @@ async function main() {
|
||||||
'Unique name for the conversation'
|
'Unique name for the conversation'
|
||||||
)
|
)
|
||||||
.action(async (prompt, options) => {
|
.action(async (prompt, options) => {
|
||||||
const apiOrg = options.apiOrg|| process.env.OPENAI_API_ORG
|
const apiOrg = options.apiOrg || process.env.OPENAI_API_ORG
|
||||||
const apiKey = options.apiKey || process.env.OPENAI_API_KEY
|
const apiKey = options.apiKey || process.env.OPENAI_API_KEY
|
||||||
if (!apiKey) {
|
if (!apiKey) {
|
||||||
console.error('error: either set OPENAI_API_KEY or use --apiKey\n')
|
console.error('error: either set OPENAI_API_KEY or use --apiKey\n')
|
||||||
|
|
Ładowanie…
Reference in New Issue