Commit adcb7af5 authored by optionsx's avatar optionsx Committed by GitHub

Document Microsoft Login Change

parent 242ea3d4
...@@ -48,6 +48,7 @@ Creates a new client for automating the ChatGPT webapp. ...@@ -48,6 +48,7 @@ Creates a new client for automating the ChatGPT webapp.
| `opts.email` | `string` | - | | `opts.email` | `string` | - |
| `opts.executablePath?` | `string` | **`Default Value`** `undefined` * | | `opts.executablePath?` | `string` | **`Default Value`** `undefined` * |
| `opts.isGoogleLogin?` | `boolean` | **`Default Value`** `false` * | | `opts.isGoogleLogin?` | `boolean` | **`Default Value`** `false` * |
| `opts.isWindowsLogin?` | `boolean` | **`Default Value`** `false` * |
| `opts.markdown?` | `boolean` | **`Default Value`** `true` * | | `opts.markdown?` | `boolean` | **`Default Value`** `true` * |
| `opts.minimize?` | `boolean` | **`Default Value`** `true` * | | `opts.minimize?` | `boolean` | **`Default Value`** `true` * |
| `opts.password` | `string` | - | | `opts.password` | `string` | - |
......
...@@ -588,6 +588,7 @@ with your updated credentials. ...@@ -588,6 +588,7 @@ with your updated credentials.
| `__namedParameters.email?` | `string` | | `__namedParameters.email?` | `string` |
| `__namedParameters.executablePath?` | `string` | | `__namedParameters.executablePath?` | `string` |
| `__namedParameters.isGoogleLogin?` | `boolean` | | `__namedParameters.isGoogleLogin?` | `boolean` |
| `__namedParameters.isWindowsLogin?` | `boolean` |
| `__namedParameters.nopechaKey?` | `string` | | `__namedParameters.nopechaKey?` | `string` |
| `__namedParameters.page?` | `Page` | | `__namedParameters.page?` | `Page` |
| `__namedParameters.password?` | `string` | | `__namedParameters.password?` | `string` |
......
...@@ -262,13 +262,14 @@ Basic Cloudflare CAPTCHAs are handled by default, but if you want to automate th ...@@ -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 - More well-known solution that's been around longer
- Set the `CAPTCHA_TOKEN` env var to your 2captcha API token - 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 ```ts
const api = new ChatGPTAPIBrowser({ const api = new ChatGPTAPIBrowser({
email: process.env.OPENAI_EMAIL, email: process.env.OPENAI_EMAIL,
password: process.env.OPENAI_PASSWORD, password: process.env.OPENAI_PASSWORD,
isGoogleLogin: true isGoogleLogin: true
isWindowsLogin: true // use only one of this options.
}) })
``` ```
......
...@@ -254,13 +254,14 @@ Basic Cloudflare CAPTCHAs are handled by default, but if you want to automate th ...@@ -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 - More well-known solution that's been around longer
- Set the `CAPTCHA_TOKEN` env var to your 2captcha API token - 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 ```ts
const api = new ChatGPTAPIBrowser({ const api = new ChatGPTAPIBrowser({
email: process.env.OPENAI_EMAIL, email: process.env.OPENAI_EMAIL,
password: process.env.OPENAI_PASSWORD, password: process.env.OPENAI_PASSWORD,
isGoogleLogin: true isGoogleLogin: true
isWindowsLogin: true // use only one of this options.
}) })
``` ```
......
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