type
status
date
slug
summary
tags
category
icon
password
Property
Aug 25, 2023 05:15 PM
URL
The article was translated into English by Notion AI from my original blog post.
GPT4 is currently the strongest artificial intelligence model, but it is expensive. OpenAI's price is $20 (about 140 RMB). If you use the API, it will be even more expensive, costing about 1 RMB per query. As a freeloader, I can't afford it.
Now there is a way to use the free GPT4 model.
1. Preparation
1.1 Registration
Register GitHub and Vercel accounts.
GitHub
vercel
1.2 Obtain API key from Discord
Register a Discord account.
Then use the link below.
Enter ChimeraGPT to obtain a free API key, follow the same steps as me.
Save the following information and remember it.
Our preparation is complete.
2. Deployment
2.1 Fork the project
Open the GitHub project below.
Then click Fork.
Now you can find the fgpt project in your GitHub.
2.2 Deploy on Vercel
Wait for the deployment to complete, which takes about 2 minutes. Then click on the URL it gives you to open your webpage.
2.3 Environment variable configuration
Add four environment variables as shown below.
Key | Value | Explanation |
NEXT_PUBLIC_DEFAULT_TEMPERATURE | 0.8 | 0.8 is best. |
NEXT_PUBLIC_DEFAULT_SYSTEM_PROMPT | You are ChatGPT, a large language model trained by OpenAI.
Knowledge cutoff: 2021-09
Current date: 2023-07 | ㅤ |
DEFAULT_MODEL | gpt-4 | The default model. |
OPENAI_API_KEY | tO_r*****LKqmcdk_6J0mo2hclo__NRsyQ | This is the key obtained in step 1.2. |
Next, it is to redeploy to make the environment variables take effect.
Then reopen the URL you deployed to use it. There are many models to choose from.
But it is worth noting that, according to ChimeraGPT, you can open this URL (click to open).
For example, 10/minute means only 10 queries can be made in one minute and 1000/day means only 1000 queries can be made in one day. This is enough for individuals.
3. Advanced users
This is for developers to read, ordinary users do not need to read. Here is an example of calling their API in Python.
- 作者:我心永恒
- 链接:https://wxyhgk.com/article/GPT4-ChimeraGPT-en
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。