From ce7605e2f799e40025bc93b308749d3575be734b Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 19 Feb 2023 02:12:59 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/readme.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/legacy/readme.md b/legacy/readme.md index 46638e41..6a80db90 100644 --- a/legacy/readme.md +++ b/legacy/readme.md @@ -77,7 +77,8 @@ Thanks && cheers, - [Install](#install) - [Usage (ChatGPTAPI)](#usage-chatgptapi) - [Usage (ChatGPTUnofficialProxyAPI)](#usage-chatgptunofficialproxyapi) - - [Access Token](#access-token) + - [Reverse Proxies](#reverse-proxies) + - [Access Tokens](#access-tokens) - [Docs](#docs) - [Demos](#demos) - [Projects](#projects) @@ -224,6 +225,8 @@ See [demos/demo-reverse-proxy](./demos/demo-reverse-proxy.ts) for a full example npx tsx demos/demo-reverse-proxy.ts ``` +### Reverse Proxies + Known reverse proxies include: | Reverse Proxy URL | Author | Rate Limits | Last Checked | @@ -231,9 +234,7 @@ Known reverse proxies include: | `https://chat.duti.tech/api/conversation` | [@acheong08](https://github.com/acheong08) | 50 req/min | 2/19/2023 | | `https://gpt.pawan.krd/backend-api/conversation` | [@PawanOsman](https://github.com/PawanOsman) | ? | 2/19/2023 | -**Note**: using a reverse proxy will expose your access token to a third-party. There shouldn't be any adverse effects possible from this, but please be aware of the risks before using this method. - -### Access Token +### Access Tokens To use `ChatGPTUnofficialProxyAPI`, you'll need a ChatGPT access token. You can either: @@ -241,6 +242,8 @@ To use `ChatGPTUnofficialProxyAPI`, you'll need a ChatGPT access token. You can 2. You can manually get an `accessToken` by logging in to the ChatGPT webapp, opening up the Network tab of devtools, refreshing the page, and then looking at the JSON response to `https://chat.openai.com/api/auth/session`, which will have your `accessToken` string. +**Note**: using a reverse proxy will expose your access token to a third-party. There shouldn't be any adverse effects possible from this, but please consider the risks before using this method. + ## Docs See the [auto-generated docs](./docs/classes/ChatGPTAPI.md) for more info on methods and parameters.