Merge pull request #189 from danielehrhardt/nopechaKey

chatgpt-api-old-v3
Travis Fischer 2022-12-22 10:32:21 -06:00 zatwierdzone przez GitHub
commit 68119a5e43
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -22,6 +22,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
protected _isGoogleLogin: boolean
protected _isMicrosoftLogin: boolean
protected _captchaToken: string
protected _nopechaKey: string
protected _accessToken: string
protected _email: string
@ -57,6 +58,9 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
/** @defaultValue `undefined` **/
captchaToken?: string
/** @defaultValue `undefined` **/
nopechaKey?: string
/** @defaultValue `undefined` **/
executablePath?: string
@ -74,6 +78,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
isMicrosoftLogin = false,
minimize = true,
captchaToken,
nopechaKey,
executablePath,
proxyServer
} = opts
@ -87,6 +92,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
this._isMicrosoftLogin = !!isMicrosoftLogin
this._minimize = !!minimize
this._captchaToken = captchaToken
this._nopechaKey = nopechaKey
this._executablePath = executablePath
this._proxyServer = proxyServer
@ -111,6 +117,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
try {
this._browser = await getBrowser({
captchaToken: this._captchaToken,
nopechaKey: this._nopechaKey,
executablePath: this._executablePath,
proxyServer: this._proxyServer,
minimize: this._minimize