@lobehub/chat 1.91.0 → 1.91.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 (292) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/docs/changelog/2023-09-09-plugin-system.mdx +2 -3
  4. package/docs/changelog/2023-11-14-gpt4-vision.mdx +4 -6
  5. package/docs/changelog/2023-11-19-tts-stt.mdx +2 -3
  6. package/docs/changelog/2023-12-22-dalle-3.mdx +2 -5
  7. package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +2 -2
  8. package/docs/changelog/2024-02-08-sso-oauth.mdx +2 -2
  9. package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +2 -3
  10. package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +2 -2
  11. package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +2 -3
  12. package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +2 -2
  13. package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +2 -3
  14. package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +4 -5
  15. package/docs/changelog/2024-09-13-openai-o1-models.mdx +2 -2
  16. package/docs/changelog/2024-09-20-artifacts.mdx +2 -3
  17. package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +2 -2
  18. package/docs/changelog/2024-10-27-pin-assistant.mdx +2 -3
  19. package/docs/changelog/2024-11-06-share-text-json.mdx +2 -4
  20. package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +2 -2
  21. package/docs/changelog/2024-11-25-november-providers.mdx +2 -2
  22. package/docs/changelog/2024-11-27-forkable-chat.mdx +2 -2
  23. package/docs/changelog/2025-01-03-user-profile.mdx +2 -2
  24. package/docs/changelog/2025-01-22-new-ai-provider.mdx +2 -2
  25. package/docs/changelog/2025-02-02-deepseek-r1.mdx +4 -4
  26. package/docs/development/basic/add-new-authentication-providers.zh-CN.mdx +1 -2
  27. package/docs/development/basic/chat-api.mdx +2 -4
  28. package/docs/development/basic/chat-api.zh-CN.mdx +2 -4
  29. package/docs/development/internationalization/internationalization-implementation.mdx +10 -10
  30. package/docs/development/internationalization/internationalization-implementation.zh-CN.mdx +10 -10
  31. package/docs/self-hosting/advanced/analytics.mdx +2 -2
  32. package/docs/self-hosting/advanced/auth/clerk.mdx +2 -2
  33. package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +2 -3
  34. package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +2 -3
  35. package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +2 -3
  36. package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +4 -7
  37. package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +0 -3
  38. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +2 -3
  39. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +2 -2
  40. package/docs/self-hosting/advanced/auth/next-auth/github.mdx +2 -3
  41. package/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx +12 -6
  42. package/docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx +5 -1
  43. package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +8 -14
  44. package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +6 -12
  45. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +2 -3
  46. package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +2 -2
  47. package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +2 -3
  48. package/docs/self-hosting/advanced/auth.mdx +2 -3
  49. package/docs/self-hosting/advanced/desktop.mdx +2 -1
  50. package/docs/self-hosting/advanced/desktop.zh-CN.mdx +1 -3
  51. package/docs/self-hosting/advanced/feature-flags.mdx +2 -3
  52. package/docs/self-hosting/advanced/knowledge-base.mdx +4 -3
  53. package/docs/self-hosting/advanced/model-list.mdx +11 -10
  54. package/docs/self-hosting/advanced/model-list.zh-CN.mdx +10 -9
  55. package/docs/self-hosting/advanced/observability/langfuse.mdx +2 -3
  56. package/docs/self-hosting/advanced/online-search.mdx +11 -10
  57. package/docs/self-hosting/advanced/online-search.zh-CN.mdx +7 -7
  58. package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +2 -2
  59. package/docs/self-hosting/advanced/settings-url-share.mdx +2 -3
  60. package/docs/self-hosting/advanced/upstream-sync.mdx +2 -3
  61. package/docs/self-hosting/advanced/webrtc.mdx +2 -2
  62. package/docs/self-hosting/environment-variables/analytics.mdx +2 -3
  63. package/docs/self-hosting/environment-variables/auth.mdx +2 -3
  64. package/docs/self-hosting/environment-variables/basic.mdx +4 -5
  65. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +2 -2
  66. package/docs/self-hosting/environment-variables/model-provider.mdx +2 -3
  67. package/docs/self-hosting/environment-variables/s3.mdx +3 -5
  68. package/docs/self-hosting/environment-variables.mdx +2 -2
  69. package/docs/self-hosting/examples/azure-openai.mdx +2 -2
  70. package/docs/self-hosting/examples/ollama.mdx +2 -3
  71. package/docs/self-hosting/faq/no-v1-suffix.mdx +4 -4
  72. package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +2 -3
  73. package/docs/self-hosting/platform/alibaba-cloud.mdx +2 -3
  74. package/docs/self-hosting/platform/btpanel.mdx +5 -5
  75. package/docs/self-hosting/platform/btpanel.zh-CN.mdx +4 -3
  76. package/docs/self-hosting/platform/docker-compose.mdx +2 -3
  77. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +0 -2
  78. package/docs/self-hosting/platform/docker.mdx +2 -2
  79. package/docs/self-hosting/platform/netlify.mdx +2 -4
  80. package/docs/self-hosting/platform/netlify.zh-CN.mdx +2 -2
  81. package/docs/self-hosting/platform/railway.mdx +2 -3
  82. package/docs/self-hosting/platform/repocloud.mdx +2 -3
  83. package/docs/self-hosting/platform/sealos.mdx +2 -2
  84. package/docs/self-hosting/platform/tencentcloud-lighthouse.mdx +2 -3
  85. package/docs/self-hosting/platform/vercel.mdx +2 -3
  86. package/docs/self-hosting/platform/zeabur.mdx +2 -2
  87. package/docs/self-hosting/server-database/docker-compose.mdx +65 -44
  88. package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +48 -55
  89. package/docs/self-hosting/server-database/docker.mdx +2 -2
  90. package/docs/self-hosting/server-database/docker.zh-CN.mdx +2 -2
  91. package/docs/self-hosting/server-database/dokploy.mdx +4 -5
  92. package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +137 -138
  93. package/docs/self-hosting/server-database/netlify.mdx +2 -2
  94. package/docs/self-hosting/server-database/netlify.zh-CN.mdx +2 -2
  95. package/docs/self-hosting/server-database/railway.mdx +2 -2
  96. package/docs/self-hosting/server-database/repocloud.mdx +2 -2
  97. package/docs/self-hosting/server-database/sealos.mdx +4 -5
  98. package/docs/self-hosting/server-database/sealos.zh-CN.mdx +18 -20
  99. package/docs/self-hosting/server-database/vercel.mdx +5 -3
  100. package/docs/self-hosting/server-database/vercel.zh-CN.mdx +2 -2
  101. package/docs/self-hosting/server-database/zeabur.mdx +2 -2
  102. package/docs/self-hosting/server-database.mdx +1 -1
  103. package/docs/self-hosting/server-database.zh-CN.mdx +2 -1
  104. package/docs/self-hosting/start.mdx +2 -2
  105. package/docs/self-hosting/start.zh-CN.mdx +2 -2
  106. package/docs/usage/agents/agent-organization.mdx +2 -2
  107. package/docs/usage/agents/concepts.mdx +4 -5
  108. package/docs/usage/agents/concepts.zh-CN.mdx +2 -2
  109. package/docs/usage/agents/custom-agent.mdx +3 -4
  110. package/docs/usage/agents/custom-agent.zh-CN.mdx +1 -1
  111. package/docs/usage/agents/model.mdx +5 -5
  112. package/docs/usage/agents/model.zh-CN.mdx +3 -5
  113. package/docs/usage/agents/prompt.mdx +4 -5
  114. package/docs/usage/agents/topics.mdx +3 -4
  115. package/docs/usage/agents/topics.zh-CN.mdx +1 -1
  116. package/docs/usage/features/agent-market.mdx +3 -11
  117. package/docs/usage/features/agent-market.zh-CN.mdx +2 -7
  118. package/docs/usage/features/artifacts.mdx +2 -2
  119. package/docs/usage/features/auth.mdx +2 -3
  120. package/docs/usage/features/cot.mdx +2 -2
  121. package/docs/usage/features/database.mdx +2 -2
  122. package/docs/usage/features/knowledge-base.mdx +4 -3
  123. package/docs/usage/features/knowledge-base.zh-CN.mdx +2 -1
  124. package/docs/usage/features/local-llm.mdx +2 -3
  125. package/docs/usage/features/mobile.mdx +2 -2
  126. package/docs/usage/features/more.mdx +2 -3
  127. package/docs/usage/features/multi-ai-providers.mdx +2 -3
  128. package/docs/usage/features/plugin-system.mdx +3 -11
  129. package/docs/usage/features/plugin-system.zh-CN.mdx +1 -8
  130. package/docs/usage/features/pwa.mdx +4 -4
  131. package/docs/usage/features/pwa.zh-CN.mdx +2 -1
  132. package/docs/usage/features/text-to-image.mdx +3 -11
  133. package/docs/usage/features/text-to-image.zh-CN.mdx +3 -10
  134. package/docs/usage/features/theme.mdx +2 -3
  135. package/docs/usage/features/tts.mdx +3 -11
  136. package/docs/usage/features/tts.zh-CN.mdx +1 -8
  137. package/docs/usage/features/vision.mdx +3 -11
  138. package/docs/usage/features/vision.zh-CN.mdx +1 -8
  139. package/docs/usage/foundation/basic.mdx +2 -3
  140. package/docs/usage/foundation/share.mdx +2 -3
  141. package/docs/usage/foundation/text2image.mdx +2 -2
  142. package/docs/usage/foundation/translate.mdx +2 -2
  143. package/docs/usage/foundation/tts-stt.mdx +2 -2
  144. package/docs/usage/foundation/vision.mdx +2 -3
  145. package/docs/usage/plugins/basic-usage.mdx +2 -3
  146. package/docs/usage/plugins/custom-plugin.mdx +2 -2
  147. package/docs/usage/plugins/development.mdx +2 -4
  148. package/docs/usage/plugins/store.mdx +2 -2
  149. package/docs/usage/providers/ai21.mdx +2 -2
  150. package/docs/usage/providers/anthropic.mdx +2 -3
  151. package/docs/usage/providers/anthropic.zh-CN.mdx +2 -2
  152. package/docs/usage/providers/azure.mdx +2 -3
  153. package/docs/usage/providers/azureai.mdx +4 -2
  154. package/docs/usage/providers/azureai.zh-CN.mdx +2 -1
  155. package/docs/usage/providers/baichuan.mdx +2 -3
  156. package/docs/usage/providers/bedrock.mdx +2 -3
  157. package/docs/usage/providers/cloudflare.mdx +3 -2
  158. package/docs/usage/providers/deepseek.mdx +2 -2
  159. package/docs/usage/providers/fireworksai.mdx +2 -2
  160. package/docs/usage/providers/giteeai.mdx +2 -2
  161. package/docs/usage/providers/github.mdx +1 -1
  162. package/docs/usage/providers/github.zh-CN.mdx +1 -1
  163. package/docs/usage/providers/google.mdx +2 -3
  164. package/docs/usage/providers/groq.mdx +2 -2
  165. package/docs/usage/providers/hunyuan.mdx +2 -2
  166. package/docs/usage/providers/infiniai.zh-CN.mdx +3 -1
  167. package/docs/usage/providers/internlm.mdx +2 -2
  168. package/docs/usage/providers/jina.mdx +4 -3
  169. package/docs/usage/providers/jina.zh-CN.mdx +2 -2
  170. package/docs/usage/providers/lmstudio.mdx +2 -2
  171. package/docs/usage/providers/lmstudio.zh-CN.mdx +2 -4
  172. package/docs/usage/providers/minimax.mdx +2 -3
  173. package/docs/usage/providers/minimax.zh-CN.mdx +2 -2
  174. package/docs/usage/providers/mistral.mdx +2 -3
  175. package/docs/usage/providers/modelscope.mdx +4 -0
  176. package/docs/usage/providers/modelscope.zh-CN.mdx +4 -0
  177. package/docs/usage/providers/moonshot.mdx +2 -3
  178. package/docs/usage/providers/novita.mdx +2 -3
  179. package/docs/usage/providers/novita.zh-CN.mdx +2 -2
  180. package/docs/usage/providers/nvidia.mdx +3 -2
  181. package/docs/usage/providers/ollama/gemma.mdx +2 -3
  182. package/docs/usage/providers/ollama/gemma.zh-CN.mdx +2 -2
  183. package/docs/usage/providers/ollama.mdx +2 -2
  184. package/docs/usage/providers/openai.mdx +5 -5
  185. package/docs/usage/providers/openai.zh-CN.mdx +3 -3
  186. package/docs/usage/providers/openrouter.mdx +2 -3
  187. package/docs/usage/providers/perplexity.mdx +2 -2
  188. package/docs/usage/providers/ppio.mdx +5 -6
  189. package/docs/usage/providers/ppio.zh-CN.mdx +6 -6
  190. package/docs/usage/providers/qiniu.mdx +6 -6
  191. package/docs/usage/providers/qiniu.zh-CN.mdx +2 -1
  192. package/docs/usage/providers/qwen.mdx +2 -4
  193. package/docs/usage/providers/sambanova.mdx +2 -1
  194. package/docs/usage/providers/sensenova.mdx +2 -2
  195. package/docs/usage/providers/siliconcloud.mdx +2 -2
  196. package/docs/usage/providers/stepfun.mdx +2 -3
  197. package/docs/usage/providers/taichu.mdx +2 -3
  198. package/docs/usage/providers/togetherai.mdx +2 -2
  199. package/docs/usage/providers/vllm.mdx +15 -12
  200. package/docs/usage/providers/vllm.zh-CN.mdx +9 -7
  201. package/docs/usage/providers/volcengine.mdx +16 -14
  202. package/docs/usage/providers/wenxin.mdx +2 -2
  203. package/docs/usage/providers/xai.mdx +2 -2
  204. package/docs/usage/providers/zeroone.mdx +2 -3
  205. package/docs/usage/providers/zeroone.zh-CN.mdx +2 -2
  206. package/docs/usage/providers/zhipu.mdx +2 -3
  207. package/docs/usage/providers/zhipu.zh-CN.mdx +1 -1
  208. package/docs/usage/providers.mdx +2 -3
  209. package/docs/usage/start.mdx +2 -3
  210. package/docs/usage/tools-calling/anthropic.mdx +2 -2
  211. package/docs/usage/tools-calling/anthropic.zh-CN.mdx +2 -2
  212. package/docs/usage/tools-calling/google.mdx +2 -2
  213. package/docs/usage/tools-calling/google.zh-CN.mdx +4 -4
  214. package/docs/usage/tools-calling/groq.zh-CN.mdx +2 -2
  215. package/docs/usage/tools-calling/openai.mdx +2 -2
  216. package/docs/usage/tools-calling/openai.zh-CN.mdx +2 -2
  217. package/package.json +2 -2
  218. package/src/app/(backend)/middleware/auth/utils.ts +2 -1
  219. package/src/app/(backend)/webapi/user/avatar/[id]/[image]/route.ts +1 -1
  220. package/src/app/[variants]/(main)/repos/[id]/_layout/Mobile.tsx +7 -7
  221. package/src/config/aiModels/deepseek.ts +1 -0
  222. package/src/config/aiModels/hunyuan.ts +1 -0
  223. package/src/config/aiModels/mistral.ts +1 -2
  224. package/src/config/aiModels/novita.ts +23 -22
  225. package/src/config/aiModels/openrouter.ts +1 -0
  226. package/src/config/aiModels/qwen.ts +11 -11
  227. package/src/config/aiModels/siliconcloud.ts +7 -6
  228. package/src/config/aiModels/vertexai.ts +2 -2
  229. package/src/config/aiModels/wenxin.ts +1 -2
  230. package/src/config/modelProviders/baichuan.ts +3 -0
  231. package/src/config/modelProviders/fireworksai.ts +3 -0
  232. package/src/config/modelProviders/giteeai.ts +3 -0
  233. package/src/config/modelProviders/github.ts +1 -2
  234. package/src/config/modelProviders/groq.ts +0 -3
  235. package/src/config/modelProviders/hunyuan.ts +3 -0
  236. package/src/config/modelProviders/infiniai.ts +0 -3
  237. package/src/config/modelProviders/internlm.ts +3 -0
  238. package/src/config/modelProviders/minimax.ts +3 -4
  239. package/src/config/modelProviders/moonshot.ts +0 -7
  240. package/src/config/modelProviders/novita.ts +3 -0
  241. package/src/config/modelProviders/openrouter.ts +0 -4
  242. package/src/config/modelProviders/perplexity.ts +0 -3
  243. package/src/config/modelProviders/qiniu.ts +0 -3
  244. package/src/config/modelProviders/qwen.ts +0 -3
  245. package/src/config/modelProviders/sensenova.ts +3 -0
  246. package/src/config/modelProviders/siliconcloud.ts +0 -3
  247. package/src/config/modelProviders/spark.ts +0 -5
  248. package/src/config/modelProviders/stepfun.ts +3 -6
  249. package/src/config/modelProviders/taichu.ts +3 -0
  250. package/src/config/modelProviders/tencentcloud.ts +3 -0
  251. package/src/config/modelProviders/togetherai.ts +3 -0
  252. package/src/config/modelProviders/upstage.ts +3 -0
  253. package/src/config/modelProviders/wenxin.ts +3 -4
  254. package/src/config/modelProviders/xai.ts +0 -3
  255. package/src/config/modelProviders/zhipu.ts +3 -0
  256. package/src/database/migrations/meta/0014_snapshot.json +182 -539
  257. package/src/database/migrations/meta/0016_snapshot.json +182 -539
  258. package/src/database/repositories/dataImporter/__tests__/fixtures/with-client-id.json +13 -58
  259. package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +1 -8
  260. package/src/features/ChatInput/ActionBar/Model/index.tsx +8 -16
  261. package/src/features/ChatInput/ActionBar/Search/Controls.tsx +4 -12
  262. package/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx +1 -7
  263. package/src/features/ChatInput/ActionBar/Search/index.tsx +2 -4
  264. package/src/features/ModelSwitchPanel/index.tsx +1 -4
  265. package/src/libs/model-runtime/anthropic/index.test.ts +4 -2
  266. package/src/libs/model-runtime/google/index.ts +30 -40
  267. package/src/libs/model-runtime/novita/__snapshots__/index.test.ts.snap +19 -1
  268. package/src/libs/model-runtime/novita/index.ts +14 -15
  269. package/src/libs/model-runtime/nvidia/index.ts +2 -21
  270. package/src/libs/model-runtime/openai/__snapshots__/index.test.ts.snap +39 -11
  271. package/src/libs/model-runtime/openai/index.ts +3 -38
  272. package/src/libs/model-runtime/openrouter/__snapshots__/index.test.ts.snap +3 -0
  273. package/src/libs/model-runtime/openrouter/index.ts +45 -54
  274. package/src/libs/model-runtime/qwen/index.ts +2 -45
  275. package/src/libs/model-runtime/siliconcloud/index.ts +2 -51
  276. package/src/libs/model-runtime/utils/modelParse.test.ts +761 -0
  277. package/src/libs/model-runtime/utils/modelParse.ts +186 -0
  278. package/src/libs/model-runtime/utils/streams/anthropic.ts +12 -11
  279. package/src/libs/model-runtime/utils/streams/openai.ts +6 -4
  280. package/src/libs/model-runtime/utils/streams/protocol.ts +1 -1
  281. package/src/libs/model-runtime/utils/streams/spark.test.ts +1 -1
  282. package/src/libs/model-runtime/utils/streams/spark.ts +1 -2
  283. package/src/libs/model-runtime/volcengine/index.ts +11 -0
  284. package/src/libs/model-runtime/zeroone/index.ts +2 -23
  285. package/src/libs/model-runtime/zhipu/index.ts +7 -34
  286. package/src/middleware.ts +1 -1
  287. package/src/server/services/user/index.ts +3 -4
  288. package/src/services/__tests__/assistant.test.ts +4 -6
  289. package/src/services/__tests__/tool.test.ts +3 -1
  290. package/src/store/user/slices/auth/selectors.ts +1 -1
  291. package/src/store/user/slices/common/action.test.ts +1 -1
  292. package/src/tools/web-browsing/index.ts +1 -7
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  title: >-
3
- Troubleshooting `OPENAI_PROXY_URL` in LobeChat Configuration for Empty
4
- Response
3
+ Troubleshooting `OPENAI_PROXY_URL` in LobeChat Configuration for Empty Response
4
+
5
5
  description: >-
6
- Learn how to troubleshoot and resolve the issue of receiving an empty response
7
- after configuring the LobeChat `OPENAI_PROXY_URL` environment variable.
6
+ Learn how to troubleshoot and resolve the issue of receiving an empty response after configuring the LobeChat `OPENAI_PROXY_URL` environment variable.
7
+
8
8
  tags:
9
9
  - OPENAI_PROXY_URL
10
10
  - environment variable
@@ -1,9 +1,8 @@
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
5
- verification errors in LobeChat when using a proxy with self-signed or
6
- untrusted certificates.
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
+
7
6
  tags:
8
7
  - Node.js
9
8
  - certificate validation
@@ -1,9 +1,8 @@
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
5
- preparing the large model API Key, clicking the deploy button, and other
6
- operations.
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
+
7
6
  tags:
8
7
  - Alibaba Cloud
9
8
  - LobeChat
@@ -1,10 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat using aaPanel
3
3
  description: >-
4
- Learn how to deploy the LobeChat service using aaPanel-Docker, including
5
- installing the Docker container environment and using the command to start the
6
- service with one click. Detailed instructions on how to configure environment
7
- variables and use proxy addresses.
4
+ Learn how to deploy the LobeChat service using aaPanel-Docker, including installing the Docker container environment and using the command to start the service with one click. Detailed instructions on how to configure environment variables and use proxy addresses.
5
+
8
6
  tags:
9
7
  - Docker
10
8
  - LobeChat
@@ -37,7 +35,9 @@ To install aaPanel, go to the [aaPanel](https://www.aapanel.com/new/download.htm
37
35
  6. After submission, the panel will automatically initialize the application, which will take about `1-3` minutes. It can be accessed after the initialization is completed.
38
36
 
39
37
  <Callout type="warning">
40
- ⚠️ Do not enable any form of cache in the reverse proxy settings of the panel to avoid affecting the normal operation of the service. Read more at [https://github.com/lobehub/lobe-chat/discussions/5986](https://github.com/lobehub/lobe-chat/discussions/5986)
38
+ ⚠️ Do not enable any form of cache in the reverse proxy settings of the panel to avoid affecting
39
+ the normal operation of the service. Read more at
40
+ [https://github.com/lobehub/lobe-chat/discussions/5986](https://github.com/lobehub/lobe-chat/discussions/5986)
41
41
  </Callout>
42
42
 
43
43
  ## Visit LobeChat
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: 通过 宝塔面板Docker应用商店 部署 LobeChat
3
3
  description: >-
4
- 学习如何使用 宝塔面板Docker应用 部署 LobeChat 服务,包括安装 Docker
5
- 容器环境和使用指令一键启动服务。详细说明如何配置环境变量和使用代理地址。
4
+ 学习如何使用 宝塔面板Docker应用 部署 LobeChat 服务,包括安装 Docker 容器环境和使用指令一键启动服务。详细说明如何配置环境变量和使用代理地址。
5
+
6
6
  tags:
7
7
  - Docker
8
8
  - LobeChat
@@ -41,7 +41,8 @@ tags:
41
41
  5. 提交后面板会自动进行应用初始化,大概需要`1-3`分钟,初始化完成后即可访问。
42
42
 
43
43
  <Callout type="warning">
44
- ⚠️ 请不要在面板的反向代理设置中开启任何形式的缓存,以免影响服务的正常运行。详情请见 [https://github.com/lobehub/lobe-chat/discussions/5986](https://github.com/lobehub/lobe-chat/discussions/5986)
44
+ ⚠️ 请不要在面板的反向代理设置中开启任何形式的缓存,以免影响服务的正常运行。详情请见
45
+ [https://github.com/lobehub/lobe-chat/discussions/5986](https://github.com/lobehub/lobe-chat/discussions/5986)
45
46
  </Callout>
46
47
 
47
48
  ## 访问 LobeChat
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat with Docker Compose
3
3
  description: >-
4
- Learn how to deploy the LobeChat service using Docker Compose. Follow
5
- step-by-step instructions to install Docker, run the deployment command, and
6
- set up automatic updates.
4
+ Learn how to deploy the LobeChat service using Docker Compose. Follow step-by-step instructions to install Docker, run the deployment command, and set up automatic updates.
5
+
7
6
  tags:
8
7
  - Docker Compose
9
8
  - LobeChat Service
@@ -122,8 +122,6 @@ tags:
122
122
  ```
123
123
  </Steps>
124
124
 
125
-
126
-
127
125
  [docker-pulls-link]: https://hub.docker.com/r/lobehub/lobe-chat
128
126
  [docker-pulls-shield]: https://img.shields.io/docker/pulls/lobehub/lobe-chat?color=45cc11&labelColor=black&style=flat-square
129
127
  [docker-release-link]: https://hub.docker.com/r/lobehub/lobe-chat
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat with Docker
3
3
  description: >-
4
- Learn how to deploy the LobeChat service using Docker, including installation
5
- steps, command deployment, proxy configuration, and automatic update scripts.
4
+ Learn how to deploy the LobeChat service using Docker, including installation steps, command deployment, proxy configuration, and automatic update scripts.
5
+
6
6
  tags:
7
7
  - Docker Deployment
8
8
  - LobeChat Service
@@ -1,10 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat with Netlify - Step-by-Step Guide
3
3
  description: >-
4
- Learn how to deploy LobeChat on Netlify with detailed instructions on forking
5
- the repository, preparing your OpenAI API Key, importing to Netlify workspace,
6
- configuring site name and environment variables, and monitoring deployment
7
- progress.
4
+ Learn how to deploy LobeChat on Netlify with detailed instructions on forking the repository, preparing your OpenAI API Key, importing to Netlify workspace, configuring site name and environment variables, and monitoring deployment progress.
5
+
8
6
  tags:
9
7
  - Deploy LobeChat
10
8
  - Netlify Deployment
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: 在 Netlify 上部署 LobeChat
3
3
  description: >-
4
- 学习如何在 Netlify 上部署 LobeChat,包括 Fork 仓库、准备 OpenAI API Key、导入到 Netlify
5
- 工作台、配置站点名称与环境变量等步骤。
4
+ 学习如何在 Netlify 上部署 LobeChat,包括 Fork 仓库、准备 OpenAI API Key、导入到 Netlify 工作台、配置站点名称与环境变量等步骤。
5
+
6
6
  tags:
7
7
  - Netlify
8
8
  - LobeChat
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat with Railway
3
3
  description: >-
4
- Learn how to deploy LobeChat on Railway and follow the step-by-step process.
5
- Get your OpenAI API Key, deploy with a click, and start using it. Optionally,
6
- bind a custom domain for your deployment.
4
+ Learn how to deploy LobeChat on Railway and follow the step-by-step process. Get your OpenAI API Key, deploy with a click, and start using it. Optionally, bind a custom domain for your deployment.
5
+
7
6
  tags:
8
7
  - Deploy LobeChat
9
8
  - Railway Deployment
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat on RepoCloud
3
3
  description: >-
4
- Learn how to deploy LobeChat on RepoCloud with ease. Follow these steps to
5
- prepare your OpenAI API Key, deploy the application, and start using it.
6
- Optional: Bind a custom domain for a personalized touch.
4
+ Learn how to deploy LobeChat on RepoCloud with ease. Follow these steps to prepare your OpenAI API Key, deploy the application, and start using it. Optional: Bind a custom domain for a personalized touch.
5
+
7
6
  tags:
8
7
  - Deploy LobeChat
9
8
  - RepoCloud Deployment
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat on Sealos
3
3
  description: >-
4
- Learn how to deploy LobeChat on Sealos with ease. Follow the provided steps to
5
- set up LobeChat and start using it efficiently.
4
+ Learn how to deploy LobeChat on Sealos with ease. Follow the provided steps to set up LobeChat and start using it efficiently.
5
+
6
6
  tags:
7
7
  - Deploy LobeChat
8
8
  - Sealos Deployment
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat on TencentCloud Lighthouse
3
3
  description: >-
4
- Learn how to deploy the LobeChat application on TencentCloud Lighthouse,
5
- including preparing the large model API Key, clicking the deploy button, and
6
- other operations.
4
+ Learn how to deploy the LobeChat application on TencentCloud Lighthouse, including preparing the large model API Key, clicking the deploy button, and other operations.
5
+
7
6
  tags:
8
7
  - TencentCloud Lighthouse
9
8
  - TencentCloud
@@ -1,9 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat with Vercel
3
3
  description: >-
4
- Learn how to deploy LobeChat on Vercel with ease. Follow the provided steps to
5
- prepare your OpenAI API Key, deploy the project, and start using it
6
- efficiently.
4
+ Learn how to deploy LobeChat on Vercel with ease. Follow the provided steps to prepare your OpenAI API Key, deploy the project, and start using it efficiently.
5
+
7
6
  tags:
8
7
  - Deploy LobeChat
9
8
  - Vercel Deployment
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Deploy LobeChat on Zeabur
3
3
  description: >-
4
- Learn how to deploy LobeChat on Zeabur with ease. Follow the provided steps to
5
- set up your chat application seamlessly.
4
+ Learn how to deploy LobeChat on Zeabur with ease. Follow the provided steps to set up your chat application seamlessly.
5
+
6
6
  tags:
7
7
  - Deploy LobeChat
8
8
  - Zeabur Deployment
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: Deploying LobeChat with Docker Compose
3
3
  description: >-
4
- Learn how to deploy the LobeChat service using Docker Compose, including
5
- configuration tutorials for various services.
4
+ Learn how to deploy the LobeChat service using Docker Compose, including configuration tutorials for various services.
5
+
6
6
  tags:
7
7
  - Docker Compose
8
8
  - LobeChat
@@ -62,7 +62,9 @@ The script supports the following deployment modes; please choose the appropriat
62
62
  - [Domain Mode](#domain-mode): Supports LAN/public `http/https` access with reverse proxy; suitable for personal or team use.
63
63
 
64
64
  <Callout type="info">
65
- In the script's options prompt `(Option1/Option2)[Option1]`: `(Option1 / Option2)` indicates selectable options, while `[Option1]` indicates the default option; simply press enter to choose the default.
65
+ In the script's options prompt `(Option1/Option2)[Option1]`: `(Option1 / Option2)` indicates
66
+ selectable options, while `[Option1]` indicates the default option; simply press enter to choose
67
+ the default.
66
68
  </Callout>
67
69
 
68
70
  ### Local Mode
@@ -77,7 +79,8 @@ The script supports the following deployment modes; please choose the appropriat
77
79
  After the script finishes running, you need to check the configuration generation report, which includes the accounts and initial login passwords for the Casdoor administrator and user.
78
80
 
79
81
  <Callout type="warning">
80
- Please log in to LobeChat using the user account; the administrator account is only for managing Casdoor.
82
+ Please log in to LobeChat using the user account; the administrator account is only for managing
83
+ Casdoor.
81
84
  </Callout>
82
85
 
83
86
  ```log
@@ -142,7 +145,8 @@ The script supports the following deployment modes; please choose the appropriat
142
145
  After the script finishes running, please check the configuration generation report for the Casdoor administrator account, user account, and their initial login passwords.
143
146
 
144
147
  <Callout type="warning">
145
- Please log in to LobeChat using the user account; the administrator account is only for managing Casdoor.
148
+ Please log in to LobeChat using the user account; the administrator account is only for managing
149
+ Casdoor.
146
150
  </Callout>
147
151
 
148
152
  ```log
@@ -191,8 +195,8 @@ The script supports the following deployment modes; please choose the appropriat
191
195
  You can access your LobeChat service at `http://your_server_ip:3210`. The account credentials for the application can be found in the report from step `2`.
192
196
 
193
197
  <Callout type="warning">
194
- If your service can accessed via the public network,
195
- we strongly recommend disabling the registration,
198
+ If your service can accessed via the public network,
199
+ we strongly recommend disabling the registration,
196
200
  refer to the [documentation](https://lobehub.com/docs/self-hosting/advanced/auth/next-auth/casdoor)
197
201
  for more information.
198
202
  </Callout>
@@ -227,9 +231,9 @@ The script supports the following deployment modes; please choose the appropriat
227
231
  }
228
232
  ```
229
233
 
230
- ⚠️ If you are using such panel software,
231
- please do not enable any form of caching in the reverse proxy settings of such panel software to avoid affecting the normal operation of the service.
232
- Read more at https://github.com/lobehub/lobe-chat/discussions/5986
234
+ ⚠️ If you are using such panel software,
235
+ please do not enable any form of caching in the reverse proxy settings of such panel software to avoid affecting the normal operation of the service.
236
+ Read more at [https://github.com/lobehub/lobe-chat/discussions/5986](https://github.com/lobehub/lobe-chat/discussions/5986)
233
237
  </Callout>
234
238
 
235
239
  ### Complete Remaining Configuration in Interactive Script
@@ -257,7 +261,8 @@ The script supports the following deployment modes; please choose the appropriat
257
261
  After the script finishes running, you need to check the configuration generation report, which includes the initial login password for the Casdoor administrator.
258
262
 
259
263
  <Callout type="warning">
260
- Please log in to LobeChat using the user account; the administrator account is only for managing Casdoor.
264
+ Please log in to LobeChat using the user account; the administrator account is only for managing
265
+ Casdoor.
261
266
  </Callout>
262
267
 
263
268
  ```log
@@ -304,10 +309,10 @@ The script supports the following deployment modes; please choose the appropriat
304
309
  ### Access Application
305
310
 
306
311
  You can access your LobeChat service via `https://lobe.example.com`. The account credentials for the application can be found in the report from step `3`.
307
-
312
+
308
313
  <Callout type="warning">
309
- If your service can accessed via the public network,
310
- we strongly recommend disabling the registration,
314
+ If your service can accessed via the public network,
315
+ we strongly recommend disabling the registration,
311
316
  refer to the [documentation](https://lobehub.com/docs/self-hosting/advanced/auth/next-auth/casdoor)
312
317
  for more information.
313
318
  </Callout>
@@ -324,7 +329,8 @@ mv .env.example .env
324
329
  ```
325
330
 
326
331
  <Callout type="info">
327
- This section does not cover all complete variables; remaining variables can be referenced in [Deploying with the Server Database](/en/docs/self-hosting/server-database).
332
+ This section does not cover all complete variables; remaining variables can be referenced in
333
+ [Deploying with the Server Database](/en/docs/self-hosting/server-database).
328
334
  </Callout>
329
335
 
330
336
  ### Prerequisites
@@ -341,7 +347,8 @@ These services can be combined through self-hosting or online cloud services to
341
347
  We use [MinIO](https://github.com/minio/minio) as the local S3 object storage service and [Casdoor](https://github.com/casdoor/casdoor) as the local authentication service by default.
342
348
 
343
349
  <Callout type="warning">
344
- If your network topology is complex, please make sure these services can communicate properly within your network environment.
350
+ If your network topology is complex, please make sure these services can communicate properly
351
+ within your network environment.
345
352
  </Callout>
346
353
 
347
354
  ### Necessary Configuration
@@ -415,6 +422,7 @@ Solutions:
415
422
  - Please refer to the reverse proxy configuration notes in the [Domain Mode](#domain-mode) section.
416
423
 
417
424
  - A direct troubleshooting method is to access `https://auth.example.com/.well-known/openid-configuration` directly; if:
425
+
418
426
  - Non-JSON format data is returned, it indicates your reverse proxy configuration is incorrect.
419
427
  - If the returned JSON format data contains an `"issuer": "URL"` field that does not match your configured `https://auth.example.com`, it indicates your environment variable configuration is incorrect.
420
428
 
@@ -478,6 +486,7 @@ Allow users to change their avatars in Casdoor.
478
486
  ],
479
487
  "Version": "2012-10-17"
480
488
  }
489
+ ```
481
490
  ````
482
491
 
483
492
  2. Create a new access key and store the generated `Access Key` and `Secret Key`.
@@ -497,9 +506,12 @@ Allow users to change their avatars in Casdoor.
497
506
  This is applicable for users who have been using `logto` as their login and authentication service in a production environment.
498
507
 
499
508
  <Callout type="info">
500
- Due to significant instability when using [Logto](https://logto.io/)
501
- as a login and authentication service, the following tutorial is based on deploying with an IP mode, implementing a domain release solution using Casdoor as the authentication service provider.
502
- The remainder of this article will illustrate using this as an example. If you are using other login authentication services like Logto, the process should be similar, but be aware that port configurations may differ among different services.
509
+ Due to significant instability when using [Logto](https://logto.io/) as a login and authentication
510
+ service, the following tutorial is based on deploying with an IP mode, implementing a domain
511
+ release solution using Casdoor as the authentication service provider. The remainder of this
512
+ article will illustrate using this as an example. If you are using other login authentication
513
+ services like Logto, the process should be similar, but be aware that port configurations may
514
+ differ among different services.
503
515
  </Callout>
504
516
 
505
517
  In the following, it is assumed that in addition to the above services, you are also running an **Nginx** layer for reverse proxy and SSL configuration.
@@ -529,44 +541,49 @@ After running, you will get three files:
529
541
  Next, modify the configuration files to achieve domain release.
530
542
 
531
543
  1. Modify the `docker-compose.yml` file.
544
+
532
545
  1. Change the `MINIO_API_CORS_ALLOW_ORIGIN` field of `minio`.
546
+
533
547
  ```yaml
534
- 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.example.com'
548
+ 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.example.com'
535
549
  ```
550
+
536
551
  2. Modify the `origin` field of `casdoor`.
552
+
537
553
  ```yaml
538
- origin: 'https://auth.example.com'
554
+ origin: 'https://auth.example.com'
539
555
  ```
556
+
540
557
  3. Modify the `environment` field of `lobe`.
558
+
541
559
  ```yaml
542
- # - 'APP_URL=http://localhost:3210'
543
- - 'APP_URL=https://lobe.example.com'
560
+ # - 'APP_URL=http://localhost:3210'
561
+ - 'APP_URL=https://lobe.example.com'
544
562
 
545
- - 'NEXT_AUTH_SSO_PROVIDERS=casdoor'
546
- - 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
547
- - 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
548
- # - 'AUTH_URL=http://localhost:${LOBE_PORT}/api/auth'
549
- - 'AUTH_URL=https://lobe.example.com/api/auth'
563
+ - 'NEXT_AUTH_SSO_PROVIDERS=casdoor'
564
+ - 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
565
+ - 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
566
+ # - 'AUTH_URL=http://localhost:${LOBE_PORT}/api/auth'
567
+ - 'AUTH_URL=https://lobe.example.com/api/auth'
550
568
 
551
- # - 'AUTH_CASDOOR_ISSUER=http://localhost:${CASDOOR_PORT}'
552
- - 'AUTH_CASDOOR_ISSUER=https://auth.example.com'
569
+ # - 'AUTH_CASDOOR_ISSUER=http://localhost:${CASDOOR_PORT}'
570
+ - 'AUTH_CASDOOR_ISSUER=https://auth.example.com'
553
571
 
554
- - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
555
- # - 'S3_ENDPOINT=http://localhost:${MINIO_PORT}'
556
- - 'S3_ENDPOINT=https://minio.example.com'
572
+ - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
573
+ # - 'S3_ENDPOINT=http://localhost:${MINIO_PORT}'
574
+ - 'S3_ENDPOINT=https://minio.example.com'
557
575
 
558
- - 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
559
- # - 'S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}'
560
- - 'S3_PUBLIC_DOMAIN=https://minio.example.com'
576
+ - 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
577
+ # - 'S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}'
578
+ - 'S3_PUBLIC_DOMAIN=https://minio.example.com'
561
579
 
562
- - 'S3_ENABLE_PATH_STYLE=1'
563
- - 'LLM_VISION_IMAGE_USE_BASE64=1'
580
+ - 'S3_ENABLE_PATH_STYLE=1'
581
+ - 'LLM_VISION_IMAGE_USE_BASE64=1'
564
582
  ```
583
+
565
584
  2. Modify the `.env` file.
566
585
 
567
- <Callout type="info">
568
- For security reasons, modify the ROOT USER field in the `.env` file.
569
- </Callout>
586
+ <Callout type="info">For security reasons, modify the ROOT USER field in the `.env` file.</Callout>
570
587
 
571
588
  ```sh
572
589
  # MinIO S3 configuration
@@ -583,8 +600,10 @@ docker logs -f lobe-chat
583
600
  ```
584
601
 
585
602
  <Callout type="tip">
586
- In our official Docker images, automatic migration of the database schema is performed before starting the images.
587
- Our official images guarantee the stability of "empty database -> complete tables" for automatic table creation. Therefore, we recommend your database instance use an empty table instance to avoid the trouble of manually maintaining table structure or migrations.
603
+ In our official Docker images, automatic migration of the database schema is performed before
604
+ starting the images. Our official images guarantee the stability of "empty database -> complete
605
+ tables" for automatic table creation. Therefore, we recommend your database instance use an empty
606
+ table instance to avoid the trouble of manually maintaining table structure or migrations.
588
607
  </Callout>
589
608
 
590
609
  If you encounter issues during table creation, you can try the following command to forcibly remove the database container and restart:
@@ -621,7 +640,8 @@ After logging in, perform the following actions:
621
640
  - Save and exit.
622
641
 
623
642
  <Callout type="info">
624
- Following the steps above ensures that not all users are administrators by default, leading to an unsafe situation.
643
+ Following the steps above ensures that not all users are administrators by default, leading to an
644
+ unsafe situation.
625
645
  </Callout>
626
646
 
627
647
  #### S3 Object Storage Service Configuration
@@ -748,6 +768,7 @@ services:
748
768
  command: >
749
769
  server /etc/minio/data --address ":${MINIO_PORT}" --console-address ":9001"
750
770
 
771
+
751
772
  casdoor:
752
773
  image: casbin/casdoor
753
774
  container_name: lobe-casdoor