@lobehub/lobehub 2.0.0-next.332 → 2.0.0-next.334

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 (234) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/apps/desktop/src/main/const/dir.ts +3 -0
  3. package/apps/desktop/src/main/controllers/SystemCtr.ts +19 -0
  4. package/apps/desktop/src/main/controllers/__tests__/SystemCtr.test.ts +1 -0
  5. package/apps/desktop/src/main/menus/impls/macOS.test.ts +1 -0
  6. package/changelog/v1.json +21 -0
  7. package/docs/changelog/2023-09-09-plugin-system.mdx +3 -2
  8. package/docs/changelog/2023-11-14-gpt4-vision.mdx +6 -4
  9. package/docs/changelog/2023-11-19-tts-stt.mdx +3 -2
  10. package/docs/changelog/2023-12-22-dalle-3.mdx +5 -2
  11. package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +2 -2
  12. package/docs/changelog/2024-02-08-sso-oauth.mdx +2 -2
  13. package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +3 -2
  14. package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +2 -2
  15. package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +3 -2
  16. package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +2 -2
  17. package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +3 -2
  18. package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +5 -4
  19. package/docs/changelog/2024-09-13-openai-o1-models.mdx +2 -2
  20. package/docs/changelog/2024-09-20-artifacts.mdx +3 -2
  21. package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +2 -2
  22. package/docs/changelog/2024-10-27-pin-assistant.mdx +3 -2
  23. package/docs/changelog/2024-11-06-share-text-json.mdx +4 -2
  24. package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +2 -2
  25. package/docs/changelog/2024-11-25-november-providers.mdx +2 -2
  26. package/docs/changelog/2024-11-27-forkable-chat.mdx +2 -2
  27. package/docs/changelog/2025-01-03-user-profile.mdx +2 -2
  28. package/docs/changelog/2025-01-22-new-ai-provider.mdx +2 -2
  29. package/docs/changelog/2025-02-02-deepseek-r1.mdx +4 -4
  30. package/docs/development/basic/add-new-authentication-providers.mdx +4 -0
  31. package/docs/development/basic/add-new-authentication-providers.zh-CN.mdx +4 -0
  32. package/docs/development/basic/add-new-image-model.mdx +4 -0
  33. package/docs/development/basic/add-new-image-model.zh-CN.mdx +4 -0
  34. package/docs/development/basic/architecture.mdx +4 -0
  35. package/docs/development/basic/architecture.zh-CN.mdx +4 -0
  36. package/docs/development/basic/chat-api.mdx +4 -0
  37. package/docs/development/basic/chat-api.zh-CN.mdx +4 -0
  38. package/docs/development/basic/comfyui-development.mdx +3 -1
  39. package/docs/development/basic/contributing-guidelines.mdx +4 -0
  40. package/docs/development/basic/contributing-guidelines.zh-CN.mdx +4 -0
  41. package/docs/development/basic/feature-development-frontend.mdx +11 -3
  42. package/docs/development/basic/feature-development-frontend.zh-CN.mdx +11 -3
  43. package/docs/development/basic/feature-development.mdx +14 -5
  44. package/docs/development/basic/feature-development.zh-CN.mdx +14 -5
  45. package/docs/development/basic/folder-structure.mdx +7 -0
  46. package/docs/development/basic/folder-structure.zh-CN.mdx +7 -0
  47. package/docs/development/basic/resources.mdx +4 -0
  48. package/docs/development/basic/resources.zh-CN.mdx +4 -0
  49. package/docs/development/basic/setup-development.mdx +4 -0
  50. package/docs/development/basic/setup-development.zh-CN.mdx +4 -0
  51. package/docs/development/basic/test.mdx +4 -0
  52. package/docs/development/basic/test.zh-CN.mdx +4 -0
  53. package/docs/development/basic/work-with-server-side-database.mdx +5 -5
  54. package/docs/development/basic/work-with-server-side-database.zh-CN.mdx +5 -5
  55. package/docs/development/internationalization/add-new-locale.mdx +4 -0
  56. package/docs/development/internationalization/add-new-locale.zh-CN.mdx +4 -0
  57. package/docs/development/internationalization/internationalization-implementation.mdx +4 -0
  58. package/docs/development/internationalization/internationalization-implementation.zh-CN.mdx +4 -0
  59. package/docs/development/others/lighthouse.mdx +4 -0
  60. package/docs/development/others/lighthouse.zh-CN.mdx +4 -0
  61. package/docs/development/start.mdx +4 -0
  62. package/docs/development/start.zh-CN.mdx +4 -0
  63. package/docs/development/state-management/state-management-intro.mdx +4 -2
  64. package/docs/development/state-management/state-management-intro.zh-CN.mdx +4 -2
  65. package/docs/development/state-management/state-management-selectors.mdx +6 -1
  66. package/docs/development/state-management/state-management-selectors.zh-CN.mdx +6 -1
  67. package/docs/development/tests/integration-testing.zh-CN.mdx +4 -0
  68. package/docs/self-hosting/advanced/analytics.mdx +2 -2
  69. package/docs/self-hosting/advanced/auth/better-auth/apple.mdx +132 -0
  70. package/docs/self-hosting/advanced/auth/better-auth/apple.zh-CN.mdx +127 -0
  71. package/docs/self-hosting/advanced/auth/better-auth/auth0.mdx +111 -0
  72. package/docs/self-hosting/advanced/auth/better-auth/auth0.zh-CN.mdx +107 -0
  73. package/docs/self-hosting/advanced/auth/better-auth/authelia.mdx +66 -0
  74. package/docs/self-hosting/advanced/auth/better-auth/authelia.zh-CN.mdx +62 -0
  75. package/docs/self-hosting/advanced/auth/better-auth/authentik.mdx +67 -0
  76. package/docs/self-hosting/advanced/auth/better-auth/authentik.zh-CN.mdx +63 -0
  77. package/docs/self-hosting/advanced/auth/better-auth/casdoor.mdx +62 -0
  78. package/docs/self-hosting/advanced/auth/better-auth/casdoor.zh-CN.mdx +58 -0
  79. package/docs/self-hosting/advanced/auth/better-auth/cloudflare-zero-trust.mdx +59 -0
  80. package/docs/self-hosting/advanced/auth/better-auth/cloudflare-zero-trust.zh-CN.mdx +55 -0
  81. package/docs/self-hosting/advanced/auth/better-auth/cognito.mdx +88 -0
  82. package/docs/self-hosting/advanced/auth/better-auth/cognito.zh-CN.mdx +85 -0
  83. package/docs/self-hosting/advanced/auth/better-auth/feishu.mdx +73 -0
  84. package/docs/self-hosting/advanced/auth/better-auth/feishu.zh-CN.mdx +69 -0
  85. package/docs/self-hosting/advanced/auth/better-auth/generic-oidc.mdx +86 -0
  86. package/docs/self-hosting/advanced/auth/better-auth/generic-oidc.zh-CN.mdx +83 -0
  87. package/docs/self-hosting/advanced/auth/better-auth/github.mdx +93 -0
  88. package/docs/self-hosting/advanced/auth/better-auth/github.zh-CN.mdx +90 -0
  89. package/docs/self-hosting/advanced/auth/better-auth/google.mdx +80 -0
  90. package/docs/self-hosting/advanced/auth/better-auth/google.zh-CN.mdx +77 -0
  91. package/docs/self-hosting/advanced/auth/better-auth/keycloak.mdx +77 -0
  92. package/docs/self-hosting/advanced/auth/better-auth/keycloak.zh-CN.mdx +74 -0
  93. package/docs/self-hosting/advanced/auth/better-auth/logto.mdx +64 -0
  94. package/docs/self-hosting/advanced/auth/better-auth/logto.zh-CN.mdx +60 -0
  95. package/docs/self-hosting/advanced/auth/better-auth/microsoft.mdx +113 -0
  96. package/docs/self-hosting/advanced/auth/better-auth/microsoft.zh-CN.mdx +109 -0
  97. package/docs/self-hosting/advanced/auth/better-auth/okta.mdx +67 -0
  98. package/docs/self-hosting/advanced/auth/better-auth/okta.zh-CN.mdx +63 -0
  99. package/docs/self-hosting/advanced/auth/better-auth/wechat.mdx +77 -0
  100. package/docs/self-hosting/advanced/auth/better-auth/wechat.zh-CN.mdx +72 -0
  101. package/docs/self-hosting/advanced/auth/better-auth/zitadel.mdx +73 -0
  102. package/docs/self-hosting/advanced/auth/better-auth/zitadel.zh-CN.mdx +69 -0
  103. package/docs/self-hosting/advanced/auth/clerk.mdx +2 -2
  104. package/docs/self-hosting/advanced/auth/legacy.mdx +106 -0
  105. package/docs/self-hosting/advanced/auth/legacy.zh-CN.mdx +101 -0
  106. package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +3 -2
  107. package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +3 -2
  108. package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +3 -2
  109. package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +5 -2
  110. package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +2 -0
  111. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +3 -2
  112. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +2 -2
  113. package/docs/self-hosting/advanced/auth/next-auth/github.mdx +3 -2
  114. package/docs/self-hosting/advanced/auth/next-auth/google.mdx +10 -12
  115. package/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx +3 -2
  116. package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +2 -2
  117. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +3 -2
  118. package/docs/self-hosting/advanced/auth/next-auth/okta.mdx +3 -2
  119. package/docs/self-hosting/advanced/auth/next-auth/okta.zh-CN.mdx +1 -3
  120. package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +2 -2
  121. package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +3 -2
  122. package/docs/self-hosting/advanced/auth.mdx +86 -139
  123. package/docs/self-hosting/advanced/auth.zh-CN.mdx +84 -135
  124. package/docs/self-hosting/advanced/desktop.mdx +9 -3
  125. package/docs/self-hosting/advanced/desktop.zh-CN.mdx +9 -3
  126. package/docs/self-hosting/advanced/feature-flags.mdx +3 -2
  127. package/docs/self-hosting/advanced/knowledge-base.mdx +2 -2
  128. package/docs/self-hosting/advanced/model-list.mdx +2 -2
  129. package/docs/self-hosting/advanced/observability/grafana.mdx +4 -2
  130. package/docs/self-hosting/advanced/observability/grafana.zh-CN.mdx +2 -1
  131. package/docs/self-hosting/advanced/observability/langfuse.mdx +3 -2
  132. package/docs/self-hosting/advanced/online-search.mdx +4 -6
  133. package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +2 -2
  134. package/docs/self-hosting/advanced/settings-url-share.mdx +3 -2
  135. package/docs/self-hosting/advanced/upstream-sync.mdx +3 -4
  136. package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +0 -2
  137. package/docs/self-hosting/environment-variables/analytics.mdx +3 -2
  138. package/docs/self-hosting/environment-variables/auth.mdx +5 -12
  139. package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +2 -9
  140. package/docs/self-hosting/environment-variables/basic.mdx +3 -10
  141. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +0 -7
  142. package/docs/self-hosting/environment-variables/model-provider.mdx +3 -4
  143. package/docs/self-hosting/environment-variables/s3.mdx +2 -2
  144. package/docs/self-hosting/environment-variables.mdx +2 -3
  145. package/docs/self-hosting/examples/azure-openai.mdx +2 -3
  146. package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +0 -1
  147. package/docs/self-hosting/examples/ollama.mdx +3 -2
  148. package/docs/self-hosting/faq/no-v1-suffix.mdx +4 -4
  149. package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +3 -2
  150. package/docs/self-hosting/faq/vercel-ai-image-timeout.mdx +2 -2
  151. package/docs/self-hosting/migration/v2/breaking-changes.mdx +73 -0
  152. package/docs/self-hosting/migration/v2/breaking-changes.zh-CN.mdx +71 -0
  153. package/docs/self-hosting/platform/alibaba-cloud.mdx +2 -7
  154. package/docs/self-hosting/platform/alibaba-cloud.zh-CN.mdx +1 -6
  155. package/docs/self-hosting/platform/btpanel.mdx +4 -2
  156. package/docs/self-hosting/platform/btpanel.zh-CN.mdx +2 -2
  157. package/docs/self-hosting/platform/docker-compose.mdx +3 -3
  158. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +0 -1
  159. package/docs/self-hosting/platform/docker.mdx +2 -11
  160. package/docs/self-hosting/platform/docker.zh-CN.mdx +0 -8
  161. package/docs/self-hosting/platform/netlify.mdx +5 -17
  162. package/docs/self-hosting/platform/netlify.zh-CN.mdx +3 -17
  163. package/docs/self-hosting/platform/railway.mdx +3 -7
  164. package/docs/self-hosting/platform/railway.zh-CN.mdx +1 -7
  165. package/docs/self-hosting/platform/repocloud.mdx +3 -7
  166. package/docs/self-hosting/platform/repocloud.zh-CN.mdx +1 -6
  167. package/docs/self-hosting/platform/sealos.mdx +2 -7
  168. package/docs/self-hosting/platform/sealos.zh-CN.mdx +1 -6
  169. package/docs/self-hosting/platform/tencentcloud-lighthouse.mdx +2 -7
  170. package/docs/self-hosting/platform/tencentcloud-lighthouse.zh-CN.mdx +1 -6
  171. package/docs/self-hosting/platform/vercel.mdx +4 -9
  172. package/docs/self-hosting/platform/vercel.zh-CN.mdx +3 -8
  173. package/docs/self-hosting/platform/zeabur.mdx +2 -11
  174. package/docs/self-hosting/platform/zeabur.zh-CN.mdx +1 -10
  175. package/docs/self-hosting/server-database/docker-compose.mdx +11 -19
  176. package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +12 -21
  177. package/docs/self-hosting/server-database/docker.mdx +9 -24
  178. package/docs/self-hosting/server-database/docker.zh-CN.mdx +7 -24
  179. package/docs/self-hosting/server-database/dokploy.mdx +27 -25
  180. package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +23 -21
  181. package/docs/self-hosting/server-database/netlify.mdx +2 -2
  182. package/docs/self-hosting/server-database/netlify.zh-CN.mdx +2 -2
  183. package/docs/self-hosting/server-database/railway.mdx +2 -2
  184. package/docs/self-hosting/server-database/repocloud.mdx +2 -2
  185. package/docs/self-hosting/server-database/sealos.mdx +2 -2
  186. package/docs/self-hosting/server-database/vercel.mdx +19 -72
  187. package/docs/self-hosting/server-database/vercel.zh-CN.mdx +17 -68
  188. package/docs/self-hosting/server-database/zeabur.mdx +2 -2
  189. package/docs/self-hosting/server-database.mdx +1 -19
  190. package/docs/self-hosting/server-database.zh-CN.mdx +0 -17
  191. package/docs/self-hosting/start.mdx +2 -2
  192. package/docs/self-hosting/start.zh-CN.mdx +2 -2
  193. package/locales/ar/common.json +1 -0
  194. package/locales/bg-BG/common.json +1 -0
  195. package/locales/de-DE/common.json +1 -0
  196. package/locales/en-US/common.json +1 -0
  197. package/locales/en-US/desktop-onboarding.json +1 -0
  198. package/locales/es-ES/common.json +1 -0
  199. package/locales/fa-IR/common.json +1 -0
  200. package/locales/fr-FR/common.json +1 -0
  201. package/locales/it-IT/common.json +1 -0
  202. package/locales/ja-JP/common.json +1 -0
  203. package/locales/ko-KR/common.json +1 -0
  204. package/locales/nl-NL/common.json +1 -0
  205. package/locales/pl-PL/common.json +1 -0
  206. package/locales/pt-BR/common.json +1 -0
  207. package/locales/ru-RU/common.json +1 -0
  208. package/locales/tr-TR/common.json +1 -0
  209. package/locales/vi-VN/common.json +1 -0
  210. package/locales/zh-CN/common.json +1 -0
  211. package/locales/zh-CN/desktop-onboarding.json +1 -0
  212. package/locales/zh-TW/common.json +1 -0
  213. package/package.json +2 -2
  214. package/packages/builtin-tool-cloud-sandbox/src/systemRole.ts +62 -2
  215. package/packages/const/src/url.ts +6 -0
  216. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/index.ts +2 -0
  217. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/multi-tasks-with-summary.json +234 -0
  218. package/packages/conversation-flow/src/__tests__/parse.test.ts +25 -0
  219. package/packages/conversation-flow/src/transformation/ContextTreeBuilder.ts +15 -0
  220. package/packages/conversation-flow/src/transformation/FlatListBuilder.ts +20 -0
  221. package/packages/types/src/serverConfig.ts +0 -1
  222. package/src/app/[variants]/(desktop)/desktop-onboarding/features/LoginStep.tsx +39 -1
  223. package/src/app/[variants]/(main)/settings/common/features/Common/Common.tsx +34 -14
  224. package/src/app/[variants]/(mobile)/me/(home)/features/useCategory.tsx +16 -9
  225. package/src/app/[variants]/layout.tsx +0 -4
  226. package/src/envs/app.ts +0 -13
  227. package/src/features/User/UserPanel/useMenu.tsx +18 -9
  228. package/src/hooks/usePlatform.test.ts +5 -0
  229. package/src/hooks/usePlatform.ts +1 -0
  230. package/src/locales/default/common.ts +1 -0
  231. package/src/locales/default/desktop-onboarding.ts +1 -0
  232. package/src/server/globalConfig/index.ts +1 -2
  233. package/src/services/electron/system.ts +4 -0
  234. package/src/store/serverConfig/selectors.ts +0 -1
@@ -42,11 +42,17 @@ LobeChat 桌面端可以与您自托管的 LobeChat 实例连接,以便您可
42
42
 
43
43
  #### OIDC 环境变量配置
44
44
 
45
- 您需要在自托管实例中添加以下`ENABLE_OIDC` 和 `JWKS_KEY` 这两个环境变量,你可以点击下方按钮一键生成:
45
+ 您需要在自托管实例中添加以下`ENABLE_OIDC` 和 `JWKS_KEY` 这两个环境变量:
46
46
 
47
- <OIDCJWKs />
47
+ ```bash
48
+ ENABLE_OIDC=1
49
+ ```
50
+
51
+ 点击下方按钮一键生成 `JWKS_KEY`:
52
+
53
+ <GenerateJWKSKey />
48
54
 
49
- 将生成的 JWK 密钥添加到您的环境变量中。
55
+ 将生成的环境变量添加到您的部署配置中。
50
56
 
51
57
  <Callout>如果您之前已配置 `OIDC_JWKS_KEY`,无需修改。系统会自动回退使用 `OIDC_JWKS_KEY`(向后兼容)。</Callout>
52
58
 
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Feature Flags Environment Variables Configuration Guide
3
3
  description: >-
4
- Learn how to use environment variables to customize LobeChat's feature flags, including controlling whether a feature is enabled or disabled, or enabling or disabling features for specific user groups or environments as needed.
5
-
4
+ Learn how to use environment variables to customize LobeChat's feature flags,
5
+ including controlling whether a feature is enabled or disabled, or enabling or
6
+ disabling features for specific user groups or environments as needed.
6
7
  tags:
7
8
  - LobeChat
8
9
  - Environment Variables
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat Knowledge Base / File Upload
3
3
  description: >-
4
- Explore LobeChat's file upload and knowledge base management features with core components.
5
-
4
+ Explore LobeChat's file upload and knowledge base management features with
5
+ core components.
6
6
  tags:
7
7
  - LobeChat
8
8
  - File Upload
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Customizing Provider Model List in LobeChat for Deployment
3
3
  description: >-
4
- Learn how to customize the model list in LobeChat for deployment with the syntax and extension capabilities
5
-
4
+ Learn how to customize the model list in LobeChat for deployment with the
5
+ syntax and extension capabilities
6
6
  tags:
7
7
  - LobeChat
8
8
  - model customization
@@ -1,7 +1,9 @@
1
1
  ---
2
- title: Observability with Grafana, Prometheus, and Tempo
2
+ title: 'Observability with Grafana, Prometheus, and Tempo'
3
3
  description: >-
4
- Monitor and analyze your LobeChat instance using Grafana dashboards, Prometheus metrics, and Tempo traces. This guide covers setup, configuration for self-hosted deployments.
4
+ Monitor and analyze your LobeChat instance using Grafana dashboards,
5
+ Prometheus metrics, and Tempo traces. This guide covers setup, configuration
6
+ for self-hosted deployments.
5
7
  tags:
6
8
  - Observability
7
9
  - Grafana
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  title: 使用 Grafana、Prometheus 和 Tempo 进行可观测性监控
3
3
  description: >-
4
- 使用 Grafana、Prometheus 指标和 Tempo 链路追踪,监控和分析你的 LobeChat 实例。本指南涵盖自托管部署的搭建、配置和示例仪表盘。
4
+ 使用 Grafana、Prometheus 指标和 Tempo 链路追踪,监控和分析你的 LobeChat
5
+ 实例。本指南涵盖自托管部署的搭建、配置和示例仪表盘。
5
6
  tags:
6
7
  - 可观测性
7
8
  - Grafana
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: Observability and Tracing for LobeChat
3
3
  description: >-
4
- Enhance your LobeChat applications with open-source observability and tracing using Langfuse. Automatically capture detailed traces and metrics for every request to optimize and debug your chats.
5
-
4
+ Enhance your LobeChat applications with open-source observability and tracing
5
+ using Langfuse. Automatically capture detailed traces and metrics for every
6
+ request to optimize and debug your chats.
6
7
  tags:
7
8
  - Observability
8
9
  - Tracing
@@ -1,12 +1,10 @@
1
1
  ---
2
2
  title: >-
3
- Configuring Online Search Functionality - Enhancing AI's Ability to Access Web Information
4
-
5
-
3
+ Configuring Online Search Functionality - Enhancing AI's Ability to Access Web
4
+ Information
6
5
  description: >-
7
- Learn how to configure the SearXNG online search functionality for LobeChat, enabling AI to access the latest web information.
8
-
9
-
6
+ Learn how to configure the SearXNG online search functionality for LobeChat,
7
+ enabling AI to access the latest web information.
10
8
  tags:
11
9
  - Online Search
12
10
  - SearXNG
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Configuring Tencent Cloud COS Storage Service
3
3
  description: >-
4
- Detailed steps to configure Tencent Cloud COS storage service for smooth file storage.
5
-
4
+ Detailed steps to configure Tencent Cloud COS storage service for smooth file
5
+ storage.
6
6
  tags:
7
7
  - Tencent Cloud COS
8
8
  - S3 Storage
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: Share Settings via URL - Import and Export Configuration Settings
3
3
  description: >-
4
- Learn how to import and export configuration settings for LobeChat via URL. Understand the supported settings, URL format, and parameter schema for keyVaults and languageModel.
5
-
4
+ Learn how to import and export configuration settings for LobeChat via URL.
5
+ Understand the supported settings, URL format, and parameter schema for
6
+ keyVaults and languageModel.
6
7
  tags:
7
8
  - Share Settings
8
9
  - URL Import
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Upstream Sync and Docker Deployment Guide
3
3
  description: >-
4
- Learn how to enable automatic updates for LobeChat Vercel deployments and upgrade Docker deployment versions easily. Follow step-by-step instructions for a seamless deployment process.
5
-
4
+ Learn how to enable automatic updates for LobeChat Vercel deployments and
5
+ upgrade Docker deployment versions easily. Follow step-by-step instructions
6
+ for a seamless deployment process.
6
7
  tags:
7
8
  - Upstream Sync
8
9
  - Vercel Deployment
@@ -69,7 +70,6 @@ Upgrading the Docker deployment version is very simple, you just need to redeplo
69
70
  docker run -d -p 3210:3210 \
70
71
  -e OPENAI_API_KEY=sk-xxxx \
71
72
  -e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
72
- -e ACCESS_CODE=lobe66 \
73
73
  --name lobe-chat \
74
74
  lobehub/lobe-chat
75
75
  ```
@@ -93,7 +93,6 @@ If you wish to automate the above steps, you can follow the method below and use
93
93
  ```env
94
94
  OPENAI_API_KEY=sk-xxxx
95
95
  OPENAI_PROXY_URL=https://api-proxy.com/v1
96
- ACCESS_CODE=arthals2333
97
96
  OPENAI_MODEL_LIST=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-0125-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision
98
97
  ```
99
98
 
@@ -65,7 +65,6 @@ Docker 部署版本的升级非常简单,只需要重新部署 LobeChat 的最
65
65
  docker run -d -p 3210:3210 \
66
66
  -e OPENAI_API_KEY=sk-xxxx \
67
67
  -e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
68
- -e ACCESS_CODE=lobe66 \
69
68
  --name lobe-chat \
70
69
  lobehub/lobe-chat
71
70
  ```
@@ -89,7 +88,6 @@ Docker 部署版本的升级非常简单,只需要重新部署 LobeChat 的最
89
88
  ```env
90
89
  OPENAI_API_KEY=sk-xxxx
91
90
  OPENAI_PROXY_URL=https://api-proxy.com/v1
92
- ACCESS_CODE=arthals2333
93
91
  OPENAI_MODEL_LIST=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-0125-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision
94
92
  ```
95
93
 
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: Integrating Analytics in LobeChat
3
3
  description: >-
4
- Learn how to configure environment variables for Vercel Analytics, Google Analytics, PostHog Analytics, and Umami Analytics in LobeChat for data collection and analysis.
5
-
4
+ Learn how to configure environment variables for Vercel Analytics, Google
5
+ Analytics, PostHog Analytics, and Umami Analytics in LobeChat for data
6
+ collection and analysis.
6
7
  tags:
7
8
  - Data Analytics
8
9
  - LobeChat
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Authentication Service Environment Variables
3
3
  description: >-
4
- Explore the essential environment variables for configuring authentication services in LobeChat, including Better Auth, OAuth SSO, NextAuth settings, and provider-specific details.
5
-
6
-
4
+ Explore the essential environment variables for configuring authentication
5
+ services in LobeChat, including Better Auth, OAuth SSO, NextAuth settings, and
6
+ provider-specific details.
7
7
  tags:
8
8
  - Authentication Service
9
9
  - Better Auth
@@ -20,13 +20,6 @@ LobeChat provides a complete authentication service capability when deployed. Th
20
20
 
21
21
  ### General Settings
22
22
 
23
- #### `NEXT_PUBLIC_ENABLE_BETTER_AUTH`
24
-
25
- - Type: Required
26
- - Description: Set to `1` to enable Better Auth service. When enabled, Better Auth will be used for authentication instead of Next Auth or Clerk.
27
- - Default: `-`
28
- - Example: `1`
29
-
30
23
  #### `AUTH_SECRET`
31
24
 
32
25
  - Type: Required
@@ -51,10 +44,10 @@ LobeChat provides a complete authentication service capability when deployed. Th
51
44
  #### `JWKS_KEY`
52
45
 
53
46
  - Type: Required
54
- - Description: Generic JWKS (JSON Web Key Set) key for signing and verifying JWTs. Used for internal service authentication and other cryptographic operations. Must be a JWKS JSON string containing an RS256 RSA key pair. Falls back to `OIDC_JWKS_KEY` if not set (for backward compatibility).
47
+ - Description: JWKS (JSON Web Key Set) key for signing and verifying JWTs. Used for OIDC JWT token signing and internal service call authentication tokens. Must be a JWKS JSON string containing an RS256 RSA key pair.
55
48
  - Default: `-`
56
49
 
57
- <OIDCJWKs />
50
+ <GenerateJWKSKey />
58
51
 
59
52
  #### `INTERNAL_JWT_EXPIRATION`
60
53
 
@@ -18,13 +18,6 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相
18
18
 
19
19
  ### 通用设置
20
20
 
21
- #### `NEXT_PUBLIC_ENABLE_BETTER_AUTH`
22
-
23
- - 类型:必选
24
- - 描述:设置为 `1` 以启用 Better Auth 服务。启用后,将使用 Better Auth 进行身份验证,而非 Next Auth 或 Clerk。
25
- - 默认值:`-`
26
- - 示例:`1`
27
-
28
21
  #### `AUTH_SECRET`
29
22
 
30
23
  - 类型:必选
@@ -49,10 +42,10 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相
49
42
  #### `JWKS_KEY`
50
43
 
51
44
  - 类型:必选
52
- - 描述:用于签名和验证 JWT 的通用 JWKS(JSON Web Key Set)密钥。用于内部服务认证和其他加密操作。必须是包含 RS256 RSA 密钥对的 JWKS JSON 字符串。如果未设置,将回退到 `OIDC_JWKS_KEY`(向后兼容)。
45
+ - 描述:用于签名和验证 JWT JWKS(JSON Web Key Set)密钥。用于 OIDC JWT token 签名和内部服务调用认证 token。必须是包含 RS256 RSA 密钥对的 JWKS JSON 字符串。
53
46
  - 默认值:`-`
54
47
 
55
- <OIDCJWKs />
48
+ <GenerateJWKSKey />
56
49
 
57
50
  #### `INTERNAL_JWT_EXPIRATION`
58
51
 
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  title: Customize LobeChat Deployment with Environment Variables
3
3
  description: >-
4
- Learn about the common environment variables used to customize LobeChat deployment, including access code, OAuth SSO, base path, and default agent configuration.
5
-
4
+ Learn about the common environment variables used to customize LobeChat
5
+ deployment, including OAuth SSO, base path, and default agent
6
+ configuration.
6
7
  tags:
7
8
  - LobeChat
8
9
  - environment variables
9
10
  - deployment
10
- - access code
11
11
  - OAuth SSO
12
12
  - base path
13
13
  - default agent configuration
@@ -19,13 +19,6 @@ LobeChat provides some additional configuration options during deployment, which
19
19
 
20
20
  ## Common Variables
21
21
 
22
- ### `ACCESS_CODE`
23
-
24
- - Type: Optional
25
- - Description: Add a password to access the LobeChat service. You can set a long password to prevent brute force attacks.
26
- - Default: -
27
- - Example: `awCTe)re_r74` or `rtrt_ewee3@09!`
28
-
29
22
  ### `API_KEY_SELECT_MODE`
30
23
 
31
24
  - Type:Optional
@@ -16,13 +16,6 @@ LobeChat 在部署时提供了一些额外的配置项,你可以使用环境
16
16
 
17
17
  ## 通用变量
18
18
 
19
- ### `ACCESS_CODE`
20
-
21
- - 类型:可选
22
- - 描述:添加访问 LobeChat 服务的密码,你可以设置一个长密码以防被爆破
23
- - 默认值:-
24
- - 示例:`awCTe)re_r74` or `rtrt_ewee3@09!`
25
-
26
19
  ### `API_KEY_SELECT_MODE`
27
20
 
28
21
  - 类型:可选
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Model Service Providers - Environment Variables and Configuration
3
3
  description: >-
4
- Learn about the environment variables and configuration settings for various model service providers like OpenAI, Google AI, AWS Bedrock, Ollama, Perplexity AI, Anthropic AI, Mistral AI, Groq AI, OpenRouter AI, and 01.AI.
5
-
6
-
4
+ Learn about the environment variables and configuration settings for various
5
+ model service providers like OpenAI, Google AI, AWS Bedrock, Ollama,
6
+ Perplexity AI, Anthropic AI, Mistral AI, Groq AI, OpenRouter AI, and 01.AI.
7
7
  tags:
8
8
  - Model Service Providers
9
9
  - Environment Variables
@@ -144,7 +144,6 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
144
144
  - Default: `global`
145
145
  - Example: `us-central1`
146
146
 
147
-
148
147
  ### `VERTEXAI_MODEL_LIST`
149
148
 
150
149
  - Type: Optional
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Configuring S3 Storage Service
3
3
  description: >-
4
- Learn how to configure S3 storage service to support multimodal AI sessions and image uploads.
5
-
4
+ Learn how to configure S3 storage service to support multimodal AI sessions
5
+ and image uploads.
6
6
  tags:
7
7
  - S3 Storage
8
8
  - Multimodal AI
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat Environment Variables - Customizing Guide
3
3
  description: >-
4
- Learn how to customize LobeChat configuration using environment variables for additional features and options.
5
-
4
+ Learn how to customize LobeChat configuration using environment variables for
5
+ additional features and options.
6
6
  tags:
7
7
  - LobeChat
8
8
  - Environment Variables
@@ -83,7 +83,6 @@ jobs:
83
83
  # List all variables you need to overwrite
84
84
  build-args: |
85
85
  NEXT_PUBLIC_BASE_PATH=${{ secrets.NEXT_PUBLIC_BASE_PATH }}
86
- NEXT_PUBLIC_SERVICE_MODE=${{ secrets.NEXT_PUBLIC_SERVICE_MODE }}
87
86
  ```
88
87
 
89
88
  4. In your GitHub Repository settings > Secrets and variables > Actions > Repository secrets, add any `NEXT_PUBLIC` variables you want to override
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Configuring Azure OpenAI for LobeChat
3
3
  description: >-
4
- Learn how to configure Azure OpenAI for LobeChat, including interface configuration, and deployment settings.
5
-
4
+ Learn how to configure Azure OpenAI for LobeChat, including interface
5
+ configuration, and deployment settings.
6
6
  tags:
7
7
  - Azure OpenAI
8
8
  - LobeChat
@@ -40,4 +40,3 @@ If you want the deployed version to be pre-configured with Azure OpenAI for end
40
40
  | `AZURE_ENDPOINT` | Required | Azure API address, can be found in the "Keys and Endpoints" section when checking resources in the Azure portal | - | `https://docs-test-001.openai.azure.com` |
41
41
  | `AZURE_API_VERSION` | Required | Azure API version, following the format YYYY-MM-DD | 2023-08-01-preview | `-`, see [latest version](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions) |
42
42
  | `AZURE_MODEL_LIST` | Required | Used to control the model list, use `+` to add a model, use `-` to hide a model, use `id->deplymentName=displayName` to customize the display name of a model, separated by commas. Definition syntax rules see [Model List](/docs/self-hosting/advanced/model-list) | - | `gpt-35-turbo->my-deploy=GPT 3.5 Turbo` or `gpt-4-turbo->my-gpt4=GPT 4 Turbo<128000:vision:fc>` |
43
- | `ACCESS_CODE` | Optional | Add a password to access LobeChat. 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` |
@@ -42,4 +42,3 @@ LobeChat 支持使用 [Azure OpenAI](https://learn.microsoft.com/zh-cn/azure/ai-
42
42
  | `AZURE_ENDPOINT` | 必选 | Azure API 地址,从 Azure 门户检查资源时,可在 “密钥和终结点” 部分中找到此值 | - | `https://docs-test-001.openai.azure.com` |
43
43
  | `AZURE_API_VERSION` | 必选 | Azure 的 API 版本,遵循 YYYY-MM-DD 格式 | 2023-08-01-preview | `-`,查阅[最新版本](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions) |
44
44
  | `AZURE_MODEL_LIST` | 必选 | 用来控制模型列表,使用 `模型名->部署名=展示名` 来自定义模型的展示名,用英文逗号隔开。支持扩展能力,其余语法规则详见 [模型列表](/zh/docs/self-hosting/advanced/model-list) | - | `gpt-35-turbo->my-deploy=GPT 3.5 Turbo` 或 `gpt-4-turbo->my-gpt4=GPT 4 Turbo<128000:vision:fc>` |
45
- | `ACCESS_CODE` | 可选 | 添加访问 LobeChat 的密码,你可以设置一个长密码以防被爆破,该值用逗号分隔时为密码数组 | - | `awCT74` 或 `e3@09!` or `code1,code2,code3` |
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: Integrating LobeChat with Ollama for Enhanced Language Models
3
3
  description: >-
4
- Learn how to configure and deploy LobeChat to leverage Ollama's powerful language models locally. Follow the guide to run Ollama and LobeChat on your system.
5
-
4
+ Learn how to configure and deploy LobeChat to leverage Ollama's powerful
5
+ language models locally. Follow the guide to run Ollama and LobeChat on your
6
+ system.
6
7
  tags:
7
8
  - Ollama integration
8
9
  - LobeChat configuration
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  title: >-
3
- Troubleshooting `OPENAI_PROXY_URL` in LobeChat Configuration for Empty Response
4
-
3
+ Troubleshooting `OPENAI_PROXY_URL` in LobeChat Configuration for Empty
4
+ Response
5
5
  description: >-
6
- Learn how to troubleshoot and resolve the issue of receiving an empty response after configuring the LobeChat `OPENAI_PROXY_URL` environment variable.
7
-
6
+ Learn how to troubleshoot and resolve the issue of receiving an empty response
7
+ after configuring the LobeChat `OPENAI_PROXY_URL` environment variable.
8
8
  tags:
9
9
  - OPENAI_PROXY_URL
10
10
  - environment variable
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: Resolving `UNABLE_TO_VERIFY_LEAF_SIGNATURE` Error in LobeChat When Using Proxy
3
3
  description: >-
4
- Learn how to bypass Node.js certificate validation to resolve certificate verification errors in LobeChat when using a proxy with self-signed or untrusted certificates.
5
-
4
+ Learn how to bypass Node.js certificate validation to resolve certificate
5
+ verification errors in LobeChat when using a proxy with self-signed or
6
+ untrusted certificates.
6
7
  tags:
7
8
  - Node.js
8
9
  - certificate validation
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Resolving AI Image Generation Timeout on Vercel
3
3
  description: >-
4
- Learn how to resolve timeout issues when using AI image generation models like gpt-image-1 on Vercel by enabling Fluid Compute for extended execution time.
5
-
4
+ Learn how to resolve timeout issues when using AI image generation models like
5
+ gpt-image-1 on Vercel by enabling Fluid Compute for extended execution time.
6
6
  tags:
7
7
  - Vercel
8
8
  - AI Image Generation
@@ -0,0 +1,73 @@
1
+ ---
2
+ title: LobeHub 2.0 Breaking Changes
3
+ description: >-
4
+ A comprehensive guide to breaking changes in LobeHub 2.0 and how to migrate
5
+ from version 1.x.
6
+ tags:
7
+ - LobeHub 2.0
8
+ - Migration
9
+ - Breaking Changes
10
+ - Authentication
11
+ ---
12
+
13
+ # LobeHub 2.0 Breaking Changes
14
+
15
+ This document outlines the breaking changes introduced in LobeHub 2.0 and provides migration guidance for users upgrading from version 1.x.
16
+
17
+ ## Removed Environment Variables
18
+
19
+ The following environment variables have been removed in LobeHub 2.0:
20
+
21
+ | Environment Variable | Removal Reason |
22
+ | ----------------------------------- | ----------------------------------------------------------------- |
23
+ | `ACCESS_CODE` | No longer supported, use Better Auth authentication system |
24
+ | `NEXT_PUBLIC_SERVICE_MODE` | 2.0 only supports Server DB mode, Client DB (PGlite) removed |
25
+ | `NEXT_PUBLIC_ENABLE_BETTER_AUTH` | Automatically detected via `AUTH_SECRET` presence |
26
+ | `NEXT_PUBLIC_AUTH_URL` / `AUTH_URL` | Automatically detected from request headers |
27
+ | `NEXT_PUBLIC_ENABLE_NEXT_AUTH` | NextAuth removed |
28
+ | `NEXT_AUTH_SECRET` | NextAuth removed |
29
+ | `NEXT_AUTH_SSO_PROVIDERS` | NextAuth removed |
30
+ | `NEXTAUTH_URL` | NextAuth removed |
31
+ | `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` | Clerk removed |
32
+ | `CLERK_SECRET_KEY` | Clerk removed |
33
+
34
+ ## New Required Environment Variables
35
+
36
+ LobeHub 2.0 only supports Better Auth authentication system. The following environment variables are now required:
37
+
38
+ - `AUTH_SECRET`: Used to encrypt session tokens
39
+ - `JWKS_KEY`: Used to sign and verify JWTs, including OIDC JWT tokens and internal service call authentication tokens
40
+
41
+ ## New Optional Environment Variables
42
+
43
+ | Environment Variable | Description |
44
+ | ---------------------------------- | ---------------------------------------------------------------- |
45
+ | `AUTH_SSO_PROVIDERS` | Comma-separated list of enabled SSO providers |
46
+ | `INTERNAL_JWT_EXPIRATION` | Internal JWT token expiration time (default: `30s`) |
47
+ | `NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION` | Set to `1` to require email verification |
48
+ | `SMTP_HOST` | SMTP server hostname for email features |
49
+ | `SMTP_PORT` | SMTP server port |
50
+ | `SMTP_USER` | SMTP authentication username |
51
+ | `SMTP_PASS` | SMTP authentication password |
52
+
53
+ For detailed configuration, see [Authentication Environment Variables](/docs/self-hosting/environment-variables/auth).
54
+
55
+ ## Authentication System Changes
56
+
57
+ LobeHub 2.0 only supports Better Auth authentication system. NextAuth and Clerk are no longer supported.
58
+
59
+ ## Migration Guide
60
+
61
+ ### Migrating from NextAuth
62
+
63
+ Detailed migration guide coming soon.
64
+
65
+ ### Migrating from Clerk
66
+
67
+ Detailed migration guide coming soon.
68
+
69
+ ## Database Mode Changes
70
+
71
+ LobeHub 2.0 only supports Server DB mode. Client DB (PGlite) is no longer supported. If you were using `NEXT_PUBLIC_SERVICE_MODE=client`, you need to migrate to Server DB deployment.
72
+
73
+ For deployment guides, see [Server Database Deployment](/docs/self-hosting/server-database).
@@ -0,0 +1,71 @@
1
+ ---
2
+ title: LobeHub 2.0 破坏性变更
3
+ description: LobeHub 2.0 破坏性变更完整指南,帮助用户从 1.x 版本升级到 2.0 版本。
4
+ tags:
5
+ - LobeHub 2.0
6
+ - 迁移指南
7
+ - 破坏性变更
8
+ - 身份验证
9
+ ---
10
+
11
+ # LobeHub 2.0 破坏性变更
12
+
13
+ 本文档概述了 LobeHub 2.0 中引入的破坏性变更,并为从 1.x 版本升级的用户提供迁移指南。
14
+
15
+ ## 移除的环境变量
16
+
17
+ 以下环境变量在 LobeHub 2.0 中已被移除:
18
+
19
+ | 环境变量 | 移除原因 |
20
+ | ----------------------------------- | ------------------------------------------------------- |
21
+ | `ACCESS_CODE` | 不再支持,请使用 Better Auth 认证系统 |
22
+ | `NEXT_PUBLIC_SERVICE_MODE` | 2.0 仅支持 Server DB 模式,不再支持 Client DB (PGlite) |
23
+ | `NEXT_PUBLIC_ENABLE_BETTER_AUTH` | 通过 `AUTH_SECRET` 是否存在自动检测 |
24
+ | `NEXT_PUBLIC_AUTH_URL` / `AUTH_URL` | 从请求头中自动检测 |
25
+ | `NEXT_PUBLIC_ENABLE_NEXT_AUTH` | NextAuth 已移除 |
26
+ | `NEXT_AUTH_SECRET` | NextAuth 已移除 |
27
+ | `NEXT_AUTH_SSO_PROVIDERS` | NextAuth 已移除 |
28
+ | `NEXTAUTH_URL` | NextAuth 已移除 |
29
+ | `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` | Clerk 已移除 |
30
+ | `CLERK_SECRET_KEY` | Clerk 已移除 |
31
+
32
+ ## 新增的必需环境变量
33
+
34
+ LobeHub 2.0 仅支持 Better Auth 认证系统。以下环境变量现在是必需的:
35
+
36
+ - `AUTH_SECRET`:用于加密会话令牌
37
+ - `JWKS_KEY`:用于签名和验证 JWT,包括 OIDC JWT token 和内部服务调用认证 token
38
+
39
+ ## 新增的可选环境变量
40
+
41
+ | 环境变量 | 说明 |
42
+ | ------------------------------------- | -------------------------------------- |
43
+ | `AUTH_SSO_PROVIDERS` | 启用的 SSO 提供商列表,以逗号分隔 |
44
+ | `INTERNAL_JWT_EXPIRATION` | 内部 JWT 令牌过期时间(默认:`30s`) |
45
+ | `NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION` | 设置为 `1` 以要求邮箱验证 |
46
+ | `SMTP_HOST` | 邮件功能的 SMTP 服务器主机名 |
47
+ | `SMTP_PORT` | SMTP 服务器端口 |
48
+ | `SMTP_USER` | SMTP 认证用户名 |
49
+ | `SMTP_PASS` | SMTP 认证密码 |
50
+
51
+ 详细配置请参阅[身份验证环境变量](/docs/self-hosting/environment-variables/auth)。
52
+
53
+ ## 认证系统变更
54
+
55
+ LobeHub 2.0 仅支持 Better Auth 认证系统,不再支持 NextAuth 和 Clerk。
56
+
57
+ ## 迁移指南
58
+
59
+ ### 从 NextAuth 迁移
60
+
61
+ 详细迁移指南即将推出。
62
+
63
+ ### 从 Clerk 迁移
64
+
65
+ 详细迁移指南即将推出。
66
+
67
+ ## 数据库模式变更
68
+
69
+ LobeHub 2.0 仅支持 Server DB 模式,不再支持 Client DB (PGlite)。如果您之前使用 `NEXT_PUBLIC_SERVICE_MODE=client`,需要迁移到 Server DB 部署方式。
70
+
71
+ 详细部署指南请参阅[服务端数据库部署](/docs/self-hosting/server-database)。
@@ -1,13 +1,12 @@
1
1
  ---
2
2
  title: Deploy LobeChat on Alibaba Cloud
3
3
  description: >-
4
- Learn how to deploy the LobeChat application on Alibaba Cloud, including preparing the large model API Key, clicking the deploy button, and other operations.
5
-
4
+ Learn how to deploy the LobeChat application on Alibaba Cloud, including
5
+ clicking the deploy button and other operations.
6
6
  tags:
7
7
  - Alibaba Cloud
8
8
  - LobeChat
9
9
  - Alibaba Cloud Compute Nest
10
- - API Key
11
10
  ---
12
11
 
13
12
  # Deploy LobeChat with Alibaba Cloud
@@ -17,10 +16,6 @@ If you want to deploy LobeChat on Alibaba Cloud, you can follow the steps below:
17
16
  ## Alibaba Cloud Deployment Process
18
17
 
19
18
  <Steps>
20
- ### Prepare your API Key
21
-
22
- Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key. Or go to [Tongyi Qianwen API Key](https://bailian.console.aliyun.com/?apiKey=1#/api-key) to get your API Key.
23
-
24
19
  ### One-click to deploy
25
20
 
26
21
  [![][deploy-button-image]][deploy-link]
@@ -1,11 +1,10 @@
1
1
  ---
2
2
  title: 在 阿里云 上部署 LobeChat
3
- description: 学习如何在阿里云上部署LobeChat应用,包括准备大模型 API Key、点击部署按钮等操作。
3
+ description: 学习如何在阿里云上部署 LobeChat 应用,包括点击部署按钮等操作。
4
4
  tags:
5
5
  - 阿里云
6
6
  - LobeChat
7
7
  - 部署流程
8
- - 大模型 API Key
9
8
  ---
10
9
 
11
10
  # 使用 阿里云计算巢 部署
@@ -15,10 +14,6 @@ tags:
15
14
  ## 阿里云 部署流程
16
15
 
17
16
  <Steps>
18
- ### 准备好你的 API Key
19
-
20
- 前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key 或 前往 [通义千问 API Key](https://bailian.console.aliyun.com/?apiKey=1#/api-key) 获取你的通义千问 API Key
21
-
22
17
  ### 点击下方按钮进行部署
23
18
 
24
19
  [![][deploy-button-image]][deploy-link]