From 7ec8f309e8733b511c008c6195970f03f1d00ce8 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 19 Feb 2023 02:09:19 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/readme.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/legacy/readme.md b/legacy/readme.md index 28e7fe93..064cb1b7 100644 --- a/legacy/readme.md +++ b/legacy/readme.md @@ -78,8 +78,8 @@ Thanks && cheers, - [Usage (ChatGPTAPI)](#usage-chatgptapi) - [Usage (ChatGPTUnofficialProxyAPI)](#usage-chatgptunofficialproxyapi) - [Access Token](#access-token) - - [Docs](#docs) - - [Demos](#demos) +- [Docs](#docs) +- [Demos](#demos) - [Projects](#projects) - [Compatibility](#compatibility) - [Credits](#credits) @@ -241,11 +241,13 @@ 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. -### Docs +## Docs See the [auto-generated docs](./docs/classes/ChatGPTAPI.md) for more info on methods and parameters. -### Demos +## Demos + +Most of the demos use `ChatGPTAPI`. It should be pretty easy to convert them to use `ChatGPTUnofficialProxyAPI` if you'd rather use that approach. The only thing that needs to change is how you initialize the api with an `accessToken` instead of an `apiKey`. To run the included demos: