Commit 3b4e59aa authored by Travis Fischer's avatar Travis Fischer Committed by GitHub

Merge pull request #189 from danielehrhardt/nopechaKey

parents 9a2fce21 257c23b0
...@@ -22,6 +22,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI { ...@@ -22,6 +22,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
protected _isGoogleLogin: boolean protected _isGoogleLogin: boolean
protected _isMicrosoftLogin: boolean protected _isMicrosoftLogin: boolean
protected _captchaToken: string protected _captchaToken: string
protected _nopechaKey: string
protected _accessToken: string protected _accessToken: string
protected _email: string protected _email: string
...@@ -56,6 +57,9 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI { ...@@ -56,6 +57,9 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
/** @defaultValue `undefined` **/ /** @defaultValue `undefined` **/
captchaToken?: string captchaToken?: string
/** @defaultValue `undefined` **/
nopechaKey?: string
/** @defaultValue `undefined` **/ /** @defaultValue `undefined` **/
executablePath?: string executablePath?: string
...@@ -74,6 +78,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI { ...@@ -74,6 +78,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
isMicrosoftLogin = false, isMicrosoftLogin = false,
minimize = true, minimize = true,
captchaToken, captchaToken,
nopechaKey,
executablePath, executablePath,
proxyServer proxyServer
} = opts } = opts
...@@ -87,6 +92,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI { ...@@ -87,6 +92,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
this._isMicrosoftLogin = !!isMicrosoftLogin this._isMicrosoftLogin = !!isMicrosoftLogin
this._minimize = !!minimize this._minimize = !!minimize
this._captchaToken = captchaToken this._captchaToken = captchaToken
this._nopechaKey = nopechaKey
this._executablePath = executablePath this._executablePath = executablePath
this._proxyServer = proxyServer this._proxyServer = proxyServer
...@@ -111,6 +117,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI { ...@@ -111,6 +117,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
try { try {
this._browser = await getBrowser({ this._browser = await getBrowser({
captchaToken: this._captchaToken, captchaToken: this._captchaToken,
nopechaKey: this._nopechaKey,
executablePath: this._executablePath, executablePath: this._executablePath,
proxyServer: this._proxyServer, proxyServer: this._proxyServer,
minimize: this._minimize minimize: this._minimize
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment