From f6c08f6a8aa023d910f2595835a25bb6d50a9284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Sun, 1 Jan 2023 03:24:07 +0300 Subject: [PATCH] optionally, easier way to get userAgent --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f063867..40255dc 100644 --- a/readme.md +++ b/readme.md @@ -232,7 +232,7 @@ To get session token manually: ![ChatGPT cookies](./media/session-token.png) 4. Copy the value for `__Secure-next-auth.session-token` and save it to your environment. This will be your `sessionToken`. 5. Copy the value for `cf_clearance` and save it to your environment. This will be your `clearanceToken`. -6. Copy the value of the `user-agent` header from any request in your `Network` tab. This will be your `userAgent`. +6. Copy the value of the `user-agent` header from any request in your `Network` tab, or copy the result of `navigator.userAgent` command on `Console` tab. This will be your `userAgent`. Pass `sessionToken`, `clearanceToken`, and `userAgent` to the `ChatGPTAPI` constructor.