Deploy to GitHub pages
This commit is contained in:
33
404.html
Normal file
33
404.html
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<meta name="generator" content="VuePress 2.0.0-beta.61">
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--c-bg: #fff;
|
||||||
|
}
|
||||||
|
html.dark {
|
||||||
|
--c-bg: #22272e;
|
||||||
|
}
|
||||||
|
html, body {
|
||||||
|
background-color: var(--c-bg);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
const userMode = localStorage.getItem('vuepress-color-scheme');
|
||||||
|
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
|
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
||||||
|
document.documentElement.classList.toggle('dark', true);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<title>ChatGPT UI</title><meta name="description" content="A ChatGPT web client">
|
||||||
|
<link rel="preload" href="/chatgpt-ui/assets/style-ad6949cb.css" as="style"><link rel="stylesheet" href="/chatgpt-ui/assets/style-ad6949cb.css">
|
||||||
|
<link rel="modulepreload" href="/chatgpt-ui/assets/app-525ee8ad.js"><link rel="modulepreload" href="/chatgpt-ui/assets/framework-5866ffd3.js"><link rel="modulepreload" href="/chatgpt-ui/assets/404.html-87d54bd8.js"><link rel="modulepreload" href="/chatgpt-ui/assets/404.html-60b35caa.js"><link rel="prefetch" href="/chatgpt-ui/assets/index.html-f32af385.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/buymeacoffee.html-f20ec2fb.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/configuration.html-ed512da6.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/development.html-117eb2b5.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/problems.html-3485ea96.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/quick-start.html-5d24620c.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/index.html-a9203641.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/buymeacoffee.html-22a781eb.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/configuration.html-0ef661b4.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/development.html-b8d21bb5.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/problems.html-f1039fc4.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/quick-start.html-91a3ce5d.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/index.html-18d42ac0.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/buymeacoffee.html-138309cb.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/configuration.html-a7684ba6.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/development.html-df5e9336.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/problems.html-84e6145b.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/quick-start.html-b336d0c1.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/index.html-d042d854.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/buymeacoffee.html-5158290f.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/configuration.html-99825d43.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/development.html-989a2b06.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/problems.html-dabd58d0.js" as="script"><link rel="prefetch" href="/chatgpt-ui/assets/quick-start.html-fc1bc91c.js" as="script">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"><!--[--><div class="theme-container"><main class="page"><div class="theme-default-content"><h1>404</h1><blockquote>How did we get here?</blockquote><a href="/chatgpt-ui/" class="">Take me home</a></div></main></div><!----><!--]--></div>
|
||||||
|
<script type="module" src="/chatgpt-ui/assets/app-525ee8ad.js" defer></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1
assets/404.html-60b35caa.js
Normal file
1
assets/404.html-60b35caa.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const t=JSON.parse('{"key":"v-3706649a","path":"/404.html","title":"","lang":"en-US","frontmatter":{"layout":"NotFound"},"headers":[],"git":{},"filePathRelative":null}');export{t as data};
|
||||||
1
assets/404.html-87d54bd8.js
Normal file
1
assets/404.html-87d54bd8.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import{_ as e,p as t,q as _}from"./framework-5866ffd3.js";const c={};function r(n,o){return t(),_("div")}const a=e(c,[["render",r],["__file","404.html.vue"]]);export{a as default};
|
||||||
6
assets/app-525ee8ad.js
Normal file
6
assets/app-525ee8ad.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/back-to-top-8efcbe56.svg
Normal file
1
assets/back-to-top-8efcbe56.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49.484 28.284"><g transform="translate(-229 -126.358)" fill="currentColor"><rect width="35" height="5" rx="2" transform="rotate(-45 296.902 -200.874)"/><rect width="35" height="5" rx="2" transform="rotate(-135 169.502 20.377)"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 291 B |
1
assets/bmc_qr-9db17e16.js
Normal file
1
assets/bmc_qr-9db17e16.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const t="/chatgpt-ui/images/bmc_qr.png";export{t as _};
|
||||||
1
assets/buymeacoffee.html-138309cb.js
Normal file
1
assets/buymeacoffee.html-138309cb.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import{_ as n}from"./bmc_qr-9db17e16.js";import{_ as a,M as r,p as s,q as c,R as e,t as o,N as l}from"./framework-5866ffd3.js";const f={},i=e("h1",{id:"donation",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#donation","aria-hidden":"true"},"#"),o(" Donation")],-1),_=e("blockquote",null,[e("p",null,"If this project is helpful to you, it is also helping me.")],-1),m={href:"https://www.buymeacoffee.com/WongSaang",target:"_blank",rel:"noopener noreferrer"},u=e("p",null,[e("img",{src:n,alt:"Buy Me A Coffee"})],-1);function p(d,h){const t=r("ExternalLinkIcon");return s(),c("div",null,[i,_,e("p",null,[o("If you want to support me, Buy me a coffee ❤️ "),e("a",m,[o("https://www.buymeacoffee.com/WongSaang"),l(t)])]),u])}const g=a(f,[["render",p],["__file","buymeacoffee.html.vue"]]);export{g as default};
|
||||||
1
assets/buymeacoffee.html-22a781eb.js
Normal file
1
assets/buymeacoffee.html-22a781eb.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-603f36a2","path":"/zh/guide/buymeacoffee.html","title":"续杯咖啡","lang":"zh-CN","frontmatter":{},"headers":[],"git":{"updatedTime":1681222096000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":1}]},"filePathRelative":"zh/guide/buymeacoffee.md"}');export{e as data};
|
||||||
1
assets/buymeacoffee.html-5158290f.js
Normal file
1
assets/buymeacoffee.html-5158290f.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import{_ as n}from"./bmc_qr-9db17e16.js";import{_ as a,M as r,p as c,q as s,R as e,t as o,N as _}from"./framework-5866ffd3.js";const l={},f=e("h1",{id:"续杯咖啡",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#续杯咖啡","aria-hidden":"true"},"#"),o(" 续杯咖啡")],-1),i=e("blockquote",null,[e("p",null,"如果这个项目对您有帮助,这也是在帮助我自己。")],-1),m={href:"https://www.buymeacoffee.com/WongSaang",target:"_blank",rel:"noopener noreferrer"},d=e("p",null,[e("img",{src:n,alt:"Buy Me A Coffee"})],-1);function u(h,p){const t=r("ExternalLinkIcon");return c(),s("div",null,[f,i,e("p",null,[o("如果你想支持我,给我续杯咖啡吧 ❤️ "),e("a",m,[o("https://www.buymeacoffee.com/WongSaang"),_(t)])]),d])}const g=a(l,[["render",u],["__file","buymeacoffee.html.vue"]]);export{g as default};
|
||||||
1
assets/buymeacoffee.html-f20ec2fb.js
Normal file
1
assets/buymeacoffee.html-f20ec2fb.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-eb956884","path":"/guide/buymeacoffee.html","title":"Donation","lang":"en-US","frontmatter":{},"headers":[],"git":{"updatedTime":1681222096000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":1}]},"filePathRelative":"guide/buymeacoffee.md"}');export{e as data};
|
||||||
1
assets/configuration.html-0ef661b4.js
Normal file
1
assets/configuration.html-0ef661b4.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const l=JSON.parse('{"key":"v-81f65e84","path":"/zh/guide/configuration.html","title":"配置参考","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"数据库","slug":"数据库","link":"#数据库","children":[]},{"level":2,"title":"邮箱验证","slug":"邮箱验证","link":"#邮箱验证","children":[]},{"level":2,"title":"API 代理","slug":"api-代理","link":"#api-代理","children":[]},{"level":2,"title":"后端 CSRF 白名单","slug":"后端-csrf-白名单","link":"#后端-csrf-白名单","children":[]},{"level":2,"title":"客户端配置","slug":"客户端配置","link":"#客户端配置","children":[]},{"level":2,"title":"用户注册控制","slug":"用户注册控制","link":"#用户注册控制","children":[]},{"level":2,"title":"网页搜索功能控制","slug":"网页搜索功能控制","link":"#网页搜索功能控制","children":[]},{"level":2,"title":"节俭模式控制","slug":"节俭模式控制","link":"#节俭模式控制","children":[]}],"git":{"updatedTime":1681785875000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":2},{"name":"AI&I","email":"iluozan@126.com","commits":1}]},"filePathRelative":"zh/guide/configuration.md"}');export{l as data};
|
||||||
13
assets/configuration.html-99825d43.js
Normal file
13
assets/configuration.html-99825d43.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import{_ as e,p as t,q as d,a1 as a}from"./framework-5866ffd3.js";const r={},i=a(`<h1 id="配置参考" tabindex="-1"><a class="header-anchor" href="#配置参考" aria-hidden="true">#</a> 配置参考</h1><h2 id="数据库" tabindex="-1"><a class="header-anchor" href="#数据库" aria-hidden="true">#</a> 数据库</h2><p>后端默认使用内置的 Sqlite 来存储数据,如果不连接外部数据库,数据将在容器销毁后丢失。</p><p><code>chatgpt-ui-wsgi-server</code> 镜像提供环境变量 <code>DB_URL</code> 来配置与外部数据库的连接,以下是 <code>DB_URL</code> 的链接格式对照表。</p><table><thead><tr><th>数据库</th><th>链接</th></tr></thead><tbody><tr><td>PostgreSQL</td><td>postgres://USER:PASSWORD@HOST:PORT/DATABASE_NAME</td></tr><tr><td>MySQL</td><td>mysql://USER:PASSWORD@HOST:PORT/DATABASE_NAME</td></tr><tr><td>SQLite</td><td>sqlite:///PATH</td></tr></tbody></table><p>例如我使用 PostgreSQL,则配置如下:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>backend-wsgi-server:
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="邮箱验证" tabindex="-1"><a class="header-anchor" href="#邮箱验证" aria-hidden="true">#</a> 邮箱验证</h2><p>如果你开放用户注册功能,并需要向用户发送邮箱激活链接,需要在 <code>wsgi-server</code> 服务中配置以下环境变量:</p><table><thead><tr><th>参数</th><th>说明</th><th>默认值</th></tr></thead><tbody><tr><td>ACCOUNT_EMAIL_VERIFICATION</td><td>邮箱验证方式,可选值: none, optional, mandatory</td><td>optional</td></tr><tr><td>EMAIL_HOST</td><td>SMTP 服务器地址</td><td>smtp.mailgun.org</td></tr><tr><td>EMAIL_PORT</td><td>SMTP 服务器端口号</td><td>587</td></tr><tr><td>EMAIL_HOST_USER</td><td>用户名</td><td>-</td></tr><tr><td>EMAIL_HOST_PASSWORD</td><td>密码</td><td>-</td></tr><tr><td>EMAIL_USE_TLS</td><td>是否加密</td><td>True</td></tr><tr><td>EMAIL_FROM</td><td>发件邮箱</td><td>webmaster@localhost</td></tr></tbody></table><h2 id="api-代理" tabindex="-1"><a class="header-anchor" href="#api-代理" aria-hidden="true">#</a> API 代理</h2><p>如果您的网络无法请求 OpenAI 的 API 地址,您可以在 <code>wsgi-server</code> 服务中配置代理,如何搭建代理服务,需要您自行搜索。</p><p>例如:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>backend-wsgi-server:
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- OPENAI_API_PROXY=https://openai.proxy.com/v1 # 注意,域名后面需要带上 v1
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="后端-csrf-白名单" tabindex="-1"><a class="header-anchor" href="#后端-csrf-白名单" aria-hidden="true">#</a> 后端 CSRF 白名单</h2><p>如果你在访问管理后台的时候遇到 <code>CSRF verification failed</code>,可能你的 <code>APP_DOMAIN</code> 没有配置对。在 <code>wsgi-server</code> 服务下有个环境变量 <code>wsgi-server</code>。 它的值应该是 <code>backend-web-server</code> 的地址+端口, 默认: <code>localhost:9000</code>。</p><p>假如我把 <code>chagpt.com</code> 这个域名解析到了服务器,并且我的 <code>backend-web-server</code> 服务绑定了 9000 这个端口。正确的配置如下:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>backend-wsgi-server:
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- APP_DOMAIN=chagpt.com:9000
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="客户端配置" tabindex="-1"><a class="header-anchor" href="#客户端配置" aria-hidden="true">#</a> 客户端配置</h2><table><thead><tr><th>参数</th><th>说明</th><th>默认值</th></tr></thead><tbody><tr><td>SERVER_DOMAIN</td><td>服务端地址</td><td>http://backend-web-server</td></tr><tr><td>DEFAULT_LOCALE</td><td>默认语言</td><td>en</td></tr><tr><td>NUXT_PUBLIC_APP_NAME</td><td>应用名称</td><td>ChatGPT UI</td></tr><tr><td>NUXT_PUBLIC_TYPEWRITER</td><td>是否开启 打字机 效果[true/false]</td><td>true</td></tr><tr><td>NUXT_PUBLIC_TYPEWRITER_DELAY</td><td>打字机效果的延迟时间,单位:毫秒</td><td>50</td></tr></tbody></table><h2 id="用户注册控制" tabindex="-1"><a class="header-anchor" href="#用户注册控制" aria-hidden="true">#</a> 用户注册控制</h2><p>部署完整后,在管理后台的 <code>Chat->Setting</code> 下面有 <code>open_registration</code> 设置项,用于控制是否开放用户注册。默认是 <code>True</code> (允许用户注册),如果不需要,请改成 <code>False</code>。</p><h2 id="网页搜索功能控制" tabindex="-1"><a class="header-anchor" href="#网页搜索功能控制" aria-hidden="true">#</a> 网页搜索功能控制</h2><p>该功能默认处于关闭状态,你可以在管理后台的 <code>Chat->Settings</code> 中开启它,在 Settings 中有一个 <code>open_web_search</code> 的设置项,把它的值设置为 <code>True</code>。</p><h2 id="节俭模式控制" tabindex="-1"><a class="header-anchor" href="#节俭模式控制" aria-hidden="true">#</a> 节俭模式控制</h2><p>该功能默认处于开启状态,你可以在管理后台的 <code>Chat->Settings</code> 中关闭它,在 Settings 中有一个 <code>open_frugal_mode_control</code> 的设置项,把它的值设置为 <code>False</code>。</p>`,26),n=[i];function s(c,o){return t(),d("div",null,n)}const l=e(r,[["render",s],["__file","configuration.html.vue"]]);export{l as default};
|
||||||
13
assets/configuration.html-a7684ba6.js
Normal file
13
assets/configuration.html-a7684ba6.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import{_ as e,p as t,q as a,a1 as d}from"./framework-5866ffd3.js";const r={},n=d(`<h1 id="configuration-reference" tabindex="-1"><a class="header-anchor" href="#configuration-reference" aria-hidden="true">#</a> Configuration Reference</h1><h2 id="database" tabindex="-1"><a class="header-anchor" href="#database" aria-hidden="true">#</a> Database</h2><p>By default, the backend uses the built-in Sqlite to store data. If an external database is not connected, the data will be lost after the container is destroyed.</p><p>The <code>chatgpt-ui-wsgi-server</code> image provides the environment variable <code>DB_URL</code> to configure the connection to an external database. The following table shows the link format of the <code>DB_URL</code>.</p><table><thead><tr><th>DB</th><th>LINK</th></tr></thead><tbody><tr><td>PostgreSQL</td><td>postgres://USER:PASSWORD@HOST:PORT/DATABASE_NAME</td></tr><tr><td>MySQL</td><td>mysql://USER:PASSWORD@HOST:PORT/DATABASE_NAME</td></tr><tr><td>SQLite</td><td>sqlite:///PATH</td></tr></tbody></table><p>For example, if I am using PostgreSQL, the configuration is as follows:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>backend-wsgi-server:
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="email-verification" tabindex="-1"><a class="header-anchor" href="#email-verification" aria-hidden="true">#</a> Email verification</h2><p>If you open the user registration feature and need to send email activation links to users, you need to configure the following environment variables in the <code>wsgi-server</code> service:</p><table><thead><tr><th>Parameters</th><th>Description</th><th>Default</th></tr></thead><tbody><tr><td>ACCOUNT_EMAIL_VERIFICATION</td><td>E-mail authentication method, optional value: none, optional, mandatory</td><td>optional</td></tr><tr><td>EMAIL_HOST</td><td>SMTP server address</td><td>smtp.mailgun.org</td></tr><tr><td>EMAIL_PORT</td><td>SMTP server port</td><td>587</td></tr><tr><td>EMAIL_HOST_USER</td><td>User name</td><td>-</td></tr><tr><td>EMAIL_HOST_PASSWORD</td><td>Password</td><td>-</td></tr><tr><td>EMAIL_USE_TLS</td><td>Whether to encrypt</td><td>True</td></tr><tr><td>EMAIL_FROM</td><td>From email</td><td>webmaster@localhost</td></tr></tbody></table><h2 id="api-proxy" tabindex="-1"><a class="header-anchor" href="#api-proxy" aria-hidden="true">#</a> API Proxy</h2><p>If you are unable to request the OpenAI API address due to network restrictions, you can configure a proxy in the <code>wsgi-server</code> service. You will need to search for how to set up a proxy server on your own.</p><p>For example:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>backend-wsgi-server:
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- OPENAI_API_PROXY=https://openai.proxy.com/v1
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="backend-csrf-whitelist" tabindex="-1"><a class="header-anchor" href="#backend-csrf-whitelist" aria-hidden="true">#</a> Backend CSRF whitelist</h2><p>If you encounter <code>CSRF verification failed</code> while accessing the management background, your <code>APP_DOMAIN</code> may not be configured correctly. Under the <code>wsgi-server</code> service, there is an environment variable <code>wsgi-server</code>. Its value should be the address and port of <code>backend-web-server</code>, default: <code>localhost:9000</code>.</p><p>Suppose I have resolved the domain name <code>chagpt.com</code> to the server, and my <code>backend-web-server</code> service is bound to port 9000. The correct configuration is as follows:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>backend-wsgi-server:
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- APP_DOMAIN=chagpt.com:9000
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="client-configuration" tabindex="-1"><a class="header-anchor" href="#client-configuration" aria-hidden="true">#</a> Client Configuration</h2><table><thead><tr><th>Parameter</th><th>Description</th><th>Default Value</th></tr></thead><tbody><tr><td>SERVER_DOMAIN</td><td>Server Address</td><td>http://backend-web-server</td></tr><tr><td>DEFAULT_LOCALE</td><td>Default Language</td><td>en</td></tr><tr><td>NUXT_PUBLIC_APP_NAME</td><td>Application Name</td><td>ChatGPT UI</td></tr><tr><td>NUXT_PUBLIC_TYPEWRITER</td><td>Enable Typewriter Effect [true/false]</td><td>true</td></tr><tr><td>NUXT_PUBLIC_TYPEWRITER_DELAY</td><td>Typewriter Effect Delay in milliseconds</td><td>50</td></tr></tbody></table><h2 id="user-registration-control" tabindex="-1"><a class="header-anchor" href="#user-registration-control" aria-hidden="true">#</a> User Registration Control</h2><p>After deployment, there is an <code>open_registration</code> setting under <code>Chat->Settings</code> in the admin panel to control whether user registration is allowed. The default value is <code>True</code> (allowing user registration). If not needed, please change it to <code>False</code>.</p><h2 id="web-search-function-control" tabindex="-1"><a class="header-anchor" href="#web-search-function-control" aria-hidden="true">#</a> Web Search Function Control</h2><p>This feature is disabled by default. You can enable it in the admin panel under <code>Chat->Settings</code>. There is a setting called <code>open_web_search</code>, set its value to <code>True</code>.</p><h2 id="frugal-mode-control" tabindex="-1"><a class="header-anchor" href="#frugal-mode-control" aria-hidden="true">#</a> Frugal Mode Control</h2><p>This feature is enabled by default. You can disable it in the <code>Chat->Settings</code> section of the management backend. There is a setting called <code>open_frugal_mode_control</code> in Settings. Set its value to <code>False</code>.</p>`,26),i=[n];function o(s,c){return t(),a("div",null,i)}const h=e(r,[["render",o],["__file","configuration.html.vue"]]);export{h as default};
|
||||||
1
assets/configuration.html-ed512da6.js
Normal file
1
assets/configuration.html-ed512da6.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-4f4ccb8f","path":"/guide/configuration.html","title":"Configuration Reference","lang":"en-US","frontmatter":{},"headers":[{"level":2,"title":"Database","slug":"database","link":"#database","children":[]},{"level":2,"title":"Email verification","slug":"email-verification","link":"#email-verification","children":[]},{"level":2,"title":"API Proxy","slug":"api-proxy","link":"#api-proxy","children":[]},{"level":2,"title":"Backend CSRF whitelist","slug":"backend-csrf-whitelist","link":"#backend-csrf-whitelist","children":[]},{"level":2,"title":"Client Configuration","slug":"client-configuration","link":"#client-configuration","children":[]},{"level":2,"title":"User Registration Control","slug":"user-registration-control","link":"#user-registration-control","children":[]},{"level":2,"title":"Web Search Function Control","slug":"web-search-function-control","link":"#web-search-function-control","children":[]},{"level":2,"title":"Frugal Mode Control","slug":"frugal-mode-control","link":"#frugal-mode-control","children":[]}],"git":{"updatedTime":1681785875000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":2},{"name":"AI&I","email":"iluozan@126.com","commits":1}]},"filePathRelative":"guide/configuration.md"}');export{e as data};
|
||||||
1
assets/development.html-117eb2b5.js
Normal file
1
assets/development.html-117eb2b5.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-531add2c","path":"/guide/development.html","title":"Development Guide","lang":"en-US","frontmatter":{},"headers":[{"level":2,"title":"Front-end","slug":"front-end","link":"#front-end","children":[{"level":3,"title":"Environment Setup","slug":"environment-setup","link":"#environment-setup","children":[]},{"level":3,"title":"Install dependencies","slug":"install-dependencies","link":"#install-dependencies","children":[]},{"level":3,"title":"Start development server","slug":"start-development-server","link":"#start-development-server","children":[]},{"level":3,"title":"Build","slug":"build","link":"#build","children":[]},{"level":3,"title":"Package as a docker image","slug":"package-as-a-docker-image","link":"#package-as-a-docker-image","children":[]}]},{"level":2,"title":"Back-end","slug":"back-end","link":"#back-end","children":[{"level":3,"title":"Environment Setup","slug":"environment-setup-1","link":"#environment-setup-1","children":[]},{"level":3,"title":"Install dependencies","slug":"install-dependencies-1","link":"#install-dependencies-1","children":[]},{"level":3,"title":"Start development server","slug":"start-development-server-1","link":"#start-development-server-1","children":[]},{"level":3,"title":"Package as a docker image","slug":"package-as-a-docker-image-1","link":"#package-as-a-docker-image-1","children":[]}]}],"git":{"updatedTime":1681222096000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":1}]},"filePathRelative":"guide/development.md"}');export{e as data};
|
||||||
8
assets/development.html-989a2b06.js
Normal file
8
assets/development.html-989a2b06.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import{_ as d,M as i,p as s,q as o,R as a,t as e,N as n,a1 as t}from"./framework-5866ffd3.js";const c={},l=a("h1",{id:"开发指南",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#开发指南","aria-hidden":"true"},"#"),e(" 开发指南")],-1),h=a("h2",{id:"前端",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#前端","aria-hidden":"true"},"#"),e(" 前端")],-1),u={href:"https://vuejs.org/",target:"_blank",rel:"noopener noreferrer"},p={href:"https://nuxt.com/",target:"_blank",rel:"noopener noreferrer"},g={href:"https://github.com/WongSaang/chatgpt-ui",target:"_blank",rel:"noopener noreferrer"},v=t(`<h3 id="环境准备" tabindex="-1"><a class="header-anchor" href="#环境准备" aria-hidden="true">#</a> 环境准备</h3><p>安装最新稳定版 node.js,如果需要打包成 docker 镜像,还需要安装 docker。</p><h3 id="安装依赖" tabindex="-1"><a class="header-anchor" href="#安装依赖" aria-hidden="true">#</a> 安装依赖</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>yarn install
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="启动开发服务" tabindex="-1"><a class="header-anchor" href="#启动开发服务" aria-hidden="true">#</a> 启动开发服务</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>yarn dev
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="构建" tabindex="-1"><a class="header-anchor" href="#构建" aria-hidden="true">#</a> 构建</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>yarn build
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="打包成-docker-镜像" tabindex="-1"><a class="header-anchor" href="#打包成-docker-镜像" aria-hidden="true">#</a> 打包成 docker 镜像</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>docker build -t image-name:latest .
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h2 id="后端" tabindex="-1"><a class="header-anchor" href="#后端" aria-hidden="true">#</a> 后端</h2>`,11),m={href:"https://www.python.org/",target:"_blank",rel:"noopener noreferrer"},x={href:"https://djangoproject.com/",target:"_blank",rel:"noopener noreferrer"},b={href:"https://github.com/WongSaang/chatgpt-ui-server",target:"_blank",rel:"noopener noreferrer"},_=t(`<h3 id="环境准备-1" tabindex="-1"><a class="header-anchor" href="#环境准备-1" aria-hidden="true">#</a> 环境准备</h3><p>安装Python、pip/pipenv,如果需要打包成 docker 镜像,还需要安装 docker。</p><h3 id="安装依赖-1" tabindex="-1"><a class="header-anchor" href="#安装依赖-1" aria-hidden="true">#</a> 安装依赖</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>pip install -r requirements.txt
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="启动开发服务-1" tabindex="-1"><a class="header-anchor" href="#启动开发服务-1" aria-hidden="true">#</a> 启动开发服务</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>python manage.py runserver
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="打包成-docker-镜像-1" tabindex="-1"><a class="header-anchor" href="#打包成-docker-镜像-1" aria-hidden="true">#</a> 打包成 docker 镜像</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>docker build -t image-name:latest .
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div>`,8);function f(k,y){const r=i("ExternalLinkIcon");return s(),o("div",null,[l,h,a("p",null,[e("所需技能:"),a("a",u,[e("Vue"),n(r)]),e("、"),a("a",p,[e("Nuxt"),n(r)])]),a("p",null,[e("项目地址:"),a("a",g,[e("https://github.com/WongSaang/chatgpt-ui"),n(r)])]),v,a("p",null,[e("所需技能:"),a("a",m,[e("Python"),n(r)]),e("、"),a("a",x,[e("Django"),n(r)])]),a("p",null,[e("项目地址:"),a("a",b,[e("https://github.com/WongSaang/chatgpt-ui-server"),n(r)])]),_])}const j=d(c,[["render",f],["__file","development.html.vue"]]);export{j as default};
|
||||||
1
assets/development.html-b8d21bb5.js
Normal file
1
assets/development.html-b8d21bb5.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const l=JSON.parse('{"key":"v-1d0fd34e","path":"/zh/guide/development.html","title":"开发指南","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"前端","slug":"前端","link":"#前端","children":[{"level":3,"title":"环境准备","slug":"环境准备","link":"#环境准备","children":[]},{"level":3,"title":"安装依赖","slug":"安装依赖","link":"#安装依赖","children":[]},{"level":3,"title":"启动开发服务","slug":"启动开发服务","link":"#启动开发服务","children":[]},{"level":3,"title":"构建","slug":"构建","link":"#构建","children":[]},{"level":3,"title":"打包成 docker 镜像","slug":"打包成-docker-镜像","link":"#打包成-docker-镜像","children":[]}]},{"level":2,"title":"后端","slug":"后端","link":"#后端","children":[{"level":3,"title":"环境准备","slug":"环境准备-1","link":"#环境准备-1","children":[]},{"level":3,"title":"安装依赖","slug":"安装依赖-1","link":"#安装依赖-1","children":[]},{"level":3,"title":"启动开发服务","slug":"启动开发服务-1","link":"#启动开发服务-1","children":[]},{"level":3,"title":"打包成 docker 镜像","slug":"打包成-docker-镜像-1","link":"#打包成-docker-镜像-1","children":[]}]}],"git":{"updatedTime":1681222096000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":1}]},"filePathRelative":"zh/guide/development.md"}');export{l as data};
|
||||||
8
assets/development.html-df5e9336.js
Normal file
8
assets/development.html-df5e9336.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import{_ as d,M as i,p as s,q as o,R as a,t as e,N as t,a1 as r}from"./framework-5866ffd3.js";const l={},c=a("h1",{id:"development-guide",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#development-guide","aria-hidden":"true"},"#"),e(" Development Guide")],-1),h=a("h2",{id:"front-end",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#front-end","aria-hidden":"true"},"#"),e(" Front-end")],-1),u={href:"https://vuejs.org/",target:"_blank",rel:"noopener noreferrer"},p={href:"https://nuxt.com/",target:"_blank",rel:"noopener noreferrer"},g={href:"https://github.com/WongSaang/chatgpt-ui",target:"_blank",rel:"noopener noreferrer"},v=r(`<h3 id="environment-setup" tabindex="-1"><a class="header-anchor" href="#environment-setup" aria-hidden="true">#</a> Environment Setup</h3><p>Install the latest stable version of node.js. If you need to package it as a docker image, you also need to install docker.</p><h3 id="install-dependencies" tabindex="-1"><a class="header-anchor" href="#install-dependencies" aria-hidden="true">#</a> Install dependencies</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>yarn install
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="start-development-server" tabindex="-1"><a class="header-anchor" href="#start-development-server" aria-hidden="true">#</a> Start development server</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>yarn dev
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="build" tabindex="-1"><a class="header-anchor" href="#build" aria-hidden="true">#</a> Build</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>yarn build
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="package-as-a-docker-image" tabindex="-1"><a class="header-anchor" href="#package-as-a-docker-image" aria-hidden="true">#</a> Package as a docker image</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>docker build -t image-name:latest .
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h2 id="back-end" tabindex="-1"><a class="header-anchor" href="#back-end" aria-hidden="true">#</a> Back-end</h2>`,11),m={href:"https://www.python.org/",target:"_blank",rel:"noopener noreferrer"},b={href:"https://djangoproject.com/",target:"_blank",rel:"noopener noreferrer"},x={href:"https://github.com/WongSaang/chatgpt-ui-server",target:"_blank",rel:"noopener noreferrer"},_=r(`<h3 id="environment-setup-1" tabindex="-1"><a class="header-anchor" href="#environment-setup-1" aria-hidden="true">#</a> Environment Setup</h3><p>Install Python, pip/pipenv. If you need to package it as a docker image, you also need to install docker.</p><h3 id="install-dependencies-1" tabindex="-1"><a class="header-anchor" href="#install-dependencies-1" aria-hidden="true">#</a> Install dependencies</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>pip install -r requirements.txt
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="start-development-server-1" tabindex="-1"><a class="header-anchor" href="#start-development-server-1" aria-hidden="true">#</a> Start development server</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>python manage.py runserver
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="package-as-a-docker-image-1" tabindex="-1"><a class="header-anchor" href="#package-as-a-docker-image-1" aria-hidden="true">#</a> Package as a docker image</h3><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>docker build -t image-name:latest .
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div>`,8);function f(k,y){const n=i("ExternalLinkIcon");return s(),o("div",null,[c,h,a("p",null,[e("Required skills: "),a("a",u,[e("Vue"),t(n)]),e(", "),a("a",p,[e("Nuxt"),t(n)])]),a("p",null,[e("Project address: "),a("a",g,[e("https://github.com/WongSaang/chatgpt-ui"),t(n)])]),v,a("p",null,[e("Required skills: "),a("a",m,[e("Python"),t(n)]),e(", "),a("a",b,[e("Django"),t(n)])]),a("p",null,[e("Project address: "),a("a",x,[e("https://github.com/WongSaang/chatgpt-ui-server"),t(n)])]),_])}const I=d(l,[["render",f],["__file","development.html.vue"]]);export{I as default};
|
||||||
5
assets/framework-5866ffd3.js
Normal file
5
assets/framework-5866ffd3.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/index.html-18d42ac0.js
Normal file
1
assets/index.html-18d42ac0.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import{_ as i,M as s,p as o,q as r,R as e,t,N as n,a1 as l}from"./framework-5866ffd3.js";const d={},c=e("h1",{id:"introduction",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#introduction","aria-hidden":"true"},"#"),t(" Introduction")],-1),h=e("p",null,"ChatGPT UI is an unofficial ChatGPT web client. It supports multiple users, multiple languages, and multiple database connections for persistent data storage, such as Mysql, PostgreSQL, and Sqlite.",-1),u=e("p",null,"This project consists of two parts, the client-side and the server-side:",-1),p={href:"https://nuxt.com/",target:"_blank",rel:"noopener noreferrer"},g={href:"https://github.com/WongSaang/chatgpt-ui",target:"_blank",rel:"noopener noreferrer"},m={href:"https://djangoproject.com/",target:"_blank",rel:"noopener noreferrer"},f={href:"https://github.com/WongSaang/chatgpt-ui-server",target:"_blank",rel:"noopener noreferrer"},_=l('<h2 id="features" tabindex="-1"><a class="header-anchor" href="#features" aria-hidden="true">#</a> Features</h2><h3 id="client-side" tabindex="-1"><a class="header-anchor" href="#client-side" aria-hidden="true">#</a> Client-side</h3><ul><li>User system, supporting user registration, login, password modification, and more.</li><li>Multi-language user interface, supporting multiple languages.</li><li>Persistent data storage, supporting Mysql, PostgreSQL, and Sqlite databases.</li><li>Asynchronous conversation, supporting multiple conversations simultaneously.</li><li>Management of historical conversations.</li><li>Continuous chat, allowing ChatGPT clients to answer questions based on their historical chat records, resulting in better answers.</li><li>Web search capability, allowing ChatGPT to retrieve the latest information.</li><li>Convenient tools, supporting one-click message and code block copying, as well as message editing.</li><li>Common command management, allowing users to store and edit their own common commands.</li><li>PWA, supporting installation to the desktop.</li><li>User Token Usage Statistics.</li><li>Supports configuring multiple API Keys.</li></ul><h3 id="server-side" tabindex="-1"><a class="header-anchor" href="#server-side" aria-hidden="true">#</a> Server-side</h3><ul><li>The server-side has an administrative panel.</li><li>User management.</li><li>Conversation and message management.</li><li>Common configurations.</li></ul><h2 id="original-intention" tabindex="-1"><a class="header-anchor" href="#original-intention" aria-hidden="true">#</a> Original Intention</h2><p>Since using ChatGPT, it has become a good helper in work. Unfortunately, as we all know, it cannot be accessed in some places. But fortunately, OpenAI has opened up its API, so I started to write a user interface for myself.</p><blockquote><p>Nothing is difficult if you put your heart into it.</p></blockquote><p>Later, several friends asked me how to use ChatGPT because they didn't have the technical skills. So I started to develop a multi-user system, which can not only be used by myself but also help my family and friends around me.</p><p>After the project was open-sourced, many people raised issues and some even submitted PRs, and the project has developed to its current state. I also learned a lot during this process, as I have always believed that helping others is also helping oneself.</p>',10);function b(v,y){const a=s("ExternalLinkIcon");return o(),r("div",null,[c,h,u,e("ul",null,[e("li",null,[t("Client-side, based on "),e("a",p,[t("Nuxt"),n(a)]),t(", project address: "),e("a",g,[t("https://github.com/WongSaang/chatgpt-ui"),n(a)])]),e("li",null,[t("Server-side, based on "),e("a",m,[t("Django"),n(a)]),t(", project address: "),e("a",f,[t("https://github.com/WongSaang/chatgpt-ui-server"),n(a)])])]),_])}const w=i(d,[["render",b],["__file","index.html.vue"]]);export{w as default};
|
||||||
1
assets/index.html-a9203641.js
Normal file
1
assets/index.html-a9203641.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-2d0ad528","path":"/zh/","title":"介绍","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"功能与特性","slug":"功能与特性","link":"#功能与特性","children":[{"level":3,"title":"客户端","slug":"客户端","link":"#客户端","children":[]},{"level":3,"title":"服务端","slug":"服务端","link":"#服务端","children":[]}]},{"level":2,"title":"初衷","slug":"初衷","link":"#初衷","children":[]}],"git":{"updatedTime":1681536689000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":23},{"name":"Wong Saang","email":"46235412+WongSaang@users.noreply.github.com","commits":1}]},"filePathRelative":"zh/README.md"}');export{e as data};
|
||||||
1
assets/index.html-d042d854.js
Normal file
1
assets/index.html-d042d854.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import{_ as r,M as n,p as l,q as o,R as e,t,N as i,a1 as h}from"./framework-5866ffd3.js";const s={},c=e("h1",{id:"介绍",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#介绍","aria-hidden":"true"},"#"),t(" 介绍")],-1),d=e("p",null,"ChatGPT UI 是一个非官方的 ChatGPT Web 客户端。它支持多用户,多语言,多种数据库连接进行数据持久化存储,例如:Mysql、PostgreSQL 和 Sqlite 等。",-1),_=e("p",null,"本项目项目包括客户端和服务端两部分。",-1),p={href:"https://nuxt.com/",target:"_blank",rel:"noopener noreferrer"},u={href:"https://github.com/WongSaang/chatgpt-ui",target:"_blank",rel:"noopener noreferrer"},g={href:"https://djangoproject.com/",target:"_blank",rel:"noopener noreferrer"},f={href:"https://github.com/WongSaang/chatgpt-ui-server",target:"_blank",rel:"noopener noreferrer"},b=h('<h2 id="功能与特性" tabindex="-1"><a class="header-anchor" href="#功能与特性" aria-hidden="true">#</a> 功能与特性</h2><h3 id="客户端" tabindex="-1"><a class="header-anchor" href="#客户端" aria-hidden="true">#</a> 客户端</h3><ul><li>用户系统,支持用户注册、登录、修改密码等。</li><li>用户界面多语言,支持多种语言。</li><li>数据持久化,支持 Mysql、PostgreSQL 和 Sqlite 等数据库。</li><li>异步对话,支持多个对话同时进行。</li><li>历史对话管理。</li><li>持续聊天,让 ChatGPT 客户历史聊天记录回答问题,得出更好的答案。</li><li>网页搜索能力,让 ChatGPT 获取最新信息。</li><li>便捷的工具,支持一键复制消息和代码块,以及重新编辑消息等。</li><li>常用指令管理,用户可存储和编辑自己的常用指令。</li><li>PWA,支持安装到桌面。</li><li>用户 Token 使用量统计</li><li>支持配置多个 API Key</li></ul><h3 id="服务端" tabindex="-1"><a class="header-anchor" href="#服务端" aria-hidden="true">#</a> 服务端</h3><ul><li>服务端拥有一个管理面板</li><li>用户管理</li><li>对话和消息管理</li><li>常用配置</li></ul><h2 id="初衷" tabindex="-1"><a class="header-anchor" href="#初衷" aria-hidden="true">#</a> 初衷</h2><p>自从使用 ChatGPT ,它已经成为工作中的好帮手。可惜的是,就像大家知道的,它在有些地方无法访问。但好在 OpenAI 开放了 API,于是我开始为自己写用户界面。</p><blockquote><p>世上无难事,只怕有心人。</p></blockquote><p>后来,有多位朋友询问我怎么样才能使用 ChatGPT,因为他们没有技术能力。于是我又着手于多用户系统的开发,这样除了自己用,还能帮助到身边的亲朋好友。</p><p>项目开源后,有很多人提了 issue,也有人提了 PR,项目就发展到如今的样子。我在这个过程中也学到了很多,正如我一直坚信的,帮助他人也是帮助自己。</p>',10);function x(m,P){const a=n("ExternalLinkIcon");return l(),o("div",null,[c,d,_,e("ul",null,[e("li",null,[t("客户端,基于 "),e("a",p,[t("Nuxt"),i(a)]),t(",项目地址:"),e("a",u,[t("https://github.com/WongSaang/chatgpt-ui"),i(a)])]),e("li",null,[t("服务端,基于 "),e("a",g,[t("Django"),i(a)]),t(",项目地址:"),e("a",f,[t("https://github.com/WongSaang/chatgpt-ui-server"),i(a)])])]),b])}const S=r(s,[["render",x],["__file","index.html.vue"]]);export{S as default};
|
||||||
1
assets/index.html-f32af385.js
Normal file
1
assets/index.html-f32af385.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-8daa1a0e","path":"/","title":"Introduction","lang":"en-US","frontmatter":{},"headers":[{"level":2,"title":"Features","slug":"features","link":"#features","children":[{"level":3,"title":"Client-side","slug":"client-side","link":"#client-side","children":[]},{"level":3,"title":"Server-side","slug":"server-side","link":"#server-side","children":[]}]},{"level":2,"title":"Original Intention","slug":"original-intention","link":"#original-intention","children":[]}],"git":{"updatedTime":1681536689000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":3}]},"filePathRelative":"README.md"}');export{e as data};
|
||||||
1
assets/problems.html-3485ea96.js
Normal file
1
assets/problems.html-3485ea96.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-7f374639","path":"/guide/problems.html","title":"Encountering Issues","lang":"en-US","frontmatter":{},"headers":[{"level":2,"title":"Searching for Issues","slug":"searching-for-issues","link":"#searching-for-issues","children":[]},{"level":2,"title":"Submitting an Issue","slug":"submitting-an-issue","link":"#submitting-an-issue","children":[]}],"git":{"updatedTime":1681222096000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":1}]},"filePathRelative":"guide/problems.md"}');export{e as data};
|
||||||
1
assets/problems.html-84e6145b.js
Normal file
1
assets/problems.html-84e6145b.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import{_ as o,M as a,p as i,q as r,R as e,t as s,N as t}from"./framework-5866ffd3.js";const c={},u=e("h1",{id:"encountering-issues",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#encountering-issues","aria-hidden":"true"},"#"),s(" Encountering Issues")],-1),h=e("h2",{id:"searching-for-issues",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#searching-for-issues","aria-hidden":"true"},"#"),s(" Searching for Issues")],-1),l={href:"https://github.com/WongSaang/chatgpt-ui/issues",target:"_blank",rel:"noopener noreferrer"},d=e("h2",{id:"submitting-an-issue",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#submitting-an-issue","aria-hidden":"true"},"#"),s(" Submitting an Issue")],-1),p={href:"https://github.com/WongSaang/chatgpt-ui/issues/new",target:"_blank",rel:"noopener noreferrer"},_=e("p",null,[e("strong",null,"Note")],-1),f=e("p",null,"The title should be clear and concise, and the description should provide as much detail as possible about the issue or suggestion. If possible, it is best to provide reproducible steps and screenshots.",-1);function g(b,m){const n=a("ExternalLinkIcon");return i(),r("div",null,[u,h,e("p",null,[s("If you encounter any issues while using the project, you can search for related keywords on the project's "),e("a",l,[s("Issues"),t(n)]),s(" page to see if others have faced similar issues and if there are any solutions available.")]),d,e("p",null,[s("If you cannot find a solution, you can communicate with the project maintainers by submitting an issue. "),e("a",p,[s("Submit an Issue"),t(n)])]),_,f])}const x=o(c,[["render",g],["__file","problems.html.vue"]]);export{x as default};
|
||||||
1
assets/problems.html-dabd58d0.js
Normal file
1
assets/problems.html-dabd58d0.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
import{_ as a,M as o,p as r,q as c,R as e,t as s,N as n}from"./framework-5866ffd3.js";const i={},h=e("h1",{id:"遇到问题",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#遇到问题","aria-hidden":"true"},"#"),s(" 遇到问题")],-1),l=e("h2",{id:"搜索问题",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#搜索问题","aria-hidden":"true"},"#"),s(" 搜索问题")],-1),_={href:"https://github.com/WongSaang/chatgpt-ui/issues",target:"_blank",rel:"noopener noreferrer"},d=e("h2",{id:"提-issue",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#提-issue","aria-hidden":"true"},"#"),s(" 提 issue")],-1),u={href:"https://github.com/WongSaang/chatgpt-ui/issues/new",target:"_blank",rel:"noopener noreferrer"},p=e("p",null,[e("strong",null,"注意")],-1),f=e("p",null,"标题应该简单明了,描述应该尽可能详细地描述问题或者建议。如果可能,最好提供复现步骤和截图。",-1);function m(g,b){const t=o("ExternalLinkIcon");return r(),c("div",null,[h,l,e("p",null,[s("当你在使用项目时,如果遇到了问题,可以在项目的 "),e("a",_,[s("Issues"),n(t)]),s(" 页面搜索相关的关键词,看看其他人是否遇到过相同的问题以及解决方案。")]),d,e("p",null,[s("如果没有找到解决方案,可以通过提交 Issue 来与项目维护者交流。"),e("a",u,[s("提交Issue"),n(t)])]),p,f])}const k=a(i,[["render",m],["__file","problems.html.vue"]]);export{k as default};
|
||||||
1
assets/problems.html-f1039fc4.js
Normal file
1
assets/problems.html-f1039fc4.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-4eee7faa","path":"/zh/guide/problems.html","title":"遇到问题","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"搜索问题","slug":"搜索问题","link":"#搜索问题","children":[]},{"level":2,"title":"提 issue","slug":"提-issue","link":"#提-issue","children":[]}],"git":{"updatedTime":1681222096000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":1}]},"filePathRelative":"zh/guide/problems.md"}');export{e as data};
|
||||||
1
assets/quick-start.html-5d24620c.js
Normal file
1
assets/quick-start.html-5d24620c.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-47700a83","path":"/guide/quick-start.html","title":"Quick Start","lang":"en-US","frontmatter":{},"headers":[{"level":2,"title":"Deploying","slug":"deploying","link":"#deploying","children":[{"level":3,"title":"Quickly deploy script","slug":"quickly-deploy-script","link":"#quickly-deploy-script","children":[]},{"level":3,"title":"Docker Compose","slug":"docker-compose","link":"#docker-compose","children":[]}]},{"level":2,"title":"After Deployment","slug":"after-deployment","link":"#after-deployment","children":[]}],"git":{"updatedTime":1681674749000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":3},{"name":"AI&I","email":"iluozan@126.com","commits":1}]},"filePathRelative":"guide/quick-start.md"}');export{e as data};
|
||||||
1
assets/quick-start.html-91a3ce5d.js
Normal file
1
assets/quick-start.html-91a3ce5d.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const e=JSON.parse('{"key":"v-62758f72","path":"/zh/guide/quick-start.html","title":"快速开始","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"部署","slug":"部署","link":"#部署","children":[{"level":3,"title":"快速部署脚本","slug":"快速部署脚本","link":"#快速部署脚本","children":[]},{"level":3,"title":"Docker Compose","slug":"docker-compose","link":"#docker-compose","children":[]}]},{"level":2,"title":"部署完成之后","slug":"部署完成之后","link":"#部署完成之后","children":[]}],"git":{"updatedTime":1681674749000,"contributors":[{"name":"Rafi","email":"rafiwx@gmail.com","commits":3},{"name":"AI&I","email":"iluozan@126.com","commits":1}]},"filePathRelative":"zh/guide/quick-start.md"}');export{e as data};
|
||||||
60
assets/quick-start.html-b336d0c1.js
Normal file
60
assets/quick-start.html-b336d0c1.js
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
import{_ as s,M as r,p as o,q as d,R as n,t as e,N as t,a1 as a}from"./framework-5866ffd3.js";const l={},c=a(`<h1 id="quick-start" tabindex="-1"><a class="header-anchor" href="#quick-start" aria-hidden="true">#</a> Quick Start</h1><p>This project provides related docker images for deployment on a VPS or your local computer. Please note that if your network is unable to request the OpenAI API address, you need to configure a proxy. If you want to make it available to other users, it's best to have a domain name and resolve it to the server.</p><p>You also need an OpenAI API Key, and there are multiple ways to obtain it online, please search for it yourself.</p><h2 id="deploying" tabindex="-1"><a class="header-anchor" href="#deploying" aria-hidden="true">#</a> Deploying</h2><h3 id="quickly-deploy-script" tabindex="-1"><a class="header-anchor" href="#quickly-deploy-script" aria-hidden="true">#</a> Quickly deploy script</h3><p><strong>Note: This script has only been verified on Ubuntu Server 22.04 LTS.</strong></p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>bash <(curl -Ls https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/deployment.sh)
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="docker-compose" tabindex="-1"><a class="header-anchor" href="#docker-compose" aria-hidden="true">#</a> Docker Compose</h3><h4 id="prepare-docker-compose-yml" tabindex="-1"><a class="header-anchor" href="#prepare-docker-compose-yml" aria-hidden="true">#</a> Prepare docker-compose.yml</h4>`,9),u=n("code",null,"docker-compose.yml",-1),m={href:"/en/guide/configuration",target:"_blank",rel:"noopener noreferrer"},v=n("p",null,[e("You can download the "),n("code",null,"docker-compose.yml"),e(" template to your local machine or server by clicking on the link below:")],-1),h={href:"https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/docker-compose.yml",target:"_blank",rel:"noopener noreferrer"},p=a(`<p>You can also manually create the <code>docker-compose.yml</code> file and copy the following content into the file:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>version: '3'
|
||||||
|
services:
|
||||||
|
client:
|
||||||
|
platform: linux/x86_64
|
||||||
|
image: wongsaang/chatgpt-ui-client:latest
|
||||||
|
environment:
|
||||||
|
- SERVER_DOMAIN=http://backend-web-server
|
||||||
|
- DEFAULT_LOCALE=en
|
||||||
|
# - NUXT_PUBLIC_APP_NAME='ChatGPT UI' # The name of the application
|
||||||
|
# - NUXT_PUBLIC_TYPEWRITER=true # Whether to enable the typewriter effect, default false
|
||||||
|
# - NUXT_PUBLIC_TYPEWRITER_DELAY=50 # The delay time of the typewriter effect, default 50ms
|
||||||
|
depends_on:
|
||||||
|
- backend-web-server
|
||||||
|
ports:
|
||||||
|
- '\${CLIENT_PORT:-80}:80'
|
||||||
|
networks:
|
||||||
|
- chatgpt_ui_network
|
||||||
|
restart: always
|
||||||
|
backend-wsgi-server:
|
||||||
|
platform: linux/x86_64
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- APP_DOMAIN=\${APP_DOMAIN:-localhost:9000}
|
||||||
|
- SERVER_WORKERS=3 # The number of worker processes for handling requests.
|
||||||
|
# - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed.
|
||||||
|
- DJANGO_SUPERUSER_USERNAME=admin # default superuser name
|
||||||
|
- DJANGO_SUPERUSER_PASSWORD=password # default superuser password
|
||||||
|
- DJANGO_SUPERUSER_EMAIL=admin@example.com # default superuser email
|
||||||
|
- ACCOUNT_EMAIL_VERIFICATION=\${ACCOUNT_EMAIL_VERIFICATION:-none} # Determines the e-mail verification method during signup – choose one of "none", "optional", or "mandatory". Default is "optional". If you don't need to verify the email, you can set it to "none".
|
||||||
|
# If you want to use the email verification function, you need to configure the following parameters
|
||||||
|
# - EMAIL_HOST=SMTP server address
|
||||||
|
# - EMAIL_PORT=SMTP server port
|
||||||
|
# - EMAIL_HOST_USER=
|
||||||
|
# - EMAIL_HOST_PASSWORD=
|
||||||
|
# - EMAIL_USE_TLS=True
|
||||||
|
# - EMAIL_FROM=no-reply@example.com #Default sender email address
|
||||||
|
ports:
|
||||||
|
- '\${WSGI_PORT:-8000}:8000'
|
||||||
|
networks:
|
||||||
|
- chatgpt_ui_network
|
||||||
|
restart: always
|
||||||
|
backend-web-server:
|
||||||
|
platform: linux/x86_64
|
||||||
|
image: wongsaang/chatgpt-ui-web-server:latest
|
||||||
|
environment:
|
||||||
|
- BACKEND_URL=http://backend-wsgi-server:8000
|
||||||
|
ports:
|
||||||
|
- '\${SERVER_PORT:-9000}:80'
|
||||||
|
depends_on:
|
||||||
|
- backend-wsgi-server
|
||||||
|
networks:
|
||||||
|
- chatgpt_ui_network
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
networks:
|
||||||
|
chatgpt_ui_network:
|
||||||
|
driver: bridge
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h4 id="starting-the-service" tabindex="-1"><a class="header-anchor" href="#starting-the-service" aria-hidden="true">#</a> Starting the Service</h4><p>After modifying the configuration as needed, you can start the service by running the following command:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>docker-compose up --pull always -d
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>This command is used to start the services specified in the Docker Compose configuration. The specific meanings of the parameters are as follows:</p><ul><li><code>up</code>: start the services specified in the Docker Compose configuration.</li><li><code>--pull always</code>: before starting the service each time, the latest version of the image will be pulled from the Docker image repository. This ensures that the image used is always up to date.</li><li><code>-d</code>: run the service in the background. If this parameter is not added, the service will run in the current terminal window until the user manually stops it.</li></ul><h2 id="after-deployment" tabindex="-1"><a class="header-anchor" href="#after-deployment" aria-hidden="true">#</a> After Deployment</h2><p>Access the management panel at <code>http(s)://your.domain:9000/admin</code> or <code>http(s)://123.123.123.123:9000/admin</code> using the default superuser account:</p><ul><li>username: <strong>admin</strong></li><li>password: <strong>password</strong></li></ul><p><s>Before starting a chat, you need to add an OpenAI API key. In the management panel, in the "Settings" section, there is a record named <code>openai_api_key</code>. Set the value to your API key.</s></p><p>In the latest version, a separate API Key management has been added to the admin panel, located under "Provider/Api keys". You can add multiple API Keys here, and the backend program will track the usage of each key's token and balance the usage based on token usage. <strong>To enable this feature, you need to delete the previous "openai_api_key" setting.</strong></p><p>Now you can access the client at <code>http(s)://your.domain</code> or <code>http://123.123.123.123</code> to start chatting.</p><p>🎉🎉🎉 Have fun!</p>`,14);function b(g,f){const i=r("ExternalLinkIcon");return o(),d("div",null,[c,n("p",null,[e("The project provides a sample "),u,e(". If you want to customize the configuration, please refer to the "),n("a",m,[e("configuration reference"),t(i)]),e(" section.")]),v,n("p",null,[n("a",h,[e("https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/docker-compose.yml"),t(i)])]),p])}const y=s(l,[["render",b],["__file","quick-start.html.vue"]]);export{y as default};
|
||||||
55
assets/quick-start.html-fc1bc91c.js
Normal file
55
assets/quick-start.html-fc1bc91c.js
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
import{_ as a,M as r,p as o,q as l,R as e,t as n,N as s,a1 as d}from"./framework-5866ffd3.js";const c={},t=d('<h1 id="快速开始" tabindex="-1"><a class="header-anchor" href="#快速开始" aria-hidden="true">#</a> 快速开始</h1><p>本项目提供了相关的 docker 镜像,你需要一个 vps 来部署,当然你也可以在本地的电脑上部署。需要注意的是,如果你的网络无法请求 OpenAI 的 API 地址,您需要配置代理。如果你想开放给其他用户使用,最好还需要一个域名,并将域名解析到服务器。</p><p>您还需要一个 OpenAI 的API Key,网上有获取多种方案,请自行搜索。</p><h2 id="部署" tabindex="-1"><a class="header-anchor" href="#部署" aria-hidden="true">#</a> 部署</h2><h3 id="快速部署脚本" tabindex="-1"><a class="header-anchor" href="#快速部署脚本" aria-hidden="true">#</a> 快速部署脚本</h3>',5),v={href:"https://wongsnotes.com/p/deploying-your-own-chatgpt-client-with-one-line-of-command/",target:"_blank",rel:"noopener noreferrer"},m=d(`<p><strong>注意:此脚本目前仅在 Ubuntu Server 22.04 LTS 上验证过。</strong></p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>bash <(curl -Ls https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/deployment.sh)
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="docker-compose" tabindex="-1"><a class="header-anchor" href="#docker-compose" aria-hidden="true">#</a> Docker Compose</h3><h4 id="准备-docker-compose-yml" tabindex="-1"><a class="header-anchor" href="#准备-docker-compose-yml" aria-hidden="true">#</a> 准备 docker-compose.yml</h4>`,4),u=e("code",null,"docker-compose.yml",-1),p={href:"/zh/guide/configuration",target:"_blank",rel:"noopener noreferrer"},h=e("p",null,[n("你可以通过下方链接下载 "),e("code",null,"docker-compose.yml"),n(" 模板到本地或服务器:")],-1),b={href:"https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/docker-compose.yml",target:"_blank",rel:"noopener noreferrer"},_=d(`<p>也可以手动创建 <code>docker-compose.yml</code> 文件,然后复制下面的内容到文件中:</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>version: '3'
|
||||||
|
services:
|
||||||
|
client:
|
||||||
|
image: wongsaang/chatgpt-ui-client:latest
|
||||||
|
environment:
|
||||||
|
- SERVER_DOMAIN=http://backend-web-server
|
||||||
|
- DEFAULT_LOCALE=zh
|
||||||
|
# - NUXT_PUBLIC_APP_NAME='ChatGPT UI' # APP 名称
|
||||||
|
# - NUXT_PUBLIC_TYPEWRITER=true # 是否开启 打字机 效果
|
||||||
|
# - NUXT_PUBLIC_TYPEWRITER_DELAY=50 # 打字机效果的延迟时间,单位:毫秒,默认:50
|
||||||
|
depends_on:
|
||||||
|
- backend-web-server
|
||||||
|
ports:
|
||||||
|
- '80:80'
|
||||||
|
networks:
|
||||||
|
- chatgpt_ui_network
|
||||||
|
backend-wsgi-server:
|
||||||
|
image: wongsaang/chatgpt-ui-wsgi-server:latest
|
||||||
|
environment:
|
||||||
|
- APP_DOMAIN=\${APP_DOMAIN:-localhost:9000} # CSRF 白名单,在这里设置为 chatgpt-ui-web-server 的地址+端口, 默认: localhost:9000
|
||||||
|
- SERVER_WORKERS=3 # gunicorn 的工作进程数,默认为 3
|
||||||
|
#- DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # 连接外部数据库,如果不设置这个参数,则默认使用内置的 Sqlite。需要注意的是,如果不连接外部数据库,数据将在容器销毁后丢失。链接格式请看下面的 DB_URL 格式对照表
|
||||||
|
#- OPENAI_API_PROXY=https://openai.proxy.com/v1 # https://api.openai.com/v1 的代理地址
|
||||||
|
- DJANGO_SUPERUSER_USERNAME=admin # 默认超级用户
|
||||||
|
- DJANGO_SUPERUSER_PASSWORD=password # 默认超级用户的密码
|
||||||
|
- DJANGO_SUPERUSER_EMAIL=admin@example.com # 默认超级用户邮箱
|
||||||
|
- ACCOUNT_EMAIL_VERIFICATION=none # 邮箱验证方式,可选值: none, optional, mandatory. 默认为 optional。如果你不需要验证用户的邮箱,可以设置为 none。
|
||||||
|
# 如果您想使用电子邮件验证功能,需要配置以下参数:
|
||||||
|
# - EMAIL_HOST=SMTP server address
|
||||||
|
# - EMAIL_PORT=SMTP server port
|
||||||
|
# - EMAIL_HOST_USER=
|
||||||
|
# - EMAIL_HOST_PASSWORD=
|
||||||
|
# - EMAIL_USE_TLS=True
|
||||||
|
# - EMAIL_FROM=no-reply@example.com #默认发件邮箱地址
|
||||||
|
ports:
|
||||||
|
- '8000:8000'
|
||||||
|
networks:
|
||||||
|
- chatgpt_ui_network
|
||||||
|
backend-web-server:
|
||||||
|
image: wongsaang/chatgpt-ui-web-server:latest
|
||||||
|
environment:
|
||||||
|
- BACKEND_URL=http://backend-wsgi-server:8000
|
||||||
|
ports:
|
||||||
|
- '9000:80'
|
||||||
|
depends_on:
|
||||||
|
- backend-wsgi-server
|
||||||
|
networks:
|
||||||
|
- chatgpt_ui_network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
chatgpt_ui_network:
|
||||||
|
driver: bridge
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h4 id="启动服务" tabindex="-1"><a class="header-anchor" href="#启动服务" aria-hidden="true">#</a> 启动服务</h4><p>你可以自行修改配置后,运行下面的命令来启动服务。</p><div class="language-text line-numbers-mode" data-ext="text"><pre class="language-text"><code>docker-compose up --pull always -d
|
||||||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>这个命令用于启动 Docker Compose 配置中的服务。具体的参数含义如下:</p><ul><li><code>up</code>:启动 Docker Compose 配置中的服务。</li><li><code>--pull always</code>:每次启动服务前,都会从 Docker 镜像仓库中拉取最新版本的镜像。这样可以确保使用的镜像始终是最新的。</li><li><code>-d</code>:在后台运行服务。如果不加这个参数,服务会在当前终端窗口中运行,直到用户手动停止服务。</li></ul><h2 id="部署完成之后" tabindex="-1"><a class="header-anchor" href="#部署完成之后" aria-hidden="true">#</a> 部署完成之后</h2><p>访问 <code>http(s)://your.domain:9000/admin</code> 或 IP <code>http(s)://123.123.123.123:9000/admin</code> 登录管理面板。</p><p>默认超级用户: <strong>admin</strong></p><p>默认密码: <strong>password</strong></p><p><s>在可以开始聊天之前,您需要添加一个 OpenAI 的 API 密钥。在管理面板的设置模型中,有一个名称为 <code>openai_api_key</code> 的记录,将值设置为您的 API 密钥。</s></p><p>在最新版本中,管理面板增加了一个独立的 API Key 的管理,位于管理面板的 <code>Provider/ Api keys</code>。你可以在这里添加多个 API Key,后端程序会统计每个 Key 的 token 使用量,并根据 token 使用量来平衡使用 Key。<strong>想要这个功能生效,需要删除之前的<code>openai_api_key</code>设置</strong></p><p>现在可以访问客户端地址 <code>http(s)://your.domain</code> 或 IP <code>http://123.123.123.123</code> 开始聊天。</p><p>🎉🎉🎉 祝开心!</p>`,15);function g(k,A){const i=r("ExternalLinkIcon");return o(),l("div",null,[t,e("p",null,[e("em",null,[n("对于技术知识了解不多的选手,如果你看不懂下面的内容,可以看我之前写的博客文章"),e("a",v,[n("《一行命令部署自己的ChatGPT客户端》"),s(i)])])]),m,e("p",null,[n("项目中提供了一个 "),u,n(" 示例,如果你想自定义配置,请看 "),e("a",p,[n("配置参考"),s(i)]),n(" 部分。")]),h,e("p",null,[e("a",b,[n("https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/docker-compose.yml"),s(i)])]),_])}const I=a(c,[["render",g],["__file","quick-start.html.vue"]]);export{I as default};
|
||||||
1
assets/style-ad6949cb.css
Normal file
1
assets/style-ad6949cb.css
Normal file
File diff suppressed because one or more lines are too long
33
guide/buymeacoffee.html
Normal file
33
guide/buymeacoffee.html
Normal file
File diff suppressed because one or more lines are too long
45
guide/configuration.html
Normal file
45
guide/configuration.html
Normal file
File diff suppressed because one or more lines are too long
40
guide/development.html
Normal file
40
guide/development.html
Normal file
File diff suppressed because one or more lines are too long
33
guide/problems.html
Normal file
33
guide/problems.html
Normal file
File diff suppressed because one or more lines are too long
92
guide/quick-start.html
Normal file
92
guide/quick-start.html
Normal file
File diff suppressed because one or more lines are too long
BIN
images/bmc_qr.png
Normal file
BIN
images/bmc_qr.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
33
index.html
Normal file
33
index.html
Normal file
File diff suppressed because one or more lines are too long
33
zh/guide/buymeacoffee.html
Normal file
33
zh/guide/buymeacoffee.html
Normal file
File diff suppressed because one or more lines are too long
45
zh/guide/configuration.html
Normal file
45
zh/guide/configuration.html
Normal file
File diff suppressed because one or more lines are too long
40
zh/guide/development.html
Normal file
40
zh/guide/development.html
Normal file
File diff suppressed because one or more lines are too long
33
zh/guide/problems.html
Normal file
33
zh/guide/problems.html
Normal file
File diff suppressed because one or more lines are too long
87
zh/guide/quick-start.html
Normal file
87
zh/guide/quick-start.html
Normal file
File diff suppressed because one or more lines are too long
33
zh/index.html
Normal file
33
zh/index.html
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user