Skip to content

Commit

Permalink
docs: tweak wording
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Feb 22, 2023
1 parent 6abb431 commit 1fdf218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,13 @@ Note: info on how the reverse proxies work is not being published at this time i

#### Access Token

To use `ChatGPTUnofficialProxyAPI`, you'll need a ChatGPT access token. You can either:
To use `ChatGPTUnofficialProxyAPI`, you'll need an OpenAI access token from the ChatGPT webapp. You can either:

1. Use [acheong08/OpenAIAuth](https://github.com/acheong08/OpenAIAuth), which is a python script to login and get an access token automatically. This works with email + password accounts (e.g., it does not support accounts where you auth via Microsoft / Google).

2. You can manually get an `accessToken` by logging in to the ChatGPT webapp and then opening `https://chat.openai.com/api/auth/session`, which will return a JSON object containing your `accessToken` string.

Access tokens last for ~8 hours (TODO: need to verify the exact TTL).
Access tokens last for ~8 hours.

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

Expand Down

0 comments on commit 1fdf218

Please sign in to comment.