1、Open the file
Open the file gpt_academic/config.py.

2、Generate 302.AI—API Key
Under [Use API] - [API Keys], click Add API KEY to generate. You can find the generated API in the Existing API. Click on the API KEY icon to view and copy the complete API key.

3、Modify API_KEY
Locate the API_KEY variable in config.py, and enter the API KEY generated from the [Use API] - [API Keys] list in the 302.AI backend.

4、Copy 302.AI-API URL
Go to the 302.AI API documentation and copy the API URL.

5、Modify API_URL_REDIRECT
Find the API_URL_REDIRECT variable in config.py and change the following API_URL_REDIRECT parameter to the copied 302.AI-API URL, namely: API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions":"https://api.302.ai/v1/chat/completions"}
After that, run it to use.
