@lobehub/chat 1.62.5 → 1.62.7

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 (55) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +1 -1
  3. package/README.zh-CN.md +1 -1
  4. package/changelog/v1.json +18 -0
  5. package/docs/self-hosting/environment-variables/model-provider.mdx +17 -0
  6. package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +16 -0
  7. package/docs/self-hosting/platform/sealos.mdx +8 -8
  8. package/docs/self-hosting/platform/sealos.zh-CN.mdx +7 -7
  9. package/docs/self-hosting/server-database/sealos.mdx +84 -5
  10. package/docs/self-hosting/server-database/sealos.zh-CN.mdx +105 -5
  11. package/docs/self-hosting/start.zh-CN.mdx +2 -1
  12. package/locales/ar/plugin.json +4 -0
  13. package/locales/bg-BG/plugin.json +4 -0
  14. package/locales/de-DE/plugin.json +4 -0
  15. package/locales/en-US/plugin.json +4 -0
  16. package/locales/es-ES/plugin.json +4 -0
  17. package/locales/fa-IR/plugin.json +4 -0
  18. package/locales/fr-FR/plugin.json +4 -0
  19. package/locales/it-IT/plugin.json +4 -0
  20. package/locales/ja-JP/plugin.json +4 -0
  21. package/locales/ko-KR/plugin.json +4 -0
  22. package/locales/nl-NL/plugin.json +4 -0
  23. package/locales/pl-PL/plugin.json +4 -0
  24. package/locales/pt-BR/plugin.json +4 -0
  25. package/locales/ru-RU/plugin.json +4 -0
  26. package/locales/tr-TR/plugin.json +4 -0
  27. package/locales/vi-VN/plugin.json +4 -0
  28. package/locales/zh-CN/plugin.json +5 -1
  29. package/locales/zh-TW/plugin.json +4 -0
  30. package/package.json +1 -1
  31. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/index.tsx +1 -1
  32. package/src/config/aiModels/volcengine.ts +249 -2
  33. package/src/database/server/models/aiProvider.ts +22 -9
  34. package/src/database/server/models/topic.ts +2 -0
  35. package/src/features/Conversation/Messages/Assistant/Tool/Inspector/Debug.tsx +43 -0
  36. package/src/features/Conversation/Messages/Assistant/Tool/Inspector/Loader.tsx +58 -0
  37. package/src/features/Conversation/Messages/Assistant/Tool/Inspector/index.tsx +151 -0
  38. package/src/features/Conversation/Messages/Assistant/Tool/Render/Arguments.tsx +165 -0
  39. package/src/features/Conversation/Messages/Assistant/{ToolCallItem/Tool.tsx → Tool/Render/CustomRender.tsx} +34 -35
  40. package/src/features/Conversation/Messages/Assistant/Tool/Render/index.tsx +39 -0
  41. package/src/features/Conversation/Messages/Assistant/Tool/index.tsx +70 -0
  42. package/src/features/Conversation/Messages/Assistant/index.tsx +19 -27
  43. package/src/features/InitClientDB/PGliteIcon.tsx +2 -2
  44. package/src/features/PluginsUI/Render/index.tsx +2 -11
  45. package/src/locales/default/plugin.ts +4 -0
  46. package/src/styles/loading.ts +27 -0
  47. package/src/tools/dalle/Render/GalleyGrid.tsx +60 -0
  48. package/src/tools/dalle/Render/index.tsx +1 -1
  49. package/src/features/Conversation/Messages/Assistant/ToolCallItem/Inspector/index.tsx +0 -166
  50. package/src/features/Conversation/Messages/Assistant/ToolCallItem/Inspector/style.ts +0 -35
  51. package/src/features/Conversation/Messages/Assistant/ToolCallItem/index.tsx +0 -89
  52. package/src/features/Conversation/Messages/Assistant/ToolCallItem/style.ts +0 -35
  53. package/src/features/Conversation/Messages/components/Arguments.tsx +0 -22
  54. /package/src/features/Conversation/Messages/Assistant/{ToolCallItem → Tool}/Inspector/PluginResultJSON.tsx +0 -0
  55. /package/src/features/Conversation/Messages/Assistant/{ToolCallItem → Tool}/Inspector/Settings.tsx +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.62.7](https://github.com/lobehub/lobe-chat/compare/v1.62.6...v1.62.7)
6
+
7
+ <sup>Released on **2025-02-21**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add Volcano Ark models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add Volcano Ark models, closes [#6368](https://github.com/lobehub/lobe-chat/issues/6368) ([02136f5](https://github.com/lobehub/lobe-chat/commit/02136f5))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.62.6](https://github.com/lobehub/lobe-chat/compare/v1.62.5...v1.62.6)
31
+
32
+ <sup>Released on **2025-02-21**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Refactor the plugin render style.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Refactor the plugin render style, closes [#6390](https://github.com/lobehub/lobe-chat/issues/6390) ([3ecdba1](https://github.com/lobehub/lobe-chat/commit/3ecdba1))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.62.5](https://github.com/lobehub/lobe-chat/compare/v1.62.4...v1.62.5)
6
56
 
7
57
  <sup>Released on **2025-02-21**</sup>
package/README.md CHANGED
@@ -787,7 +787,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
787
787
  [deploy-on-repocloud-button-image]: https://d16t0pc4846x52.cloudfront.net/deploylobe.svg
788
788
  [deploy-on-repocloud-link]: https://repocloud.io/details/?app_id=248
789
789
  [deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
790
- [deploy-on-sealos-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
790
+ [deploy-on-sealos-link]: https://template.usw.sealos.io/deploy?templateName=lobe-chat-db
791
791
  [deploy-on-zeabur-button-image]: https://zeabur.com/button.svg
792
792
  [deploy-on-zeabur-link]: https://zeabur.com/templates/VZGGTI
793
793
  [discord-link]: https://discord.gg/AYFPHvv2jT
package/README.zh-CN.md CHANGED
@@ -807,7 +807,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
807
807
  [deploy-on-alibaba-cloud-button-image]: https://service-info-public.oss-cn-hangzhou.aliyuncs.com/computenest-en.svg
808
808
  [deploy-on-alibaba-cloud-link]: https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=LobeChat%E7%A4%BE%E5%8C%BA%E7%89%88
809
809
  [deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
810
- [deploy-on-sealos-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
810
+ [deploy-on-sealos-link]: https://template.hzh.sealos.run/deploy?templateName=lobe-chat-db
811
811
  [deploy-on-zeabur-button-image]: https://zeabur.com/button.svg
812
812
  [deploy-on-zeabur-link]: https://zeabur.com/templates/VZGGTI
813
813
  [discord-link]: https://discord.gg/AYFPHvv2jT
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Add Volcano Ark models."
6
+ ]
7
+ },
8
+ "date": "2025-02-21",
9
+ "version": "1.62.7"
10
+ },
11
+ {
12
+ "children": {
13
+ "improvements": [
14
+ "Refactor the plugin render style."
15
+ ]
16
+ },
17
+ "date": "2025-02-21",
18
+ "version": "1.62.6"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "fixes": [
@@ -509,4 +509,21 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
509
509
  - Default: `-`
510
510
  - Example: `-all,+hunyuan-lite,+hunyuan-standard`
511
511
 
512
+ ## Volcengine
513
+
514
+ ### `VOLCENGINE_API_KEY`
515
+
516
+ - Type: Required
517
+ - Description: This is the API key you applied from Volcengine service, you can check it out [here](https://console.volcengine.com/ark/region:ark+cn-beijing/endpoint)
518
+ - Default: -
519
+ - Example: `ad925b3d-aaaa-bbbb-cccc-51fde2f50547`
520
+
521
+ ### `VOLCENGINE_MODEL_LIST`
522
+
523
+ - Type: Optional
524
+ - Description: Used to control the model list, use `+` to add a model, use `-` to hide a model, use `model_name=display_name` to customize the display name of a model, separated by commas. Definition syntax rules see [model-list][model-list]
525
+ - Default: `-`
526
+ - Example: `-all,+deepseek-r1-250120,+deepseek-v3-241226,+doubao-1-5-pro-256k-250115,+doubao-1-5-pro-32k-250115,+doubao-1-5-lite-32k-250115`
527
+
528
+
512
529
  [model-list]: /docs/self-hosting/advanced/model-list
@@ -507,4 +507,20 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
507
507
  - 默认值:`-`
508
508
  - 示例:`-all,+hunyuan-lite,+hunyuan-standard`
509
509
 
510
+ ## 火山引擎
511
+
512
+ ### `VOLCENGINE_API_KEY`
513
+
514
+ - 类型:必选
515
+ - 描述:这是你在 火山引擎 服务中申请的 API 密钥,可以前往 [这里](https://console.volcengine.com/ark/region:ark+cn-beijing/endpoint) 查看
516
+ - 默认值:-
517
+ - 示例:`ad925b3d-aaaa-bbbb-cccc-51fde2f50547`
518
+
519
+ ### `VOLCENGINE_MODEL_LIST`
520
+
521
+ - 类型:可选
522
+ - 描述:用来控制模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名<扩展配置>` 来自定义模型的展示名,用英文逗号隔开。模型定义语法规则见 [模型列表][model-list]
523
+ - 默认值:`-`
524
+ - 示例:`-all,+deepseek-r1-250120,+deepseek-v3-241226,+doubao-1-5-pro-256k-250115,+doubao-1-5-pro-32k-250115,+doubao-1-5-lite-32k-250115`
525
+
510
526
  [model-list]: /zh/docs/self-hosting/advanced/model-list
@@ -1,20 +1,20 @@
1
1
  ---
2
- title: Deploy LobeChat on SealOS
2
+ title: Deploy LobeChat on Sealos
3
3
  description: >-
4
- Learn how to deploy LobeChat on SealOS with ease. Follow the provided steps to
4
+ Learn how to deploy LobeChat on Sealos with ease. Follow the provided steps to
5
5
  set up LobeChat and start using it efficiently.
6
6
  tags:
7
7
  - Deploy LobeChat
8
- - SealOS Deployment
8
+ - Sealos Deployment
9
9
  - OpenAI API Key
10
10
  - Custom Domain Binding
11
11
  ---
12
12
 
13
- # Deploy LobeChat with SealOS
13
+ # Deploy LobeChat with Sealos
14
14
 
15
- If you want to deploy LobeChat on SealOS, you can follow the steps below:
15
+ If you want to deploy LobeChat on Sealos, you can follow the steps below:
16
16
 
17
- ## SealOS Deployment Process
17
+ ## Sealos Deployment Process
18
18
 
19
19
  <Steps>
20
20
  ### Prepare your OpenAI API Key
@@ -29,8 +29,8 @@ If you want to deploy LobeChat on SealOS, you can follow the steps below:
29
29
 
30
30
  ### Bind a custom domain (optional)
31
31
 
32
- 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.
32
+ 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.
33
33
  </Steps>
34
34
 
35
35
  [deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
36
- [deploy-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
36
+ [deploy-link]: https://template.usw.sealos.io/deploy?templateName=lobe-chat
@@ -1,19 +1,19 @@
1
1
  ---
2
- title: 在 SealOS 上部署 LobeChat
3
- description: 学习如何在 SealOS 上部署 LobeChat,包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
2
+ title: 在 Sealos 上部署 LobeChat
3
+ description: 学习如何在 Sealos 上部署 LobeChat,包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
4
4
  tags:
5
- - SealOS
5
+ - Sealos
6
6
  - LobeChat
7
7
  - OpenAI API Key
8
8
  - 部署流程
9
9
  - 自定义域名
10
10
  ---
11
11
 
12
- # 使用 SealOS 部署
12
+ # 使用 Sealos 部署
13
13
 
14
- 如果想在 SealOS 上部署 LobeChat,可以按照以下步骤进行操作:
14
+ 如果想在 Sealos 上部署 LobeChat,可以按照以下步骤进行操作:
15
15
 
16
- ## SealOS 部署流程
16
+ ## Sealos 部署流程
17
17
 
18
18
  <Steps>
19
19
  ### 准备好你的 OpenAI API Key
@@ -28,7 +28,7 @@ tags:
28
28
 
29
29
  ### 绑定自定义域名(可选)
30
30
 
31
- 你可以使用 SealOS 提供的子域名,也可以选择绑定自定义域名。目前 SealOS 提供的域名还未被污染,大多数地区都可以直连。
31
+ 你可以使用 Sealos 提供的子域名,也可以选择绑定自定义域名。目前 Sealos 提供的域名还未被污染,大多数地区都可以直连。
32
32
  </Steps>
33
33
 
34
34
  [deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
@@ -1,15 +1,94 @@
1
1
  ---
2
- title: Deploy LobeChat on SealOS
2
+ title: Deploy Lobe Chat Database Version on Sealos
3
3
  description: >-
4
- Learn how to deploy LobeChat on SealOS with ease. Follow the provided steps to
4
+ Learn how to deploy LobeChat on Sealos with ease. Follow the provided steps to
5
5
  set up LobeChat and start using it efficiently.
6
6
  tags:
7
7
  - Deploy LobeChat
8
- - SealOS Deployment
8
+ - Sealos Deployment
9
9
  - OpenAI API Key
10
10
  - Custom Domain Binding
11
11
  ---
12
12
 
13
- # Deploy LobeChat on SealOS
13
+ # Deploying Lobe Chat Database Version on Sealos
14
+
15
+ <Callout type="info">
16
+ This article assumes that you are familiar with the basic principles and processes of deploying
17
+ the LobeChat server database version, so it only includes content related to core environment
18
+ variable configuration. If you are not familiar with the deployment principles of the LobeChat
19
+ server database version, please refer to [Deploying Server
20
+ Database](/docs/self-hosting/server-database) first.
21
+ </Callout>
22
+
23
+ The application on Sealos includes 4 services:
24
+
25
+ - Logto for authrization(need to deploy separately).
26
+ - PostgreSQL with Vector plugin for data storage and indexing.
27
+ - One object storage Bucket.
28
+ - Lobe Chat database version.
29
+
30
+ Here is the process for deploying the Lobe Chat server database version on Sealos:
31
+
32
+ ## Pre-Deployment Setup
33
+
34
+ **Step 1**:Click the button below to deploy a Logto service:
35
+
36
+ [![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.usw.sealos.io/deploy?templateName=logto)
37
+
38
+ > Logto is an open-source identity and access management (IAM) platform, an open-source alternative to Auth0, designed to help developers quickly build secure and scalable login and registration systems and user identity systems.
39
+
40
+ **Step 2**:After the deployment is complete, wait for all the components of the application to be in the "Running" state, click the application's "Details" button to enter the application details page.
41
+
42
+ ![Logto application deployment status on Sealos](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-deployment-status-sealos-en.png)
43
+
44
+ Click the public address corresponding to port 3002, you can use the public address to access the Logto service.
45
+
46
+ ![Logto service public address](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-public-address-en.png)
47
+
48
+ **Step 3**:Register a management account, then click the `Applications` menu on the left, enter the application list page. Click the `Create application` button in the upper right corner to create an application.
49
+
50
+ ![Logto application list page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-application-list.png)
51
+
52
+ Select `Next.js (App Router)` as the framework, then click the `Start building` button.
53
+
54
+ ![Logto create application page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application.png)
55
+
56
+ **Step 4**:In the pop-up window, fill in the application name as `Lobe Chat`, then click the `Create application` button. Next, do not fill in anything, just click the bottom `Finish and done` button to create it.
57
+
58
+ ![Logto create application done page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application-done.png)
59
+
60
+ **Step 5**:In the `Lobe Chat` application, find the following three parameters, which will be used later when deploying the Lobe Chat database version.
61
+
62
+ ![Logto application detail page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-detail.png)
63
+
64
+ ## Deploy Lobe Chat Database Version
65
+
66
+ **Step 1**:Fill in the following three required parameters:
67
+
68
+ - `AUTH_LOGTO_ID`:The App ID of the Logto application
69
+ - `AUTH_LOGTO_SECRET`:The App Secret of the Logto application
70
+ - `AUTH_LOGTO_ISSUER`:The Issuer endpoint of the Logto application
71
+
72
+ **Step 2**:Click the `Deploy App` button, after the deployment is complete, wait for all the components of the application to be in the "Running" state, click the application's "Details" button to enter the application details page.
73
+
74
+ ![Lobe Chat database version deployment done page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-deployment-done-en.png)
75
+
76
+ **Step 3**:Find the public address, copy it, and use it later.
77
+
78
+ ## Post-Deployment Configuration
79
+
80
+ **Step 1**:Enter the `Applications` page of Logto, find the `Lobe Chat` application, click to enter the application details page.
81
+
82
+ **Step 2**:In the `Settings` page, find the `Redirect URI` and `Post sign-out redirect URI` parameters, fill in the following values:
83
+
84
+ - Redirect URI: `https://<lobe-chat-db-public-address>/api/auth/callback/logto`
85
+ - Post sign-out redirect URI: `https://<lobe-chat-db-public-address>`
86
+
87
+ **Step 3**:Click the `Save changes` button to save the configuration.
88
+
89
+ **Step 4**:Now, access the Lobe Chat database version through `https://<lobe-chat-db-public-address>`, click the avatar in the upper left corner, and then click the [Log in / Sign up] button.
90
+
91
+ **Step 5**:Next, you will be redirected to the Logto login page, click the [Create account] button to register an account.
92
+
93
+ **Step 6**:After registration, you can use Logto to login to the Lobe Chat database version.
14
94
 
15
- TODO
@@ -1,14 +1,114 @@
1
1
  ---
2
- title: 在 SealOS 上部署 LobeChat
3
- description: 学习如何在 SealOS 上部署 LobeChat,包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
2
+ title: 在 Sealos 上部署 LobeChat 数据库版
3
+ description: 学习如何在 Sealos 上部署 LobeChat,包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
4
4
  tags:
5
- - SealOS
5
+ - Sealos
6
6
  - LobeChat
7
7
  - OpenAI API Key
8
8
  - 部署流程
9
9
  - 自定义域名
10
10
  ---
11
11
 
12
- # 使用 SealOS 部署 LobeChat 数据库版
12
+ # 使用 Sealos 部署 LobeChat 数据库版
13
13
 
14
- TODO
14
+ <Callout type="info">
15
+ 本文假设你已经熟悉 Lobe Chat
16
+ 服务器数据库版的部署基本原理和流程,因此只包含与核心环境变量配置相关的内容。如果你对 Lobe Chat
17
+ 服务器数据库版的部署原理不熟悉,请先参考[部署服务器数据库](/zh/docs/self-hosting/server-database)。
18
+ </Callout>
19
+
20
+ 在 Sealos 的 Lobe Chat 数据库版应用中总共包含有以下四个服务:
21
+
22
+ - Logto 提供身份校验(需额外部署)
23
+ - 带有 Vector 插件的 PostgreSQL 来做数据存储和向量化
24
+ - 一个对象存储 Bucket
25
+ - LobeChat Database 的实例
26
+
27
+ 这里是在 Sealos 上部署 Lobe Chat 服务器数据库版的流程:
28
+
29
+ ## 预部署配置
30
+
31
+ 在开始部署之前,您需要完成以下配置:
32
+
33
+ <Steps>
34
+
35
+ ### 部署 Logto 服务
36
+
37
+ 点击下方按钮部署一个 Logto 服务:
38
+
39
+ [![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.hzh.sealos.run/deploy?templateName=logto)
40
+
41
+ > Logto 是一个开源的身份与访问管理(IAM)平台,是 Auth0 的开源替代方案,旨在帮助开发者快速构建安全、可扩展的登录注册系统和用户身份体系。
42
+
43
+ 部署完成后,等待应用的所有组件状态都变成“运行中”,点击应用的【详情】按钮,进入应用详情页面。
44
+
45
+ ![Logto 应用详情页面部署完成状态](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-deployment-status-sealos.png)
46
+
47
+ 点击 3002 端口对应的公网地址,即可使用公网域名访问 Logto 服务。
48
+
49
+ ![Logto 服务公网地址](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-public-address.png)
50
+
51
+ ### 创建 Application
52
+
53
+ 注册一个管理员账号,然后点击左侧的 `Applications` 菜单,进入应用列表页面。再点击右上角的 `Create application` 按钮创建应用。
54
+
55
+ ![Logto 应用列表页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-application-list.png)
56
+
57
+ 选择 `Next.js (App Router)` 作为框架,然后点击 `Start building` 按钮。
58
+
59
+ ![Logto 创建应用页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application.png)
60
+
61
+ 在弹窗中填写应用的名称为 `Lobe Chat`,然后点击 `Create application` 按钮。接下来啥也不用填,直接点击底部的 `Finish and done` 按钮就创建完成了。
62
+
63
+ ![Logto 创建应用完成页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application-done.png)
64
+
65
+ 在 `Lobe Chat` 应用中找到以下三个参数,后面部署 Lobe Chat 数据库版时需要用到。
66
+
67
+ ![Logto 应用详情页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-detail.png)
68
+
69
+ </Steps>
70
+
71
+ ## 部署 Lobe Chat 数据库版
72
+
73
+ 点击下方按钮访问 Lobe Chat 数据库版应用部署页面:
74
+
75
+ [![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.hzh.sealos.run/deploy?templateName=lobe-chat-db)
76
+
77
+ 填入三个必填参数:
78
+
79
+ - `AUTH_LOGTO_ID`:Logto 应用的 App ID
80
+ - `AUTH_LOGTO_SECRET`:Logto 应用的 App Secret
81
+ - `AUTH_LOGTO_ISSUER`:Logto 应用的 Issuer endpoint
82
+
83
+ 点击【部署】按钮,部署完成后,等待应用的所有组件状态都变成“运行中”,点击应用的【详情】按钮,进入应用详情页面。
84
+
85
+ ![Lobe Chat 数据库版部署完成页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-deployment-done.png)
86
+
87
+ 找到公网地址,复制下来,后面需要用到。
88
+
89
+ ![Lobe Chat 数据库版公网地址](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-public-address.png)
90
+
91
+ ## 部署后配置
92
+
93
+ 进入 Logto 的 `Applications` 页面,找到 `Lobe Chat` 应用,点击进入应用详情页面。
94
+
95
+ 在 `Settings` 页面中找到 “Redirect URI” 和 “Post sign-out redirect URI” 这两个参数,填入以下值:
96
+
97
+ - Redirect URI:`https://<lobe-chat-db-public-address>/api/auth/callback/logto`
98
+ - Post sign-out redirect URI:`https://<lobe-chat-db-public-address>`
99
+
100
+ 其中 `https://<lobe-chat-db-public-address>` 为 Lobe Chat 数据库版的公网地址。
101
+
102
+ 填完之后点击 `Save changes` 按钮保存配置。
103
+
104
+ 现在通过 `https://<lobe-chat-db-public-address>` 访问 Lobe Chat 数据库版,点击左上角的头像,然后点击【登录 / 注册】按钮:
105
+
106
+ ![Lobe Chat 数据库版登录页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-login.png)
107
+
108
+ 接下来会跳转到 Logto 的登录页面,点击【注册】注册一个账号。
109
+
110
+ ![Lobe Chat 数据库版注册页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-register.png)
111
+
112
+ 注册完成后,即可使用 Logto 登录 Lobe Chat 数据库版。
113
+
114
+ ![Lobe Chat 数据库版登录成功页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-login-success.png)
@@ -2,13 +2,14 @@
2
2
  title: 构建属于自己的 LobeChat - 自选部署平台
3
3
  description: >-
4
4
  选择适合自己的部署平台,构建个性化的 Lobe Chat。支持 Docker、Docker
5
- Compose、Netlify、Railway、Repocloud、SealOS、Vercel 和 Zeabur 部署。
5
+ Compose、Netlify、Railway、Repocloud、Sealos、Vercel 和 Zeabur 部署。
6
6
  tags:
7
7
  - Lobe Chat
8
8
  - 部署平台
9
9
  - Docker
10
10
  - Netlify
11
11
  - Vercel
12
+ - Sealos
12
13
  - 阿里云计算巢
13
14
  - 个性化
14
15
  - 腾讯云
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "فشل تحديث الإضافة {{name}}",
119
119
  "urlError": "الرابط لا يعيد محتوى بتنسيق JSON، يرجى التأكد من صحة الرابط"
120
120
  },
121
+ "inspector": {
122
+ "args": "عرض قائمة المعلمات",
123
+ "pluginRender": "عرض واجهة المكون الإضافي"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "مهجور",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Неуспешно опресняване на плъгина {{name}}",
119
119
  "urlError": "Връзката не върна съдържание във формат JSON. Моля, уверете се, че е валидна връзка."
120
120
  },
121
+ "inspector": {
122
+ "args": "Преглед на списъка с параметри",
123
+ "pluginRender": "Преглед на интерфейса на плъгина"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Изтрит",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Fehler beim Aktualisieren des Plugins {{name}}.",
119
119
  "urlError": "Der Link hat keine JSON-Format-Inhalte zurückgegeben. Stellen Sie sicher, dass der Link gültig ist."
120
120
  },
121
+ "inspector": {
122
+ "args": "Parameterliste anzeigen",
123
+ "pluginRender": "Plugin-Oberfläche anzeigen"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Veraltet",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Failed to refresh plugin {{name}}",
119
119
  "urlError": "The link did not return content in JSON format. Please ensure it is a valid link."
120
120
  },
121
+ "inspector": {
122
+ "args": "View parameter list",
123
+ "pluginRender": "View plugin interface"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Deleted",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Error al volver a instalar el complemento {{name}}.",
119
119
  "urlError": "El enlace no devuelve contenido en formato JSON. Asegúrese de que sea un enlace válido."
120
120
  },
121
+ "inspector": {
122
+ "args": "Ver lista de parámetros",
123
+ "pluginRender": "Ver interfaz del plugin"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Obsoleto",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "بروزرسانی افزونه {{name}} ناموفق بود.",
119
119
  "urlError": "این لینک محتوای JSON بازنگرداند، لطفاً از معتبر بودن لینک اطمینان حاصل کنید."
120
120
  },
121
+ "inspector": {
122
+ "args": "مشاهده لیست پارامترها",
123
+ "pluginRender": "مشاهده رابط کاربری پلاگین"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "حذف شده",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Échec de la mise à jour du plugin {{name}}",
119
119
  "urlError": "Ce lien ne renvoie pas de contenu au format JSON. Veuillez vous assurer qu'il s'agit d'un lien valide."
120
120
  },
121
+ "inspector": {
122
+ "args": "Voir la liste des paramètres",
123
+ "pluginRender": "Voir l'interface du plugin"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Obsolète",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Ricaricamento del plugin {{name}} fallito",
119
119
  "urlError": "Il collegamento non restituisce contenuti nel formato JSON. Assicurati che il collegamento sia valido"
120
120
  },
121
+ "inspector": {
122
+ "args": "Visualizza l'elenco dei parametri",
123
+ "pluginRender": "Visualizza l'interfaccia del plugin"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Deprecato",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "プラグイン{{name}}の再インストールに失敗しました",
119
119
  "urlError": "このリンクはJSON形式のコンテンツを返していません。有効なリンクであることを確認してください"
120
120
  },
121
+ "inspector": {
122
+ "args": "パラメーターリストを表示",
123
+ "pluginRender": "プラグインインターフェースを表示"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "削除済み",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "플러그인 {{name}} 다시 설치 중 오류가 발생했습니다.",
119
119
  "urlError": "이 링크는 JSON 형식의 내용을 반환하지 않습니다. 유효한 링크인지 확인하세요."
120
120
  },
121
+ "inspector": {
122
+ "args": "매개변수 목록 보기",
123
+ "pluginRender": "플러그인 인터페이스 보기"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "삭제됨",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Vernieuwen van de plugin {{name}} is mislukt.",
119
119
  "urlError": "De link retourneert geen JSON-indeling. Zorg ervoor dat het een geldige link is."
120
120
  },
121
+ "inspector": {
122
+ "args": "Bekijk parameterlijst",
123
+ "pluginRender": "Bekijk plugininterface"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Verouderd",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Nie udało się odświeżyć wtyczki {{name}}",
119
119
  "urlError": "Link nie zwrócił treści w formacie JSON. Upewnij się, że jest to poprawny link."
120
120
  },
121
+ "inspector": {
122
+ "args": "Zobacz listę parametrów",
123
+ "pluginRender": "Zobacz interfejs wtyczki"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Usunięte",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Falha ao atualizar o plugin {{name}}",
119
119
  "urlError": "O link não retornou conteúdo no formato JSON. Certifique-se de que o link é válido."
120
120
  },
121
+ "inspector": {
122
+ "args": "Ver parâmetros",
123
+ "pluginRender": "Ver interface do plugin"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Obsoleto",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Ошибка при обновлении плагина {{name}}",
119
119
  "urlError": "Ссылка не возвращает данные в формате JSON. Проверьте правильность ссылки"
120
120
  },
121
+ "inspector": {
122
+ "args": "Просмотреть список параметров",
123
+ "pluginRender": "Просмотреть интерфейс плагина"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Устарел",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "{{name}} eklentisi yenilenemedi",
119
119
  "urlError": "Bağlantı JSON formatında içerik döndürmedi. Lütfen geçerli bir bağlantı olduğundan emin olun"
120
120
  },
121
+ "inspector": {
122
+ "args": "Parametre listesini görüntüle",
123
+ "pluginRender": "Eklenti arayüzünü görüntüle"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Eski",
@@ -118,6 +118,10 @@
118
118
  "reinstallError": "Làm mới plugin {{name}} thất bại",
119
119
  "urlError": "Liên kết này không trả về nội dung dạng JSON, vui lòng đảm bảo rằng đó là một liên kết hợp lệ"
120
120
  },
121
+ "inspector": {
122
+ "args": "Xem danh sách tham số",
123
+ "pluginRender": "Xem giao diện plugin"
124
+ },
121
125
  "list": {
122
126
  "item": {
123
127
  "deprecated.title": "Đã loại bỏ",