|
3 | 3 |
|
4 | 4 | <h1 align="center">ChatGPT Next Web</h1>
|
5 | 5 |
|
6 |
| -English / [简体中文](./README_CN.md) |
7 |
| - |
8 | 6 | One-Click to get well-designed cross-platform ChatGPT web UI.
|
9 | 7 |
|
10 | 8 | 一键免费部署你的跨平台私人 ChatGPT 应用。
|
11 | 9 |
|
12 | 10 | [![Web][Web-image]][web-url]
|
13 |
| -[![Windows][Windows-image]][download-url] |
14 |
| -[![MacOS][MacOS-image]][download-url] |
15 |
| -[![Linux][Linux-image]][download-url] |
16 |
| - |
17 |
| -[Web App](https://chatgpt.nextweb.fun/) / [Desktop App](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) / [Issues](https://github.com/Yidadaa/ChatGPT-Next-Web/issues) / [Buy Me a Coffee](https://www.buymeacoffee.com/yidadaa) |
18 | 11 |
|
19 |
| -[网页版](https://chatgpt.nextweb.fun/) / [客户端](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) / [反馈](https://github.com/Yidadaa/ChatGPT-Next-Web/issues) / [QQ 群](https://github.com/Yidadaa/ChatGPT-Next-Web/discussions/1724) / [打赏开发者](https://user-images.githubusercontent.com/16968934/227772541-5bcd52d8-61b7-488c-a203-0330d8006e2b.jpg) |
| 12 | +[网页版](https://chatgpt.realduang.com/) |
20 | 13 |
|
21 |
| -[web-url]: https://chatgpt.nextweb.fun |
22 |
| -[download-url]: https://github.com/Yidadaa/ChatGPT-Next-Web/releases |
| 14 | +[web-url]: https://chatgpt.realduang.com |
23 | 15 | [Web-image]: https://img.shields.io/badge/Web-PWA-orange?logo=microsoftedge
|
24 |
| -[Windows-image]: https://img.shields.io/badge/-Windows-blue?logo=windows |
25 |
| -[MacOS-image]: https://img.shields.io/badge/-MacOS-black?logo=apple |
26 |
| -[Linux-image]: https://img.shields.io/badge/-Linux-333?logo=ubuntu |
27 |
| - |
28 |
| -[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web) |
29 | 16 |
|
30 |
| -[](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web) |
| 17 | +[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FrealDuang%2FChatGPT-Next-Web&env=AZURE_API_KEY&env=AZURE_ENDPOINT&env=AZURE_DEPLOY_NAME&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web) |
31 | 18 |
|
32 | 19 | 
|
33 | 20 |
|
34 | 21 | </div>
|
35 | 22 |
|
36 |
| -## Features |
37 |
| - |
38 |
| -- **Deploy for free with one-click** on Vercel in under 1 minute |
39 |
| -- Compact client (~5MB) on Linux/Windows/MacOS, [download it now](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) |
40 |
| -- Fully compatible with self-deployed llms, recommended for use with [RWKV-Runner](https://github.com/josStorer/RWKV-Runner) or [LocalAI](https://github.com/go-skynet/LocalAI) |
41 |
| -- Privacy first, all data stored locally in the browser |
42 |
| -- Markdown support: LaTex, mermaid, code highlight, etc. |
43 |
| -- Responsive design, dark mode and PWA |
44 |
| -- Fast first screen loading speed (~100kb), support streaming response |
45 |
| -- New in v2: create, share and debug your chat tools with prompt templates (mask) |
46 |
| -- Awesome prompts powered by [awesome-chatgpt-prompts-zh](https://github.com/PlexPt/awesome-chatgpt-prompts-zh) and [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) |
47 |
| -- Automatically compresses chat history to support long conversations while also saving your tokens |
48 |
| -- I18n: English, 简体中文, 繁体中文, 日本語, Français, Español, Italiano, Türkçe, Deutsch, Tiếng Việt, Русский, Čeština, 한국어 |
49 |
| - |
50 |
| -## Roadmap |
51 |
| - |
52 |
| -- [x] System Prompt: pin a user defined prompt as system prompt [#138](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/138) |
53 |
| -- [x] User Prompt: user can edit and save custom prompts to prompt list |
54 |
| -- [x] Prompt Template: create a new chat with pre-defined in-context prompts [#993](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/993) |
55 |
| -- [x] Share as image, share to ShareGPT [#1741](https://github.com/Yidadaa/ChatGPT-Next-Web/pull/1741) |
56 |
| -- [x] Desktop App with tauri |
57 |
| -- [x] Self-host Model: Fully compatible with [RWKV-Runner](https://github.com/josStorer/RWKV-Runner), as well as server deployment of [LocalAI](https://github.com/go-skynet/LocalAI): llama/gpt4all/rwkv/vicuna/koala/gpt4all-j/cerebras/falcon/dolly etc. |
58 |
| -- [ ] Plugins: support network search, calculator, any other apis etc. [#165](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/165) |
59 |
| - |
60 |
| -## What's New |
61 |
| - |
62 |
| -- 🚀 v2.0 is released, now you can create prompt templates, turn your ideas into reality! Read this: [ChatGPT Prompt Engineering Tips: Zero, One and Few Shot Prompting](https://www.allabtai.com/prompt-engineering-tips-zero-one-and-few-shot-prompting/). |
63 |
| -- 🚀 v2.7 let's share conversations as image, or share to ShareGPT! |
64 |
| -- 🚀 v2.8 now we have a client that runs across all platforms! |
65 |
| - |
66 |
| -## 主要功能 |
67 |
| - |
68 |
| -- 在 1 分钟内使用 Vercel **免费一键部署** |
69 |
| -- 提供体积极小(~5MB)的跨平台客户端(Linux/Windows/MacOS), [下载地址](https://github.com/Yidadaa/ChatGPT-Next-Web/releases) |
70 |
| -- 完整的 Markdown 支持:LaTex 公式、Mermaid 流程图、代码高亮等等 |
71 |
| -- 精心设计的 UI,响应式设计,支持深色模式,支持 PWA |
72 |
| -- 极快的首屏加载速度(~100kb),支持流式响应 |
73 |
| -- 隐私安全,所有数据保存在用户浏览器本地 |
74 |
| -- 预制角色功能(面具),方便地创建、分享和调试你的个性化对话 |
75 |
| -- 海量的内置 prompt 列表,来自[中文](https://github.com/PlexPt/awesome-chatgpt-prompts-zh)和[英文](https://github.com/f/awesome-chatgpt-prompts) |
76 |
| -- 自动压缩上下文聊天记录,在节省 Token 的同时支持超长对话 |
77 |
| -- 多国语言支持:English, 简体中文, 繁体中文, 日本語, Español, Italiano, Türkçe, Deutsch, Tiếng Việt, Русский, Čeština |
78 |
| -- 拥有自己的域名?好上加好,绑定后即可在任何地方**无障碍**快速访问 |
79 |
| - |
80 |
| -## 开发计划 |
81 |
| - |
82 |
| -- [x] 为每个对话设置系统 Prompt [#138](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/138) |
83 |
| -- [x] 允许用户自行编辑内置 Prompt 列表 |
84 |
| -- [x] 预制角色:使用预制角色快速定制新对话 [#993](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/993) |
85 |
| -- [x] 分享为图片,分享到 ShareGPT 链接 [#1741](https://github.com/Yidadaa/ChatGPT-Next-Web/pull/1741) |
86 |
| -- [x] 使用 tauri 打包桌面应用 |
87 |
| -- [x] 支持自部署的大语言模型:开箱即用 [RWKV-Runner](https://github.com/josStorer/RWKV-Runner) ,服务端部署 [LocalAI 项目](https://github.com/go-skynet/LocalAI) llama / gpt4all / rwkv / vicuna / koala / gpt4all-j / cerebras / falcon / dolly 等等 |
88 |
| -- [ ] 插件机制,支持联网搜索、计算器、调用其他平台 api [#165](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/165) |
89 |
| - |
90 |
| -## 最新动态 |
91 |
| - |
92 |
| -- 🚀 v2.0 已经发布,现在你可以使用面具功能快速创建预制对话了! 了解更多: [ChatGPT 提示词高阶技能:零次、一次和少样本提示](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/138)。 |
93 |
| -- 💡 想要更方便地随时随地使用本项目?可以试下这款桌面插件:https://github.com/mushan0x0/AI0x0.com |
94 |
| -- 🚀 v2.7 现在可以将会话分享为图片了,也可以分享到 ShareGPT 的在线链接。 |
95 |
| -- 🚀 v2.8 发布了横跨 Linux/Windows/MacOS 的体积极小的客户端。 |
96 |
| - |
97 |
| -## Get Started |
98 |
| - |
99 |
| -> [简体中文 > 如何开始使用](./README_CN.md#开始使用) |
100 |
| -
|
101 |
| -1. Get [OpenAI API Key](https://platform.openai.com/account/api-keys); |
102 |
| -2. Click |
103 |
| - [](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web), remember that `CODE` is your page password; |
104 |
| -3. Enjoy :) |
105 |
| - |
106 |
| -## FAQ |
107 |
| - |
108 |
| -[简体中文 > 常见问题](./docs/faq-cn.md) |
109 |
| - |
110 |
| -[English > FAQ](./docs/faq-en.md) |
111 |
| - |
112 |
| -## Keep Updated |
113 |
| - |
114 |
| -> [简体中文 > 如何保持代码更新](./README_CN.md#保持更新) |
115 |
| -
|
116 |
| -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. |
117 |
| - |
118 |
| -We recommend that you follow the steps below to re-deploy: |
119 |
| - |
120 |
| -- Delete the original repository; |
121 |
| -- Use the fork button in the upper right corner of the page to fork this project; |
122 |
| -- Choose and deploy in Vercel again, [please see the detailed tutorial](./docs/vercel-cn.md). |
123 |
| - |
124 |
| -### Enable Automatic Updates |
125 |
| - |
126 |
| -> If you encounter a failure of Upstream Sync execution, please manually sync fork once. |
127 |
| -
|
128 |
| -After forking the project, due to the limitations imposed by GitHub, you need to manually enable Workflows and Upstream Sync Action on the Actions page of the forked project. Once enabled, automatic updates will be scheduled every hour: |
129 |
| - |
130 |
| - |
131 |
| - |
132 |
| - |
133 |
| - |
134 |
| -### Manually Updating Code |
135 |
| - |
136 |
| -If you want to update instantly, you can check out the [GitHub documentation](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) to learn how to synchronize a forked project with upstream code. |
137 |
| - |
138 |
| -You can star or watch this project or follow author to get release notifictions in time. |
139 |
| - |
140 |
| -## Access Password |
141 |
| - |
142 |
| -> [简体中文 > 如何增加访问密码](./README_CN.md#配置页面访问密码) |
143 |
| -
|
144 |
| -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: |
145 |
| - |
146 |
| -``` |
147 |
| -code1,code2,code3 |
148 |
| -``` |
149 |
| - |
150 |
| -After adding or modifying this environment variable, please redeploy the project for the changes to take effect. |
151 |
| - |
152 |
| -## Environment Variables |
153 |
| - |
154 |
| -> [简体中文 > 如何配置 api key、访问密码、接口代理](./README_CN.md#环境变量) |
155 |
| -
|
156 |
| -### `OPENAI_API_KEY` (required) |
157 |
| - |
158 |
| -Your openai api key. |
159 |
| - |
160 |
| -### `CODE` (optional) |
161 |
| - |
162 |
| -Access passsword, separated by comma. |
163 |
| - |
164 |
| -### `BASE_URL` (optional) |
165 |
| - |
166 |
| -> Default: `https://api.openai.com` |
167 |
| -
|
168 |
| -> Examples: `http://your-openai-proxy.com` |
169 |
| -
|
170 |
| -Override openai api request base url. |
171 |
| - |
172 |
| -### `OPENAI_ORG_ID` (optional) |
173 |
| - |
174 |
| -Specify OpenAI organization ID. |
175 |
| - |
176 |
| -### `HIDE_USER_API_KEY` (optional) |
177 |
| - |
178 |
| -> Default: Empty |
179 |
| -
|
180 |
| -If you do not want users to input their own API key, set this value to 1. |
181 |
| - |
182 |
| -### `DISABLE_GPT4` (optional) |
183 |
| - |
184 |
| -> Default: Empty |
185 |
| -
|
186 |
| -If you do not want users to use GPT-4, set this value to 1. |
187 |
| - |
188 |
| -### `HIDE_BALANCE_QUERY` (optional) |
189 |
| - |
190 |
| -> Default: Empty |
191 |
| -
|
192 |
| -If you do not want users to query balance, set this value to 1. |
193 |
| - |
194 |
| -## Requirements |
195 |
| - |
196 |
| -NodeJS >= 18, Docker >= 20 |
197 |
| - |
198 |
| -## Development |
199 |
| - |
200 |
| -> [简体中文 > 如何进行二次开发](./README_CN.md#开发) |
201 |
| -
|
202 |
| -[](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web) |
203 |
| - |
204 |
| -Before starting development, you must create a new `.env.local` file at project root, and place your api key into it: |
205 |
| - |
206 |
| -``` |
207 |
| -OPENAI_API_KEY=<your api key here> |
208 |
| -
|
209 |
| -# if you are not able to access openai service, use this BASE_URL |
210 |
| -BASE_URL=https://chatgpt1.nextweb.fun/api/proxy |
211 |
| -``` |
212 |
| - |
213 |
| -### Local Development |
214 |
| - |
215 |
| -```shell |
216 |
| -# 1. install nodejs and yarn first |
217 |
| -# 2. config local env vars in `.env.local` |
218 |
| -# 3. run |
219 |
| -yarn install |
220 |
| -yarn dev |
221 |
| -``` |
| 23 | +## 声明 |
222 | 24 |
|
223 |
| -## Deployment |
| 25 | +项目 Fork 自 [ChatGPT-Next-Web](https://github.com/Yidadaa/ChatGPT-Next-Web),在此基础上增加了 Azure OpenAI 部署支持,其余 feature 与该项目保持同步更新。 |
224 | 26 |
|
225 |
| -> [简体中文 > 如何部署到私人服务器](./README_CN.md#部署) |
| 27 | +以下的文档仅补充 Azure OpenAI 相关用法,其余用法请参考原项目。 |
226 | 28 |
|
227 |
| -### Docker (Recommended) |
| 29 | +## 特性使用说明 |
228 | 30 |
|
229 |
| -```shell |
230 |
| -docker pull yidadaa/chatgpt-next-web |
| 31 | +### 效果图 |
231 | 32 |
|
232 |
| -docker run -d -p 3000:3000 \ |
233 |
| - -e OPENAI_API_KEY="sk-xxxx" \ |
234 |
| - -e CODE="your-password" \ |
235 |
| - yidadaa/chatgpt-next-web |
236 |
| -``` |
| 33 | + |
237 | 34 |
|
238 |
| -You can start service behind a proxy: |
| 35 | +### 先决条件 |
239 | 36 |
|
240 |
| -```shell |
241 |
| -docker run -d -p 3000:3000 \ |
242 |
| - -e OPENAI_API_KEY="sk-xxxx" \ |
243 |
| - -e CODE="your-password" \ |
244 |
| - -e PROXY_URL="http://localhost:7890" \ |
245 |
| - yidadaa/chatgpt-next-web |
246 |
| -``` |
| 37 | +- 拥有 Azure 订阅 - [免费创建订阅](https://azure.microsoft.com/zh-cn/free/cognitive-services/) |
| 38 | +- 已在所需的 Azure 订阅中授予对 Azure OpenAI 的访问权限。可以通过在 [https://aka.ms/oai/access](https://aka.ms/oai/access) 中填写表单来申请对 Azure OpenAI 服务的访问权限。 |
247 | 39 |
|
248 |
| -If your proxy needs password, use: |
| 40 | +- 已部署模型的 Azure OpenAI 资源。 有关模型部署的详细信息,请参阅[资源部署指南](https://learn.microsoft.com/zh-cn/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal)。 |
249 | 41 |
|
250 |
| -```shell |
251 |
| --e PROXY_URL="http://127.0.0.1:7890 user pass" |
252 |
| -``` |
| 42 | +### 概念说明 |
253 | 43 |
|
254 |
| -### Shell |
| 44 | +若要成功地对 Azure OpenAI 发出调用,需要准备好以下各项: |
255 | 45 |
|
256 |
| -```shell |
257 |
| -bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/scripts/setup.sh) |
258 |
| -``` |
| 46 | +| 变量名称 | 值 | |
| 47 | +| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 48 | +| ENDPOINT | 从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值。 也可在“Azure OpenAI Studio”>“操场”>“代码视图”中找到该值。 示例终结点为:[https://docs-test-001.openai.azure.com/](https://docs-test-001.openai.azure.com/)。 | |
| 49 | +| API-KEY | 从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值。 可以使用 KEY1 或 KEY2。 | |
| 50 | +| DEPLOYMENT-NAME | 此值将对应于在部署模型时为部署选择的自定义名称。 此值可在 Azure 门户中的“资源管理”>“部署”下,或者在 Azure OpenAI Studio 中的“管理”>“部署”下找到此值。 | |
259 | 51 |
|
260 |
| -## Screenshots |
| 52 | +### 环境变量 |
261 | 53 |
|
262 |
| - |
| 54 | +在 Vercel 部署时,需要参考以下环境变量进行设置: |
263 | 55 |
|
264 |
| - |
| 56 | +#### `AZURE_API_KEY` (必填项) |
265 | 57 |
|
266 |
| -## Donation |
| 58 | +API-KEY 密钥,从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值。 |
267 | 59 |
|
268 |
| -[Buy Me a Coffee](https://www.buymeacoffee.com/yidadaa) |
| 60 | +#### `AZURE_ENDPOINT` (必填项) |
269 | 61 |
|
270 |
| -## Special Thanks |
| 62 | +ENDPOINT。从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值。 也可在“Azure OpenAI Studio”>“操场”>“代码视图”中找到该值。 |
271 | 63 |
|
272 |
| -### Sponsor |
| 64 | +#### `AZURE_DEPLOY_NAME` (必填项) |
273 | 65 |
|
274 |
| -> 仅列出捐赠金额 >= 100RMB 的用户。 |
| 66 | +DEPLOYMENT-NAME。 此值将对应于在部署模型时为部署选择的自定义名称。 此值可在 Azure 门户中的“资源管理”>“部署”下,或者在 Azure OpenAI Studio 中的“管理”>“部署”下找到此值。 |
275 | 67 |
|
276 |
| -[@mushan0x0](https://github.com/mushan0x0) |
277 |
| -[@ClarenceDan](https://github.com/ClarenceDan) |
278 |
| -[@zhangjia](https://github.com/zhangjia) |
279 |
| -[@hoochanlon](https://github.com/hoochanlon) |
280 |
| -[@relativequantum](https://github.com/relativequantum) |
281 |
| -[@desenmeng](https://github.com/desenmeng) |
282 |
| -[@webees](https://github.com/webees) |
283 |
| -[@chazzhou](https://github.com/chazzhou) |
284 |
| -[@hauy](https://github.com/hauy) |
285 |
| -[@Corwin006](https://github.com/Corwin006) |
286 |
| -[@yankunsong](https://github.com/yankunsong) |
287 |
| -[@ypwhs](https://github.com/ypwhs) |
288 |
| -[@fxxxchao](https://github.com/fxxxchao) |
289 |
| -[@hotic](https://github.com/hotic) |
290 |
| -[@WingCH](https://github.com/WingCH) |
291 |
| -[@jtung4](https://github.com/jtung4) |
292 |
| -[@micozhu](https://github.com/micozhu) |
293 |
| -[@jhansion](https://github.com/jhansion) |
294 |
| -[@Sha1rholder](https://github.com/Sha1rholder) |
295 |
| -[@AnsonHyq](https://github.com/AnsonHyq) |
296 |
| -[@synwith](https://github.com/synwith) |
| 68 | +#### `CODE` (可选) |
297 | 69 |
|
298 |
| -### Contributor |
| 70 | +访问密码,可选,可以使用逗号隔开多个密码。 |
299 | 71 |
|
300 |
| -[Contributors](https://github.com/Yidadaa/ChatGPT-Next-Web/graphs/contributors) |
| 72 | +**警告**:如果不填写此项,则任何人都可以直接使用你部署后的网站,可能会导致你的 token 被急速消耗完毕,建议填写此选项。 |
301 | 73 |
|
302 |
| -## LICENSE |
| 74 | +## Contributor |
303 | 75 |
|
304 |
| -[Anti 996 License](https://github.com/kattgu7/Anti-996-License/blob/master/LICENSE_CN_EN) |
| 76 | +[Contributors](https://github.com/realDuang/ChatGPT-Next-Web/graphs/contributors) |
0 commit comments