pull/364/head
Travis Fischer 2023-02-19 02:09:19 -06:00
rodzic a5272b721f
commit c5c1937388
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

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