|
45 | 45 | > **Note**
|
46 | 46 | >
|
47 | 47 | > In Step 2, you only need to complete the authentication process for the model you want to use (it's not necessary to complete all Step 2)
|
| 48 | +> |
48 | 49 | > Remember to modify `CHAT_MODEL` to the default model you want to use in `.env` file
|
49 | 50 |
|
50 | 51 | ## Step 2: Official API authentication
|
|
58 | 59 |
|
59 | 60 | 3. Store the SECRET KEY to `.env` under the `OPENAI_API_KEY`
|
60 | 61 |
|
61 |
| -4. You're all set for [Step 3](#step-3-run-the-bot-on-the-desktop) |
62 | 62 | ---
|
63 | 63 | ## Step 2: Website ChatGPT authentication
|
64 | 64 |
|
65 | 65 | > **Only Support ChatGPT Plus Account**
|
66 | 66 |
|
67 |
| -### ACCESS token |
68 | 67 | 1. Open https://chat.openai.com/api/auth/session
|
69 | 68 |
|
70 | 69 | 2. Open console with `F12`
|
|
77 | 76 |
|
78 | 77 | 5. Copy the value for `accessToken` from cookies and paste it into `.env` under `ACCESS_TOKEN`
|
79 | 78 |
|
80 |
| -6. You're all set for [Step 3](#step-3-run-the-bot-on-the-desktop) |
81 |
| - |
82 | 79 | ---
|
83 | 80 | ## Step 2: Google Bard authentication
|
84 | 81 | 1. Go to https://bard.google.com/
|
|
89 | 86 |
|
90 | 87 | 4. Copy the value for `__Secure-1PSID` from cookies and paste it into `.env` under `BARD_SESSION_ID`
|
91 | 88 |
|
92 |
| -5. You're all set for [Step 3](#step-3-run-the-bot-on-the-desktop) |
93 | 89 | ---
|
94 | 90 | ## Step 2: Microsoft Bing authentication
|
95 | 91 | 1. **Rename the file `cookies.dev.json` to `cookies.json`**
|
|
98 | 94 |
|
99 | 95 | 3. Use Cookie Editor or similar extensions to export the cookies
|
100 | 96 |
|
101 |
| -3. Paste it into `cookies.json` |
| 97 | +4. Paste it into `cookies.json` |
102 | 98 |
|
103 |
| -5. You're all set for [Step 3](#step-3-run-the-bot-on-the-desktop) |
104 | 99 | ---
|
105 | 100 | ## Step 3: Run the bot on the desktop
|
106 | 101 |
|
|
125 | 120 | ---
|
126 | 121 |
|
127 | 122 | ## Optional: Auto-Login
|
128 |
| -* The auto-login feature allows your bot to automatically login to either Google Bard or Microsoft Bing using provided credentials |
129 |
| -* It will auto fetch the cookies you need |
| 123 | +> * The auto-login feature allows your bot to automatically login to either Google Bard or Microsoft Bing using provided credentials |
| 124 | +> * It will auto fetch the cookies you need |
| 125 | +
|
130 | 126 | * To enable this feature, first specify your Chrome browser's version by filling in the `chrome_version` field in the `.env` file
|
131 |
| - * For Google Bard, set `bard_enable_auto_login` to `True`. Then fill `google_account` and `google_password` in `.env` |
| 127 | +* Google Bard |
| 128 | + 1. set `bard_enable_auto_login` to `True` in `.env` |
| 129 | + 2. Fill `google_account` and `google_password` in `.env` |
| 130 | + |
132 | 131 | (NOTICE: AUTO-LOGIN ONLY WORKS FOR GOOGLE ACCOUNT THAT DOES NOT HAVE 2FA)
|
133 |
| - * For Microsoft Bing, set `bing_enable_auto_login` to `True`. Then fill `google_account` and `google_password` in `.env` |
| 132 | +* Microsoft Bing |
| 133 | + 1. set `bing_enable_auto_login` to `True` in `.env` |
| 134 | + 2. Then fill `google_account` and `google_password` in `.env` |
134 | 135 |
|
135 | 136 | ## Optional: Setup system prompt
|
136 | 137 |
|
|
0 commit comments