pull/364/head
Travis Fischer 2023-02-19 02:12:59 -06:00
rodzic e1ad9eaaea
commit 6110f232ea
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -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.