发布于: 2023-7-13最后更新: 2023-8-25字数 00 分钟

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.
notion image
Our preparation is complete.

2. Deployment

2.1 Fork the project

Open the GitHub project below.
Then click Fork.
notion image
Now you can find the fgpt project in your GitHub.

2.2 Deploy on Vercel

notion image
notion image
notion image
Wait for the deployment to complete, which takes about 2 minutes. Then click on the URL it gives you to open your webpage.
notion image

2.3 Environment variable configuration

notion image
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.
notion image
notion image
Then reopen the URL you deployed to use it. There are many models to choose from.
notion image
But it is worth noting that, according to ChimeraGPT, you can open this URL (click to open).
notion image
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.

  • Waline
免费部署自己的ChatGPT4网站

免费部署自己的ChatGPT4网站


公告
公告
博客重大更新,更换为matery主题,阅读体验更加好了。
和博主联系
notion image