Skip to content
/ ChatGPT-NextWeb Public
  • Notifications
  • Fork 0
  • Star 1

License

1 star 0 forks Branches Tags Activity
Star
Notifications

xia-shangzhou/ChatGPT-NextWeb

Branches Tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

308 Commits

.github/workflows

.github/workflows

 
 

.husky

.husky

 
 

.vscode

.vscode

 
 

app

app

 
 

public

public

 
 

scripts

scripts

 
 

static

static

 
 

.eslintignore

.eslintignore

 
 

.eslintrc.json

.eslintrc.json

 
 

.gitignore

.gitignore

 
 

.gitpod.yml

.gitpod.yml

 
 

.lintstagedrc.json

.lintstagedrc.json

 
 

.prettierrc.js

.prettierrc.js

 
 

Dockerfile

Dockerfile

 
 

LICENSE

LICENSE

 
 

README.md

README.md

 
 

middleware.ts

middleware.ts

 
 

next.config.js

next.config.js

 
 

package.json

package.json

 
 

tsconfig.json

tsconfig.json

 
 

yarn.lock

yarn.lock

 
 

Repository files navigation

主要功能

  • 在 1 分钟内使用 Vercel 免费一键部署
  • 精心设计的 UI,响应式设计,支持深色模式
  • 极快的首屏加载速度(~85kb)
  • 海量的内置 prompt 列表,来自 中文和 英文
  • 自动压缩上下文聊天记录,在节省 Token 的同时支持超长对话
  • 一键导出聊天记录,完整的 Markdown 支持
  • 拥有自己的域名?好上加好,绑定后即可在任何地方无障碍快速访问

Features

  • Deploy for free with one-click on Vercel in under 1 minute
  • Responsive design, and dark mode
  • Fast first screen loading speed (~85kb)
  • Awesome prompts powered by awesome-chatgpt-prompts-zh and awesome-chatgpt-prompts
  • Automatically compresses chat history to support long conversations while also saving your tokens
  • One-click export all chat history with full Markdown support
  • I18n supported

开始使用

  1. 准备好你的 OpenAI API Key;
  2. 点击右侧按钮开始部署: Deploy with Vercel,直接使用 Github 账号登录即可,记得在环境变量页填入 API Key;
  3. 部署完毕后,即可开始使用;
  4. (可选) 绑定自定义域名:Vercel 分配的域名 DNS 在某些区域被污染了,绑定自定义域名即可直连。

Get Started

  1. Get OpenAI API Key;
  2. Click Deploy with Vercel;
  3. Enjoy :)

保持更新 Keep Updated

如果你按照上述步骤一键部署了自己的项目,可能会发现总是提示“存在更新”的问题,这是由于 Vercel 会默认为你创建一个新项目而不是 fork 本项目,这会导致无法正确地检测更新。 推荐你按照下列步骤重新部署:

  • 删除掉原先的 repo;
  • fork 本项目;
  • 前往 vercel 控制台,删除掉原先的 project,然后新建 project,选择你刚刚 fork 出来的项目重新进行部署即可;
  • 在重新部署的过程中,请手动添加名为 OPENAI_API_KEY 的环境变量,并填入你的 api key 作为值。

本项目会持续更新,当你 Fork 项目之后,默认会每天自动同步上游代码,无需额外操作。

如果你想让手动立即更新,可以查看 Github 的文档 了解如何让 fork 的项目与上游代码同步。

你可以 star/watch 本项目或者 follow 作者来及时获得新功能更新通知。

If you have deployed your own project with just one click following the steps above, you may encounter the issue of "Updates Available" constantly showing up. This is because Vercel will create a new project for you by default instead of forking this project, resulting in the inability to detect updates correctly.

We recommend that you follow the steps below to re-deploy:

  • Delete the original repo;
  • Fork this project;
  • Go to the Vercel dashboard, delete the original project, then create a new project and select the project you just forked to redeploy;
  • Please manually add an environment variable named OPENAI_API_KEY and enter your API key as the value during the redeploy process.

This project will be continuously updated, and after forking the project, the upstream code will be automatically synchronized every day without additional operations.

If you want to update instantly, you can check out the Github documentation to learn how to synchronize a forked project with upstream code.

You can star or watch this project or follow author to get release notifictions in time.

配置密码 Password

本项目提供有限的权限控制功能,请在 Vercel 项目控制面板的环境变量页增加名为 CODE 的环境变量,值为用英文逗号分隔的自定义密码:

code1,code2,code3

增加或修改该环境变量后,请重新部署项目使改动生效。

This project provides limited access control. Please add an environment variable named CODE on the vercel environment variables page. The value should be passwords separated by comma like this:

code1,code2,code3

After adding or modifying this environment variable, please redeploy the project for the changes to take effect.

环境变量 Environment Variables

OPENAI_API_KEY (required)

OpanAI 密钥。

Your openai api key.

CODE (optional)

访问密码,可选,可以使用逗号隔开多个密码。

Access passsword, separated by comma.

BASE_URL (optional)

Default: api.openai.com

OpenAI 接口代理 URL。

Override openai api request base url.

PROTOCOL (optional)

Default: https

Values: http | https

OpenAI 接口协议。

Override openai api request protocol.

开发 Development

点击下方按钮,开始二次开发:

Open in Gitpod

在开始写代码之前,需要在项目根目录新建一个 .env.local 文件,里面填入环境变量:

Before starting development, you must create a new .env.local file at project root, and place your api key into it:

OPENAI_API_KEY=<your api key here>

本地开发 Local Development

如果你是中国大陆用户,不建议在本地进行开发,除非你能够独立解决 OpenAI API 本地代理问题。

  1. 安装 nodejs 和 yarn,具体细节请询问 ChatGPT;
  2. 执行 yarn install && yarn dev 即可。

本地部署 Local Deployment

bash <(curl -s https://raw.githubusercontent.com/xia-shangzhou/ChatGPT-NextWeb/main/scripts/setup.sh)

截图 Screenshots

设置 Settings

更多展示 More

鸣谢 Special Thanks

捐赠者 Sponsor

@mushan0x0 @ClarenceDan @zhangjia @hoochanlon

贡献者 Contributor

Contributors

LICENSE

Anti 996 License

About

shangzhou.eu.org

Resources

Readme

License

Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 68.1%
  • SCSS 28.4%
  • JavaScript 1.8%
  • Shell 1.3%
  • Dockerfile 0.4%

Footer

© 2024 GitHub, Inc.

资讯网巴中有什么特色美食球棎比分足球即时比分网站建设的代码北京外包seo学网站设计要多少钱魔兽作弊图siri灵异事件你有朋友吗永城到成都高铁启示录电影下载有效的营销推广方式是上海SEO外包公司五行属金的起名用字大全麦玲玲公司起名八字算命运势坟地闹鬼故事生姜红糖小说起名曲姓女你微笑时很美免费观看电影天堂周易算命馆喜用神为火起名女孩网络seo推广培训seo网站速度医院网站集群建设做噩梦了怎么缓解深圳seo网站关键词优化网站ui设计怎么做梦兆册解梦查询案中案读后感周易的象数思维姓安男宝宝起名少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

资讯网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化