diff --git a/docs/classes/ChatGPTAPIBrowser.md b/docs/classes/ChatGPTAPIBrowser.md index ed96c9f..1641144 100644 --- a/docs/classes/ChatGPTAPIBrowser.md +++ b/docs/classes/ChatGPTAPIBrowser.md @@ -48,6 +48,7 @@ Creates a new client for automating the ChatGPT webapp. | `opts.email` | `string` | - | | `opts.executablePath?` | `string` | **`Default Value`** `undefined` * | | `opts.isGoogleLogin?` | `boolean` | **`Default Value`** `false` * | +| `opts.isWindowsLogin?` | `boolean` | **`Default Value`** `false` * | | `opts.markdown?` | `boolean` | **`Default Value`** `true` * | | `opts.minimize?` | `boolean` | **`Default Value`** `true` * | | `opts.password` | `string` | - | diff --git a/docs/modules.md b/docs/modules.md index c4b940f..9465469 100644 --- a/docs/modules.md +++ b/docs/modules.md @@ -588,6 +588,7 @@ with your updated credentials. | `__namedParameters.email?` | `string` | | `__namedParameters.executablePath?` | `string` | | `__namedParameters.isGoogleLogin?` | `boolean` | +| `__namedParameters.isWindowsLogin?` | `boolean` | | `__namedParameters.nopechaKey?` | `string` | | `__namedParameters.page?` | `Page` | | `__namedParameters.password?` | `string` | diff --git a/docs/readme.md b/docs/readme.md index 0d802a3..919f937 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -262,13 +262,14 @@ Basic Cloudflare CAPTCHAs are handled by default, but if you want to automate th - More well-known solution that's been around longer - Set the `CAPTCHA_TOKEN` env var to your 2captcha API token -Alternatively, if your OpenAI account uses Google Auth, you shouldn't encounter any of the more complicated Recaptchas — and can avoid using these third-party providers. To use Google auth, make sure your OpenAI account is using Google and then set `isGoogleLogin` to `true` whenever you're passing your `email` and `password`. For example: +Alternatively, if your OpenAI account uses Google Auth and Microsoft, you shouldn't encounter any of the more complicated Recaptchas — and can avoid using these third-party providers. To use Google auth, make sure your OpenAI account is using Google or Microsoft and then set either `isGoogleLogin` or `isWindowsLogin` to `true` whenever you're passing your `email` and `password`. For example: ```ts const api = new ChatGPTAPIBrowser({ email: process.env.OPENAI_EMAIL, password: process.env.OPENAI_PASSWORD, isGoogleLogin: true + isWindowsLogin: true // use only one of this options. }) ``` diff --git a/readme.md b/readme.md index 8ad3a03..d7fa14f 100644 --- a/readme.md +++ b/readme.md @@ -254,13 +254,14 @@ Basic Cloudflare CAPTCHAs are handled by default, but if you want to automate th - More well-known solution that's been around longer - Set the `CAPTCHA_TOKEN` env var to your 2captcha API token -Alternatively, if your OpenAI account uses Google Auth, you shouldn't encounter any of the more complicated Recaptchas — and can avoid using these third-party providers. To use Google auth, make sure your OpenAI account is using Google and then set `isGoogleLogin` to `true` whenever you're passing your `email` and `password`. For example: +Alternatively, if your OpenAI account uses Google Auth and Microsoft, you shouldn't encounter any of the more complicated Recaptchas — and can avoid using these third-party providers. To use Google auth, make sure your OpenAI account is using Google or Microsoft and then set either `isGoogleLogin` or `isWindowsLogin` to `true` whenever you're passing your `email` and `password`. For example: ```ts const api = new ChatGPTAPIBrowser({ email: process.env.OPENAI_EMAIL, password: process.env.OPENAI_PASSWORD, isGoogleLogin: true + isWindowsLogin: true // use only one of this options. }) ```