File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ import { ChatGPTAPI, getOpenAIAuth } from 'chatgpt'
59
59
async function example() {
60
60
// use puppeteer to bypass cloudflare (headful because of captchas)
61
61
const openAIAuth = await getOpenAIAuth ({
62
- email: process .env .EMAIL ,
63
- password: process .env .EMAIL
62
+ email: process .env .OPENAI_EMAIL ,
63
+ password: process .env .OPENAI_PASSWORD
64
64
})
65
65
66
66
const api = new ChatGPTAPI ({ ... openAIAuth })
@@ -121,8 +121,8 @@ async function example() {
121
121
const { ChatGPTAPI , getOpenAIAuth } = await import (' chatgpt' )
122
122
123
123
const openAIAuth = await getOpenAIAuth ({
124
- email: process .env .EMAIL ,
125
- password: process .env .EMAIL
124
+ email: process .env .OPENAI_EMAIL ,
125
+ password: process .env .OPENAI_PASSWORD
126
126
})
127
127
128
128
const api = new ChatGPTAPI ({ ... openAIAuth })
You can’t perform that action at this time.
0 commit comments