@lobehub/chat 0.133.0 → 0.133.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/.eslintrc.js +16 -0
  2. package/CHANGELOG.md +1392 -2240
  3. package/README.md +7 -3
  4. package/README.zh-CN.md +7 -3
  5. package/contributing/Home.md +20 -28
  6. package/contributing/_Sidebar.md +1 -9
  7. package/docs/self-hosting/advanced/analytics.zh-CN.mdx +4 -2
  8. package/docs/self-hosting/advanced/authentication.mdx +32 -33
  9. package/docs/self-hosting/advanced/authentication.zh-CN.mdx +31 -34
  10. package/docs/self-hosting/advanced/upstream-sync.mdx +23 -26
  11. package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +23 -26
  12. package/docs/self-hosting/environment-variables/basic.mdx +12 -14
  13. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +13 -15
  14. package/docs/self-hosting/environment-variables/model-provider.mdx +6 -2
  15. package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +8 -5
  16. package/docs/self-hosting/environment-variables.mdx +11 -0
  17. package/docs/self-hosting/environment-variables.zh-CN.mdx +10 -0
  18. package/docs/self-hosting/examples/azure-openai.mdx +7 -7
  19. package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +7 -7
  20. package/docs/self-hosting/faq/no-v1-suffix.mdx +0 -1
  21. package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +0 -1
  22. package/docs/self-hosting/platform/docker-compose.mdx +73 -79
  23. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +80 -86
  24. package/docs/self-hosting/platform/docker.mdx +96 -101
  25. package/docs/self-hosting/platform/docker.zh-CN.mdx +102 -107
  26. package/docs/self-hosting/platform/netlify.mdx +66 -145
  27. package/docs/self-hosting/platform/netlify.zh-CN.mdx +64 -143
  28. package/docs/self-hosting/platform/repocloud.mdx +7 -9
  29. package/docs/self-hosting/platform/repocloud.zh-CN.mdx +10 -12
  30. package/docs/self-hosting/platform/sealos.mdx +7 -9
  31. package/docs/self-hosting/platform/sealos.zh-CN.mdx +10 -12
  32. package/docs/self-hosting/platform/vercel.mdx +13 -15
  33. package/docs/self-hosting/platform/vercel.zh-CN.mdx +12 -15
  34. package/docs/self-hosting/platform/zeabur.mdx +7 -9
  35. package/docs/self-hosting/platform/zeabur.zh-CN.mdx +10 -12
  36. package/docs/self-hosting/start.mdx +17 -0
  37. package/docs/self-hosting/start.zh-CN.mdx +17 -0
  38. package/docs/usage/agents/concepts.mdx +0 -1
  39. package/docs/usage/agents/custom-agent.mdx +5 -7
  40. package/docs/usage/agents/custom-agent.zh-CN.mdx +3 -3
  41. package/docs/usage/agents/model.mdx +9 -4
  42. package/docs/usage/agents/model.zh-CN.mdx +5 -5
  43. package/docs/usage/agents/prompt.mdx +8 -9
  44. package/docs/usage/agents/prompt.zh-CN.mdx +7 -8
  45. package/docs/usage/agents/topics.mdx +1 -1
  46. package/docs/usage/features/agent-market.mdx +13 -11
  47. package/docs/usage/features/agent-market.zh-CN.mdx +7 -8
  48. package/docs/usage/features/local-llm.mdx +6 -5
  49. package/docs/usage/features/local-llm.zh-CN.mdx +8 -5
  50. package/docs/usage/features/mobile.mdx +5 -5
  51. package/docs/usage/features/mobile.zh-CN.mdx +1 -5
  52. package/docs/usage/features/multi-ai-providers.mdx +6 -6
  53. package/docs/usage/features/multi-ai-providers.zh-CN.mdx +3 -7
  54. package/docs/usage/features/plugin-system.mdx +20 -18
  55. package/docs/usage/features/plugin-system.zh-CN.mdx +20 -22
  56. package/docs/usage/features/pwa.mdx +9 -11
  57. package/docs/usage/features/pwa.zh-CN.mdx +5 -11
  58. package/docs/usage/features/text-to-image.mdx +5 -1
  59. package/docs/usage/features/text-to-image.zh-CN.mdx +1 -1
  60. package/docs/usage/features/theme.mdx +5 -5
  61. package/docs/usage/features/theme.zh-CN.mdx +1 -5
  62. package/docs/usage/features/tts.mdx +6 -1
  63. package/docs/usage/features/tts.zh-CN.mdx +1 -1
  64. package/docs/usage/features/vision.mdx +7 -3
  65. package/docs/usage/features/vision.zh-CN.mdx +1 -1
  66. package/docs/usage/plugins/basic-usage.mdx +2 -2
  67. package/docs/usage/plugins/custom-plugin.mdx +2 -2
  68. package/docs/usage/plugins/custom-plugin.zh-CN.mdx +2 -2
  69. package/docs/usage/plugins/{plugin-development.mdx → development.mdx} +7 -7
  70. package/docs/usage/plugins/{plugin-development.zh-CN.mdx → development.zh-CN.mdx} +7 -7
  71. package/docs/usage/plugins/{plugin-store.mdx → store.mdx} +0 -1
  72. package/docs/usage/plugins/store.zh-CN.mdx +9 -0
  73. package/docs/usage/providers/ollama/gemma.mdx +22 -33
  74. package/docs/usage/providers/ollama/gemma.zh-CN.mdx +20 -32
  75. package/docs/usage/providers/ollama.mdx +34 -43
  76. package/docs/usage/providers/ollama.zh-CN.mdx +18 -29
  77. package/docs/usage/start.mdx +34 -0
  78. package/docs/usage/start.zh-CN.mdx +28 -0
  79. package/next-sitemap.config.mjs +2 -3
  80. package/package.json +24 -19
  81. package/src/app/settings/llm/Anthropic/index.tsx +2 -2
  82. package/src/app/settings/llm/index.tsx +4 -4
  83. package/src/config/modelProviders/ollama.ts +4 -4
  84. package/src/libs/agent-runtime/anthropic/index.test.ts +6 -10
  85. package/docs/usage/plugins/plugin-store.zh-CN.mdx +0 -9
  86. package/public/robots.txt +0 -4
@@ -7,164 +7,85 @@ If you want to deploy LobeChat on Netlify, you can follow these steps:
7
7
  ## Deploy LobeChat with Netlify
8
8
 
9
9
  <Steps>
10
+ ### Fork the LobeChat Repository
10
11
 
11
- ### Fork the LobeChat Repository
12
+ Click the Fork button to fork the LobeChat repository to your GitHub account.
12
13
 
13
- Click the Fork button to fork the LobeChat repository to your GitHub account.
14
+ ### Prepare your OpenAI API Key
14
15
 
15
- ### Prepare your OpenAI API Key
16
+ Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to obtain your OpenAI API Key.
16
17
 
17
- Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to obtain your OpenAI API Key.
18
+ ### Import to Netlify Workspace
18
19
 
19
- ### Import to Netlify Workspace
20
+ <Callout>
21
+ After testing, it is currently not supported to have a one-click deployment button similar to
22
+ Vercel/Zeabur. The reason is unknown. Therefore, manual import is required.
23
+ </Callout>
20
24
 
21
- <Callout>
22
- After testing, it is currently not supported to have a one-click deployment button similar to
23
- Vercel/Zeabur. The reason is unknown. Therefore, manual import is required.
24
- </Callout>
25
+ Click "Import from git"
25
26
 
26
- Click "Import from git"
27
+ <Image alt={'Click "Import from git" in the Netlify workspace'} bordered height={362} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/31b999e5-2a74-45fc-935b-f036e72a684d'} />
27
28
 
28
- <Image
29
- alt={'Click "Import from git" in the Netlify workspace'}
30
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/31b999e5-2a74-45fc-935b-f036e72a684d'}
31
- bordered
32
- inStep
33
- height={362}
34
- />
29
+ Then click "Deploy with Github" and authorize Netlify to access your GitHub account.
35
30
 
36
- Then click "Deploy with Github" and authorize Netlify to access your GitHub account.
31
+ <Image alt={'Authorize Netlify to access your GitHub account'} bordered height={273} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9c58141-5ec6-43f1-8d97-0a84a04dcdba'} />
37
32
 
38
- <Image
39
- alt={'Authorize Netlify to access your GitHub account'}
40
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9c58141-5ec6-43f1-8d97-0a84a04dcdba'}
41
- bordered
42
- inStep
43
- height={273}
44
- />
45
-
46
- Next, select the LobeChat project:
47
-
48
- <Image
49
- alt={'Select the LobeChat github project'}
50
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/6c3968a8-fbbb-4268-a587-edaced2d96af'}
51
- bordered
52
- inStep
53
- height={228}
54
- />
55
-
56
- ### Configure Site Name and Environment Variables
57
-
58
- In this step, you need to configure your site, including the site name, build command, and publish directory. Fill in your site name in the "Site Name" field. If there are no special requirements, you do not need to modify the remaining configurations as we have already set the default configurations.
59
-
60
- <Image
61
- alt={'Configure LobeChat site name'}
62
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/f3885537-6d43-422f-b1b8-e70732401025'}
63
- bordered
64
- inStep
65
- height={712}
66
- />
67
-
68
- Click the "Add environment variables" button to add site environment variables:
69
-
70
- <Image
71
- alt={'Add LobeChat site environment variables'}
72
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/3b607482-4d99-455a-bc10-3090dd4fe3c5'}
73
- bordered
74
- inStep
75
- height={537}
76
- />
77
-
78
- Taking OpenAI as an example, the environment variables you need to add are as follows:
79
-
80
- | Environment Variable | Type | Description | Example |
81
- | --- | --- | --- | --- |
82
- | `OPENAI_API_KEY` | Required | This is the API key you applied for on the OpenAI account page | `sk-xxxxxx...xxxxxx` |
83
- | `ACCESS_CODE` | Required | Add a password to access this service. You can set a long password to prevent brute force attacks. When this value is separated by commas, it becomes an array of passwords | `awCT74` or `e3@09!` or `code1,code2,code3` |
84
- | `OPENAI_PROXY_URL` | Optional | If you manually configure the OpenAI interface proxy, you can use this configuration to override the default OpenAI API request base URL | `https://aihubmix.com/v1`, default value: `https://api.openai.com/v1` |
85
-
86
- <Callout type={'info'}>
87
- For a complete list of environment variables supported by LobeChat, please refer to the [📘
88
- Environment Variables](/en/self-hosting/environment-variables)
89
- </Callout>
90
-
91
- Afteradding the variables, finally click "Deploy lobe-chat" to enter the deployment phase
92
-
93
- <Image
94
- alt={'Environment variables added'}
95
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9f74ec4-ce63-4ce9-b9e2-34bda6fda10b'}
96
- bordered
97
- inStep
98
- height={600}
99
- />
100
-
101
- ### Wait for Deployment to Complete
102
-
103
- After clicking deploy, you will enter the site details page, where you can click the "Deploying your site" in blue or the "Building" in yellow to view the deployment progress.
104
-
105
- <Image
106
- alt={'Netlify site details page'}
107
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/a7fd85d5-fd32-4756-814e-ff7ab7567fe1'}
108
- bordered
109
- inStep
110
- height={396}
111
- />
112
-
113
- Upon entering the deployment details, you will see the following interface, indicating that your LobeChat is currently being deployed. Simply wait for the deployment to complete.
114
-
115
- <Image
116
- alt={'LobeChat deployment in progress'}
117
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/1ed8b13d-046e-47c8-bd61-116ffdf5d01b'}
118
- bordered
119
- inStep
120
- height={325}
121
- />
122
-
123
- During the deployment and build process:
124
-
125
- <Image
126
- alt={'Deployment in progress'}
127
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/1c82d707-cb6f-4924-b246-a5235a919864'}
128
- bordered
129
- inStep
130
- height={558}
131
- />
132
-
133
- ### Deployment Successful, Start Using
134
-
135
- If your Deploy Log in the interface looks like the following, it means your LobeChat has been successfully deployed.
136
-
137
- <Image
138
- alt={'Deployment Successful'}
139
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/c1f945d1-f3e2-4100-b6bb-24d4cb13c438'}
140
- bordered
141
- inStep
142
- height={558}
143
- />
144
- At this point, you can click on "Open production deploy" to access your LobeChat site.
145
-
146
- <Image
147
- alt={'Access Your LobeChat Site'}
148
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/b04723eb-64ad-4028-a901-dc4e4ee2d0c1'}
149
- bordered
150
- inStep
151
- height={527}
152
- />
33
+ Next, select the LobeChat project:
153
34
 
35
+ <Image alt={'Select the LobeChat github project'} bordered height={228} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/6c3968a8-fbbb-4268-a587-edaced2d96af'} />
36
+
37
+ ### Configure Site Name and Environment Variables
38
+
39
+ In this step, you need to configure your site, including the site name, build command, and publish directory. Fill in your site name in the "Site Name" field. If there are no special requirements, you do not need to modify the remaining configurations as we have already set the default configurations.
40
+
41
+ <Image alt={'Configure LobeChat site name'} bordered height={712} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/f3885537-6d43-422f-b1b8-e70732401025'} />
42
+
43
+ Click the "Add environment variables" button to add site environment variables:
44
+
45
+ <Image alt={'Add LobeChat site environment variables'} bordered height={537} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/3b607482-4d99-455a-bc10-3090dd4fe3c5'} />
46
+
47
+ Taking OpenAI as an example, the environment variables you need to add are as follows:
48
+
49
+ | Environment Variable | Type | Description | Example |
50
+ | -------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
51
+ | `OPENAI_API_KEY` | Required | This is the API key you applied for on the OpenAI account page | `sk-xxxxxx...xxxxxx` |
52
+ | `ACCESS_CODE` | Required | Add a password to access this service. You can set a long password to prevent brute force attacks. When this value is separated by commas, it becomes an array of passwords | `awCT74` or `e3@09!` or `code1,code2,code3` |
53
+ | `OPENAI_PROXY_URL` | Optional | If you manually configure the OpenAI interface proxy, you can use this configuration to override the default OpenAI API request base URL | `https://aihubmix.com/v1`, default value: `https://api.openai.com/v1` |
54
+
55
+ <Callout type={'info'}>
56
+ For a complete list of environment variables supported by LobeChat, please refer to the [📘
57
+ Environment Variables](/en/self-hosting/environment-variables)
58
+ </Callout>
59
+
60
+ Afteradding the variables, finally click "Deploy lobe-chat" to enter the deployment phase
61
+
62
+ <Image alt={'Environment variables added'} bordered height={600} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9f74ec4-ce63-4ce9-b9e2-34bda6fda10b'} />
63
+
64
+ ### Wait for Deployment to Complete
65
+
66
+ After clicking deploy, you will enter the site details page, where you can click the "Deploying your site" in blue or the "Building" in yellow to view the deployment progress.
67
+
68
+ <Image alt={'Netlify site details page'} bordered height={396} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/a7fd85d5-fd32-4756-814e-ff7ab7567fe1'} />
69
+
70
+ Upon entering the deployment details, you will see the following interface, indicating that your LobeChat is currently being deployed. Simply wait for the deployment to complete.
71
+
72
+ <Image alt={'LobeChat deployment in progress'} bordered height={325} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/1ed8b13d-046e-47c8-bd61-116ffdf5d01b'} />
73
+
74
+ During the deployment and build process:
75
+
76
+ <Image alt={'Deployment in progress'} bordered height={558} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/1c82d707-cb6f-4924-b246-a5235a919864'} />
77
+
78
+ ### Deployment Successful, Start Using
79
+
80
+ If your Deploy Log in the interface looks like the following, it means your LobeChat has been successfully deployed.
81
+
82
+ <Image alt={'Deployment Successful'} bordered height={558} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/c1f945d1-f3e2-4100-b6bb-24d4cb13c438'} />
83
+
84
+ At this point, you can click on "Open production deploy" to access your LobeChat site.
85
+
86
+ <Image alt={'Access Your LobeChat Site'} bordered height={527} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/b04723eb-64ad-4028-a901-dc4e4ee2d0c1'} />
154
87
  </Steps>
155
88
 
156
89
  ## Set up Custom Domain (Optional)
157
90
 
158
91
  You can use the subdomain provided by Netlify, or choose to bind a custom domain. Currently, the domain provided by Netlify has not been contaminated, and can be accessed directly in most regions.
159
-
160
- [//]: # '[![][deploy-button-image]][deploy-link]'
161
- [//]: # '[deploy-button-image]: https://www.netlify.com/img/deploy/button.svg'
162
- [//]: # '[deploy-link]: https://app.netlify.com/start/deploy?repository=https://github.com/lobehub/lobe-chat'
163
- [//]: # '### 授权 Netlify 访问你的 GitHub 账号'
164
- [//]: # '点击 「Connect to GitHub」,授权 Netlify 访问你的 GitHub 账号:'
165
- [//]: # 'Image'
166
- [//]: # 'github.com/lobehub/lobe-chat/assets/28616219/8ee533d5-f7e9-4523-991b-2c23a72c1530'
167
- [//]: # ' bordered'
168
- [//]: # ' width={790}'
169
- [//]: # ' height={556}'
170
- [//]: # '/>'
@@ -7,158 +7,79 @@ import { Callout, Steps } from 'nextra/components';
7
7
  ## Netlify 部署 LobeChat
8
8
 
9
9
  <Steps>
10
+ ### Fork LobeChat 仓库
10
11
 
11
- ### Fork LobeChat 仓库
12
+ 点击 Fork 按钮,将 LobeChat 仓库 Fork 到你的 GitHub 账号下。
12
13
 
13
- 点击 Fork 按钮,将 LobeChat 仓库 Fork 到你的 GitHub 账号下。
14
+ ### 准备好你的 OpenAI API Key
14
15
 
15
- ### 准备好你的 OpenAI API Key
16
+ 前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
16
17
 
17
- 前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
18
-
19
- ### 在 Netflix 工作台导入
18
+ ### Netflix 工作台导入
20
19
 
21
- <Callout>经过测试,暂不支持类似 Vercel/Zeabur 的一键部署按钮,原因未知。因此需要手动导入</Callout>
20
+ <Callout>经过测试,暂不支持类似 Vercel/Zeabur 的一键部署按钮,原因未知。因此需要手动导入</Callout>
22
21
 
23
- 点击 「Import from git」
22
+ 点击 「Import from git」
24
23
 
25
- <Image
26
- alt={'在 Netflix 工作台点击 「Import from git」'}
27
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/31b999e5-2a74-45fc-935b-f036e72a684d'}
28
- bordered
29
- inStep
30
- height={362}
31
- />
24
+ <Image alt={'在 Netflix 工作台点击 「Import from git」'} bordered height={362} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/31b999e5-2a74-45fc-935b-f036e72a684d'} />
32
25
 
33
- 然后点击 「Deploy with Github」,并授权 Netlify 访问你的 GitHub 账号
34
-
35
- <Image
36
- alt={'授权 Netlify 访问你的 GitHub 账号'}
37
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9c58141-5ec6-43f1-8d97-0a84a04dcdba'}
38
- bordered
39
- inStep
40
- height={273}
41
- />
42
-
43
- [//]: # '[![][deploy-button-image]][deploy-link]'
44
- [//]: # '[deploy-button-image]: https://www.netlify.com/img/deploy/button.svg'
45
- [//]: # '[deploy-link]: https://app.netlify.com/start/deploy?repository=https://github.com/lobehub/lobe-chat'
46
- [//]: # '### 授权 Netlify 访问你的 GitHub 账号'
47
- [//]: # '点击 「Connect to GitHub」,授权 Netlify 访问你的 GitHub 账号:'
48
- [//]: # 'Image'
49
- [//]: # 'github.com/lobehub/lobe-chat/assets/28616219/8ee533d5-f7e9-4523-991b-2c23a72c1530'
50
- [//]: # ' bordered'
51
- [//]: # ' width={790}'
52
- [//]: # ' height={556}'
53
- [//]: # '/>'
54
-
55
- 然后选择 LobeChat 项目:
56
-
57
- <Image
58
- alt={'选择 LobeChat github 项目'}
59
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/6c3968a8-fbbb-4268-a587-edaced2d96af'}
60
- bordered
61
- inStep
62
- height={228}
63
- />
64
-
65
- ### 配置站点名称与环境变量
66
-
67
- 在这一步,你需要配置你的站点,包括站点名称、构建命令、发布目录等。在「Site Name」字段填写上你的站点名称。其余配置如果没有特殊要求,无需修改,我们已经设定好了默认配置。
68
-
69
- <Image
70
- alt={'配置 LobeChat 站点名称'}
71
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/f3885537-6d43-422f-b1b8-e70732401025'}
72
- bordered
73
- inStep
74
- height={712}
75
- />
76
-
77
- 点击 「Add environment variables」按钮,添加站点环境变量:
78
-
79
- <Image
80
- alt={'添加 LobeChat 站点环境变量'}
81
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/3b607482-4d99-455a-bc10-3090dd4fe3c5'}
82
- bordered
83
- inStep
84
- height={537}
85
- />
86
-
87
- 以配置 OpenAI 为例,你需要添加的环境变量如下:
88
-
89
- | 环境变量 | 类型 | 描述 | 示例 |
90
- | --- | --- | --- | --- |
91
- | `OPENAI_API_KEY` | 必选 | 这是你在 OpenAI 账户页面申请的 API 密钥 | `sk-xxxxxx...xxxxxx` |
92
- | `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个长密码以防被爆破,该值用逗号分隔时为密码数组 | `awCT74` 或 `e3@09!` or `code1,code2,code3` |
93
- | `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://aihubmix.com/v1` ,默认值:`https://api.openai.com/v1` |
94
-
95
- <Callout type={'info'}>
96
- LobeChat 支持的完整环境变量列表请参考 [📘 环境变量](/zh/self-hosting/environment-variables) 部分
97
- </Callout>
98
-
99
- 添加完成后,最后点击「Deploy lobe-chat」 进入部署阶段。
100
-
101
- <Image
102
- alt={'环境变量添加完成'}
103
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9f74ec4-ce63-4ce9-b9e2-34bda6fda10b'}
104
- bordered
105
- inStep
106
- height={600}
107
- />
108
-
109
- ### 等待部署完成
110
-
111
- 点击部署后,会进入站点详情页面,你可以点击青色字样的「Deploying your site」或者 「Building」 黄色标签查看部署进度。
112
-
113
- <Image
114
- alt={'Netlify 站点详情页'}
115
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/a7fd85d5-fd32-4756-814e-ff7ab7567fe1'}
116
- bordered
117
- inStep
118
- height={396}
119
- />
120
-
121
- 进入部署详情,你会看到下述界面,这意味着你的 LobeChat 正在部署中,只需等待部署完成即可。
122
-
123
- <Image
124
- alt={'LobeChat 部署构建中'}
125
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/1ed8b13d-046e-47c8-bd61-116ffdf5d01b'}
126
- bordered
127
- inStep
128
- height={325}
129
- />
130
-
131
- 部署构建过程中:
132
-
133
- <Image
134
- alt={'部署构建中'}
135
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/1c82d707-cb6f-4924-b246-a5235a919864'}
136
- bordered
137
- inStep
138
- height={558}
139
- />
140
- ### 部署成功,开始使用
141
-
142
- 如果你的界面中的 Deploy Log 如下所示,意味着你的 LobeChat 部署成功了。
143
-
144
- <Image
145
- alt={'部署成功'}
146
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/c1f945d1-f3e2-4100-b6bb-24d4cb13c438'}
147
- bordered
148
- inStep
149
- height={558}
150
- />
151
-
152
- 此时,你可以点击「Open production deploy」,即可访问你的 LobeChat 站点
153
-
154
- <Image
155
- alt={'访问你的 LobeChat 站点'}
156
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/b04723eb-64ad-4028-a901-dc4e4ee2d0c1'}
157
- bordered
158
- inStep
159
- height={527}
160
- />
26
+ 然后点击 「Deploy with Github」,并授权 Netlify 访问你的 GitHub 账号
161
27
 
28
+ <Image alt={'授权 Netlify 访问你的 GitHub 账号'} bordered height={273} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9c58141-5ec6-43f1-8d97-0a84a04dcdba'} />
29
+
30
+ 然后选择 LobeChat 项目:
31
+
32
+ <Image alt={'选择 LobeChat github 项目'} bordered height={228} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/6c3968a8-fbbb-4268-a587-edaced2d96af'} />
33
+
34
+ ### 配置站点名称与环境变量
35
+
36
+ 在这一步,你需要配置你的站点,包括站点名称、构建命令、发布目录等。在「Site Name」字段填写上你的站点名称。其余配置如果没有特殊要求,无需修改,我们已经设定好了默认配置。
37
+
38
+ <Image alt={'配置 LobeChat 站点名称'} bordered height={712} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/f3885537-6d43-422f-b1b8-e70732401025'} />
39
+
40
+ 点击 「Add environment variables」按钮,添加站点环境变量:
41
+
42
+ <Image alt={'添加 LobeChat 站点环境变量'} bordered height={537} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/3b607482-4d99-455a-bc10-3090dd4fe3c5'} />
43
+
44
+ 以配置 OpenAI 为例,你需要添加的环境变量如下:
45
+
46
+ | 环境变量 | 类型 | 描述 | 示例 |
47
+ | ------------------ | -- | ------------------------------------------------------- | ---------------------------------------------------------- |
48
+ | `OPENAI_API_KEY` | 必选 | 这是你在 OpenAI 账户页面申请的 API 密钥 | `sk-xxxxxx...xxxxxx` |
49
+ | `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个长密码以防被爆破,该值用逗号分隔时为密码数组 | `awCT74` 或 `e3@09!` or `code1,code2,code3` |
50
+ | `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://aihubmix.com/v1` ,默认值:`https://api.openai.com/v1` |
51
+
52
+ <Callout type={'info'}>
53
+ LobeChat 支持的完整环境变量列表请参考 [📘 环境变量](/zh/self-hosting/environment-variables) 部分
54
+ </Callout>
55
+
56
+ 添加完成后,最后点击「Deploy lobe-chat」 进入部署阶段。
57
+
58
+ <Image alt={'环境变量添加完成'} bordered height={600} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/c9f74ec4-ce63-4ce9-b9e2-34bda6fda10b'} />
59
+
60
+ ### 等待部署完成
61
+
62
+ 点击部署后,会进入站点详情页面,你可以点击青色字样的「Deploying your site」或者 「Building」 黄色标签查看部署进度。
63
+
64
+ <Image alt={'Netlify 站点详情页'} bordered height={396} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/a7fd85d5-fd32-4756-814e-ff7ab7567fe1'} />
65
+
66
+ 进入部署详情,你会看到下述界面,这意味着你的 LobeChat 正在部署中,只需等待部署完成即可。
67
+
68
+ <Image alt={'LobeChat 部署构建中'} bordered height={325} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/1ed8b13d-046e-47c8-bd61-116ffdf5d01b'} />
69
+
70
+ 部署构建过程中:
71
+
72
+ <Image alt={'部署构建中'} bordered height={558} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/1c82d707-cb6f-4924-b246-a5235a919864'} />
73
+
74
+ ### 部署成功,开始使用
75
+
76
+ 如果你的界面中的 Deploy Log 如下所示,意味着你的 LobeChat 部署成功了。
77
+
78
+ <Image alt={'部署成功'} bordered height={558} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/c1f945d1-f3e2-4100-b6bb-24d4cb13c438'} />
79
+
80
+ 此时,你可以点击「Open production deploy」,即可访问你的 LobeChat 站点
81
+
82
+ <Image alt={'访问你的 LobeChat 站点'} bordered height={527} inStep src={'https://github.com/lobehub/lobe-chat/assets/28616219/b04723eb-64ad-4028-a901-dc4e4ee2d0c1'} />
162
83
  </Steps>
163
84
 
164
85
  ## 绑定自定义域名(可选)
@@ -7,21 +7,19 @@ If you want to deploy LobeChat on RepoCloud, you can follow the steps below:
7
7
  ## RepoCloud Deployment Process
8
8
 
9
9
  <Steps>
10
+ ### Prepare your OpenAI API Key
10
11
 
11
- ### Prepare your OpenAI API Key
12
+ Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
12
13
 
13
- Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
14
+ ### One-click to deploy
14
15
 
15
- ### One-click to deploy
16
+ [![][deploy-button-image]][deploy-link]
16
17
 
17
- [![][deploy-button-image]][deploy-link]
18
+ ### Once deployed, you can start using it
18
19
 
19
- ### Once deployed, you can start using it
20
-
21
- ### Bind a custom domain (optional)
22
-
23
- You can use the subdomain provided by RepoCloud, or choose to bind a custom domain. Currently, the domains provided by RepoCloud have not been contaminated, and most regions can connect directly.
20
+ ### Bind a custom domain (optional)
24
21
 
22
+ You can use the subdomain provided by RepoCloud, or choose to bind a custom domain. Currently, the domains provided by RepoCloud have not been contaminated, and most regions can connect directly.
25
23
  </Steps>
26
24
 
27
25
  [deploy-button-image]: https://d16t0pc4846x52.cloudfront.net/deploy.svg
@@ -7,22 +7,20 @@ import { Steps } from 'nextra/components';
7
7
  ## RepoCloud 部署流程
8
8
 
9
9
  <Steps>
10
+ ### 准备好你的 OpenAI API Key
10
11
 
11
- ### 准备好你的 OpenAI API Key
12
+ 前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
12
13
 
13
- 前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
14
+ ### 点击下方按钮进行部署
14
15
 
15
- ### 点击下方按钮进行部署
16
+ [![][deploy-button-image]][deploy-link]
16
17
 
17
- [![][deploy-button-image]][deploy-link]
18
+ ### 部署完毕后,即可开始使用
18
19
 
19
- [deploy-button-image]: https://d16t0pc4846x52.cloudfront.net/deploy.svg
20
- [deploy-link]: https://repocloud.io/details/?app_id=248
21
-
22
- ### 部署完毕后,即可开始使用
23
-
24
- ### 绑定自定义域名(可选)
25
-
26
- 你可以使用 RepoCloud 提供的子域名,也可以选择绑定自定义域名。目前 RepoCloud 提供的域名还未被污染,大多数地区都可以直连。
20
+ ### 绑定自定义域名(可选)
27
21
 
22
+ 你可以使用 RepoCloud 提供的子域名,也可以选择绑定自定义域名。目前 RepoCloud 提供的域名还未被污染,大多数地区都可以直连。
28
23
  </Steps>
24
+
25
+ [deploy-button-image]: https://d16t0pc4846x52.cloudfront.net/deploy.svg
26
+ [deploy-link]: https://repocloud.io/details/?app_id=248
@@ -7,21 +7,19 @@ If you want to deploy LobeChat on SealOS, you can follow the steps below:
7
7
  ## SealOS Deployment Process
8
8
 
9
9
  <Steps>
10
+ ### Prepare your OpenAI API Key
10
11
 
11
- ### Prepare your OpenAI API Key
12
+ Go to [OpenAI](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
12
13
 
13
- Go to [OpenAI](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
14
+ ### Click the button below to deploy
14
15
 
15
- ### Click the button below to deploy
16
+ [![][deploy-button-image]][deploy-link]
16
17
 
17
- [![][deploy-button-image]][deploy-link]
18
+ ### After deployment, you can start using it
18
19
 
19
- ### After deployment, you can start using it
20
-
21
- ### Bind a custom domain (optional)
22
-
23
- You can use the subdomain provided by SealOS, or choose to bind a custom domain. Currently, the domains provided by SealOS have not been contaminated, and can be directly accessed in most regions.
20
+ ### Bind a custom domain (optional)
24
21
 
22
+ You can use the subdomain provided by SealOS, or choose to bind a custom domain. Currently, the domains provided by SealOS have not been contaminated, and can be directly accessed in most regions.
25
23
  </Steps>
26
24
 
27
25
  [deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
@@ -7,22 +7,20 @@ import { Steps } from 'nextra/components';
7
7
  ## SealOS 部署流程
8
8
 
9
9
  <Steps>
10
+ ### 准备好你的 OpenAI API Key
10
11
 
11
- ### 准备好你的 OpenAI API Key
12
+ 前往 [OpenAI](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
12
13
 
13
- 前往 [OpenAI](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
14
+ ### 点击下方按钮进行部署
14
15
 
15
- ### 点击下方按钮进行部署
16
+ [![][deploy-button-image]][deploy-link]
16
17
 
17
- [![][deploy-button-image]][deploy-link]
18
+ ### 部署完毕后,即可开始使用
18
19
 
19
- [deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
20
- [deploy-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
21
-
22
- ### 部署完毕后,即可开始使用
23
-
24
- ### 绑定自定义域名(可选)
25
-
26
- 你可以使用 SealOS 提供的子域名,也可以选择绑定自定义域名。目前 SealOS 提供的域名还未被污染,大多数地区都可以直连。
20
+ ### 绑定自定义域名(可选)
27
21
 
22
+ 你可以使用 SealOS 提供的子域名,也可以选择绑定自定义域名。目前 SealOS 提供的域名还未被污染,大多数地区都可以直连。
28
23
  </Steps>
24
+
25
+ [deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
26
+ [deploy-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
@@ -7,26 +7,21 @@ If you want to deploy LobeChat on Vercel, you can follow the steps below:
7
7
  ## Vercel Deployment Process
8
8
 
9
9
  <Steps>
10
+ ### Prepare your OpenAI API Key
10
11
 
11
- ### Prepare your OpenAI API Key
12
+ Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
12
13
 
13
- Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
14
+ ### Click the button below to deploy
14
15
 
15
- ### Click the button below to deploy
16
+ [![][deploy-button-image]][deploy-link]
16
17
 
17
- [![][deploy-button-image]][deploy-link]
18
+ Simply log in with your GitHub account, and remember to fill in `OPENAI_API_KEY` (required) and `ACCESS_CODE` (recommended) in the environment variables page.
18
19
 
19
- [deploy-button-image]: https://vercel.com/button
20
- [deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
21
-
22
- Simply log in with your GitHub account, and remember to fill in `OPENAI_API_KEY` (required) and `ACCESS_CODE` (recommended) in the environment variables page.
23
-
24
- ### After deployment, you can start using it
20
+ ### After deployment, you can start using it
25
21
 
26
- ### Bind a custom domain (optional)
27
-
28
- Vercel's assigned domain DNS may be polluted in some regions, so binding a custom domain can establish a direct connection.
22
+ ### Bind a custom domain (optional)
29
23
 
24
+ Vercel's assigned domain DNS may be polluted in some regions, so binding a custom domain can establish a direct connection.
30
25
  </Steps>
31
26
 
32
27
  ## Automatic Synchronization of Updates
@@ -34,6 +29,9 @@ Vercel's assigned domain DNS may be polluted in some regions, so binding a custo
34
29
  If you have deployed your project using the one-click deployment steps mentioned above, you may find that you are always prompted with "updates available." This is because Vercel creates a new project for you by default instead of forking this project, which causes the inability to accurately detect updates.
35
30
 
36
31
  <Callout>
37
- We recommend following the [Self-Hosting Upstream
38
- Sync](/zh/self-hosting/upstream-sync) steps to Redeploy.
32
+ We recommend following the [Self-Hosting Upstream Sync](/zh/self-hosting/upstream-sync) steps to
33
+ Redeploy.
39
34
  </Callout>
35
+
36
+ [deploy-button-image]: https://vercel.com/button
37
+ [deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY,ACCESS_CODE&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%7C%20Access%20Code%20can%20protect%20your%20website&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat