type
status
date
slug
summary
tags
category
icon
password
本文将给大家介绍一下,利用免费的
Vercel
部署你的私人 ChatGPTWeb
最近
OpenAI
封号严重,通过网页端口,如果用公用代理的话,很容易连坐封号再加上
OpenAI
大面积的封锁 IP
端,导致可用的干净 IP
越来越少使用自用服务器架设
API
的话,很多小白可能完全不懂这里就给大家带来低门槛的web架设详细操作
先试试看成品网站吧(本站有key可以支持ChatGPT-4):
本网站不会上传任何信息,所有信息均存储在本地
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F488fd9da-986d-4611-b535-86476077b1bd%2FUntitled.png?table=block&id=ccb63a69-d41f-472c-b533-347db8d56cec&t=ccb63a69-d41f-472c-b533-347db8d56cec&width=1354&cache=v2)
1.前言
这里介绍一种,一键部署在
Vercel
上的,以 API
形式通过自己的私人 Web
站点访问来自GitHub上大佬们的贡献:
ChatGPT-Next-Web
ChatGPTNextWeb • Updated May 27, 2024
经实践,目前采用
付费
API
方式,是最稳妥的按稳定程度划分:
- 付费API
- 付费ChatPlus
- 免费额度的API
- 免费网页版ChatGPT
2.注册Vercel
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3153898a-3d27-4513-b6ac-2acdf9f6bf81%2FUntitled.png?table=block&id=03b6d877-7384-4c51-a381-e23a134ee64a&t=03b6d877-7384-4c51-a381-e23a134ee64a&width=1453&cache=v2)
选择个人身份
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd132946d-7a80-4c6a-a257-4b85aa4bbba1%2FUntitled.png?table=block&id=a23550c4-a3e7-4d11-986e-0f076694f262&t=a23550c4-a3e7-4d11-986e-0f076694f262&width=1438&cache=v2)
选择GitHub进行连接
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F609b0026-fdfd-4fb0-b376-907253b5f1bc%2FUntitled.png?table=block&id=b1778558-3daf-4ee5-837f-765f847003f6&t=b1778558-3daf-4ee5-837f-765f847003f6&width=1425&cache=v2)
3.获取OpenAPI key
访问OpenAI的Platform网站,可以创建自己的Key
注意不要将你的Key告知任何其他人!
注意不要将你的Key告知任何其他人!
注意不要将你的Key告知任何其他人!
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe536b683-aafc-4d11-93ca-eb0199587db5%2FUntitled.png?table=block&id=27e570c1-e3d6-4622-ad0b-efc153a8fc30&t=27e570c1-e3d6-4622-ad0b-efc153a8fc30&width=1993&cache=v2)
这里能看到你的使用余额,我这里是绑定了支付方式的,所以有120$的预付额度
正常账号的话,现在可能有些账号有18$、5$的免费试用额度
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fb19bd800-bd71-4c8b-85ab-6e2e7c07ed24%2FUntitled.png?table=block&id=0d38dfa5-dacb-46f5-818a-bc5cf76b8c1c&t=0d38dfa5-dacb-46f5-818a-bc5cf76b8c1c&width=1883&cache=v2)
请记下你的Key,后面部署的时候要用到
关于如何开通API支付方式,这个我后面会开贴详细将详细的步骤,现在网上有很多代付、代绑、代激活、代充的,请大家注意细心甄别,小心上当受骗
记得关注我哦,以便于及时收到我的更新推送!
4.一键部署到Vercel
点击下方链接可以一键部署
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F4aa0205e-2d1c-417e-bf7d-33f4b16ed2b1%2FUntitled.png?table=block&id=2acb7acd-89b0-40c2-b8fc-703f9db9f442&t=2acb7acd-89b0-40c2-b8fc-703f9db9f442&width=1454&cache=v2)
填写相关环境变量:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fbda710f6-13ab-4f04-9456-928a32f90885%2FUntitled.png?table=block&id=cd0817a2-2067-4bb1-9192-a46e6da3a7e4&t=cd0817a2-2067-4bb1-9192-a46e6da3a7e4&width=1476&cache=v2)
最后点击部署即可:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Feaf9dde7-3a69-492e-b357-cce6a41b638c%2FUntitled.png?table=block&id=2c6c74ad-b90b-46f4-a585-476132eff970&t=2c6c74ad-b90b-46f4-a585-476132eff970&width=1426&cache=v2)
部署完成:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fb6d28193-97d6-4c97-99ae-7ba1d389c874%2FUntitled.png?table=block&id=92c06539-dfc2-42ec-9ec2-e2f4049e6b4a&t=92c06539-dfc2-42ec-9ec2-e2f4049e6b4a&width=1388&cache=v2)
前往页面进行访问即可:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F285807ee-b4cb-4ede-a2df-dc6d92cd2a26%2FUntitled.png?table=block&id=43e2ce4c-d715-42d0-a6bd-e444d8e0d943&t=43e2ce4c-d715-42d0-a6bd-e444d8e0d943&width=1766&cache=v2)
输入你刚刚设置的访问密码:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F27bce9af-7e2b-4d80-861f-f20ff3d3c314%2FUntitled.png?table=block&id=59c1db96-79be-47be-aeca-73d4c6fad206&t=59c1db96-79be-47be-aeca-73d4c6fad206&width=1353&cache=v2)
现在可以和ChatGPT聊天了:
(这种托管式的,回复速度会比较慢一点,如果有条件可以自行部署在自己服务器上,或者自己本地部署,通过代理访问)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3f92f406-2191-40bb-82b4-0b0d51bf76d4%2FUntitled.png?table=block&id=bd4ad2dd-bc71-425e-82b6-5d524fab10c5&t=bd4ad2dd-bc71-425e-82b6-5d524fab10c5&width=1305&cache=v2)
如果你的API有其他模型权限的话(比如GPT-4),在这里可以切换模型:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd434bfd6-2d13-4994-9bdb-70d17c3610c0%2FUntitled.png?table=block&id=4475735a-8ede-41e0-b444-b570db101ad1&t=4475735a-8ede-41e0-b444-b570db101ad1&width=1284&cache=v2)
5.绑定你的自定义域名(可选)
为了保证你的网站访问不受限制,最好还是用自己的域名进行解析,因为
Vercel
的域名在国内网络下被DNS污染了我的域名是托管在
Cloudflare
上面的,如果是其他域名解析平台,请参考设置关于
Cloudflare
部分域名托管的操作,可以参考我的另外的文章:![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3aa7b580-5ad8-4ea3-9138-26c73f5ae484%2FUntitled.png?table=block&id=25c49096-d5d3-4ab5-8060-84fcc40b951a&t=25c49096-d5d3-4ab5-8060-84fcc40b951a&width=2189&cache=v2)
二级域名的话,只需要配置好
CNAME
解析即可这里显示:
Type | Name | Value |
CNAME | chat | cname.vercel-dns.com |
这里的
cname.vercel-dns.com
可以替换为 cname-china.vercel-dns.com
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F1c03e07b-1955-4d05-8d6e-38790748a25b%2FUntitled.png?table=block&id=0d6939da-bd14-4f38-ae4d-f9018a090178&t=0d6939da-bd14-4f38-ae4d-f9018a090178&width=2242&cache=v2)
再回到
Vercel
面板,就能看到解析生效了![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9c842f1d-6e75-467b-b989-3385ab41ee7a%2FUntitled.png?table=block&id=04d22959-dd95-4cfe-aa3f-d514de0f9e7e&t=04d22959-dd95-4cfe-aa3f-d514de0f9e7e&width=2313&cache=v2)
现在就能通过自己的域名正常使用了
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fab82bd57-f529-4ae5-8700-c60942d61656%2FUntitled.png?table=block&id=0f86a3a4-0103-4dee-b390-bcd01cd35fa8&t=0f86a3a4-0103-4dee-b390-bcd01cd35fa8&width=2034&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F88a5c7e3-a1f1-40d0-b1da-6296267ce8dd%2FUntitled.png?table=block&id=911e8a2f-b09b-4bb1-8089-09d4bf8d8c2e&t=911e8a2f-b09b-4bb1-8089-09d4bf8d8c2e&width=1369&cache=v2)
输入斜杠
/
还支持很多通用的提示语![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fdbee437c-bfea-4c38-9348-581c97350a41%2FUntitled.png?table=block&id=a5ffcea7-ff7a-4a94-bde3-d4f246b72247&t=a5ffcea7-ff7a-4a94-bde3-d4f246b72247&width=1354&cache=v2)
6.尾语
总体来说,部署还是很简单的。
如果你的OpenAI账户里,还有免费使用额度的话,不妨来试试,如果效果满意的话,还是建议绑定API的支付方式进行使用。
免费的方式,触发封号的概率还是比较高的。
- 作者:PolarisAspire
- 链接:https://lpolaris.com//article/chatgptweb
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
相关文章