@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.
- package/CHANGELOG.md +50 -0
- package/changelog/v1.json +18 -0
- package/docs/changelog/2023-09-09-plugin-system.mdx +2 -3
- package/docs/changelog/2023-11-14-gpt4-vision.mdx +4 -6
- package/docs/changelog/2023-11-19-tts-stt.mdx +2 -3
- package/docs/changelog/2023-12-22-dalle-3.mdx +2 -5
- package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +2 -2
- package/docs/changelog/2024-02-08-sso-oauth.mdx +2 -2
- package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +2 -3
- package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +2 -2
- package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +2 -3
- package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +2 -2
- package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +2 -3
- package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +4 -5
- package/docs/changelog/2024-09-13-openai-o1-models.mdx +2 -2
- package/docs/changelog/2024-09-20-artifacts.mdx +2 -3
- package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +2 -2
- package/docs/changelog/2024-10-27-pin-assistant.mdx +2 -3
- package/docs/changelog/2024-11-06-share-text-json.mdx +2 -4
- package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +2 -2
- package/docs/changelog/2024-11-25-november-providers.mdx +2 -2
- package/docs/changelog/2024-11-27-forkable-chat.mdx +2 -2
- package/docs/changelog/2025-01-03-user-profile.mdx +2 -2
- package/docs/changelog/2025-01-22-new-ai-provider.mdx +2 -2
- package/docs/changelog/2025-02-02-deepseek-r1.mdx +4 -4
- package/docs/development/basic/add-new-authentication-providers.zh-CN.mdx +1 -2
- package/docs/development/basic/chat-api.mdx +2 -4
- package/docs/development/basic/chat-api.zh-CN.mdx +2 -4
- package/docs/development/internationalization/internationalization-implementation.mdx +10 -10
- package/docs/development/internationalization/internationalization-implementation.zh-CN.mdx +10 -10
- package/docs/self-hosting/advanced/analytics.mdx +2 -2
- package/docs/self-hosting/advanced/auth/clerk.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +4 -7
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +0 -3
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/github.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx +12 -6
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx +5 -1
- package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +8 -14
- package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +6 -12
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +2 -3
- package/docs/self-hosting/advanced/auth.mdx +2 -3
- package/docs/self-hosting/advanced/desktop.mdx +2 -1
- package/docs/self-hosting/advanced/desktop.zh-CN.mdx +1 -3
- package/docs/self-hosting/advanced/feature-flags.mdx +2 -3
- package/docs/self-hosting/advanced/knowledge-base.mdx +4 -3
- package/docs/self-hosting/advanced/model-list.mdx +11 -10
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +10 -9
- package/docs/self-hosting/advanced/observability/langfuse.mdx +2 -3
- package/docs/self-hosting/advanced/online-search.mdx +11 -10
- package/docs/self-hosting/advanced/online-search.zh-CN.mdx +7 -7
- package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +2 -2
- package/docs/self-hosting/advanced/settings-url-share.mdx +2 -3
- package/docs/self-hosting/advanced/upstream-sync.mdx +2 -3
- package/docs/self-hosting/advanced/webrtc.mdx +2 -2
- package/docs/self-hosting/environment-variables/analytics.mdx +2 -3
- package/docs/self-hosting/environment-variables/auth.mdx +2 -3
- package/docs/self-hosting/environment-variables/basic.mdx +4 -5
- package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +2 -2
- package/docs/self-hosting/environment-variables/model-provider.mdx +2 -3
- package/docs/self-hosting/environment-variables/s3.mdx +3 -5
- package/docs/self-hosting/environment-variables.mdx +2 -2
- package/docs/self-hosting/examples/azure-openai.mdx +2 -2
- package/docs/self-hosting/examples/ollama.mdx +2 -3
- package/docs/self-hosting/faq/no-v1-suffix.mdx +4 -4
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +2 -3
- package/docs/self-hosting/platform/alibaba-cloud.mdx +2 -3
- package/docs/self-hosting/platform/btpanel.mdx +5 -5
- package/docs/self-hosting/platform/btpanel.zh-CN.mdx +4 -3
- package/docs/self-hosting/platform/docker-compose.mdx +2 -3
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +0 -2
- package/docs/self-hosting/platform/docker.mdx +2 -2
- package/docs/self-hosting/platform/netlify.mdx +2 -4
- package/docs/self-hosting/platform/netlify.zh-CN.mdx +2 -2
- package/docs/self-hosting/platform/railway.mdx +2 -3
- package/docs/self-hosting/platform/repocloud.mdx +2 -3
- package/docs/self-hosting/platform/sealos.mdx +2 -2
- package/docs/self-hosting/platform/tencentcloud-lighthouse.mdx +2 -3
- package/docs/self-hosting/platform/vercel.mdx +2 -3
- package/docs/self-hosting/platform/zeabur.mdx +2 -2
- package/docs/self-hosting/server-database/docker-compose.mdx +65 -44
- package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +48 -55
- package/docs/self-hosting/server-database/docker.mdx +2 -2
- package/docs/self-hosting/server-database/docker.zh-CN.mdx +2 -2
- package/docs/self-hosting/server-database/dokploy.mdx +4 -5
- package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +137 -138
- package/docs/self-hosting/server-database/netlify.mdx +2 -2
- package/docs/self-hosting/server-database/netlify.zh-CN.mdx +2 -2
- package/docs/self-hosting/server-database/railway.mdx +2 -2
- package/docs/self-hosting/server-database/repocloud.mdx +2 -2
- package/docs/self-hosting/server-database/sealos.mdx +4 -5
- package/docs/self-hosting/server-database/sealos.zh-CN.mdx +18 -20
- package/docs/self-hosting/server-database/vercel.mdx +5 -3
- package/docs/self-hosting/server-database/vercel.zh-CN.mdx +2 -2
- package/docs/self-hosting/server-database/zeabur.mdx +2 -2
- package/docs/self-hosting/server-database.mdx +1 -1
- package/docs/self-hosting/server-database.zh-CN.mdx +2 -1
- package/docs/self-hosting/start.mdx +2 -2
- package/docs/self-hosting/start.zh-CN.mdx +2 -2
- package/docs/usage/agents/agent-organization.mdx +2 -2
- package/docs/usage/agents/concepts.mdx +4 -5
- package/docs/usage/agents/concepts.zh-CN.mdx +2 -2
- package/docs/usage/agents/custom-agent.mdx +3 -4
- package/docs/usage/agents/custom-agent.zh-CN.mdx +1 -1
- package/docs/usage/agents/model.mdx +5 -5
- package/docs/usage/agents/model.zh-CN.mdx +3 -5
- package/docs/usage/agents/prompt.mdx +4 -5
- package/docs/usage/agents/topics.mdx +3 -4
- package/docs/usage/agents/topics.zh-CN.mdx +1 -1
- package/docs/usage/features/agent-market.mdx +3 -11
- package/docs/usage/features/agent-market.zh-CN.mdx +2 -7
- package/docs/usage/features/artifacts.mdx +2 -2
- package/docs/usage/features/auth.mdx +2 -3
- package/docs/usage/features/cot.mdx +2 -2
- package/docs/usage/features/database.mdx +2 -2
- package/docs/usage/features/knowledge-base.mdx +4 -3
- package/docs/usage/features/knowledge-base.zh-CN.mdx +2 -1
- package/docs/usage/features/local-llm.mdx +2 -3
- package/docs/usage/features/mobile.mdx +2 -2
- package/docs/usage/features/more.mdx +2 -3
- package/docs/usage/features/multi-ai-providers.mdx +2 -3
- package/docs/usage/features/plugin-system.mdx +3 -11
- package/docs/usage/features/plugin-system.zh-CN.mdx +1 -8
- package/docs/usage/features/pwa.mdx +4 -4
- package/docs/usage/features/pwa.zh-CN.mdx +2 -1
- package/docs/usage/features/text-to-image.mdx +3 -11
- package/docs/usage/features/text-to-image.zh-CN.mdx +3 -10
- package/docs/usage/features/theme.mdx +2 -3
- package/docs/usage/features/tts.mdx +3 -11
- package/docs/usage/features/tts.zh-CN.mdx +1 -8
- package/docs/usage/features/vision.mdx +3 -11
- package/docs/usage/features/vision.zh-CN.mdx +1 -8
- package/docs/usage/foundation/basic.mdx +2 -3
- package/docs/usage/foundation/share.mdx +2 -3
- package/docs/usage/foundation/text2image.mdx +2 -2
- package/docs/usage/foundation/translate.mdx +2 -2
- package/docs/usage/foundation/tts-stt.mdx +2 -2
- package/docs/usage/foundation/vision.mdx +2 -3
- package/docs/usage/plugins/basic-usage.mdx +2 -3
- package/docs/usage/plugins/custom-plugin.mdx +2 -2
- package/docs/usage/plugins/development.mdx +2 -4
- package/docs/usage/plugins/store.mdx +2 -2
- package/docs/usage/providers/ai21.mdx +2 -2
- package/docs/usage/providers/anthropic.mdx +2 -3
- package/docs/usage/providers/anthropic.zh-CN.mdx +2 -2
- package/docs/usage/providers/azure.mdx +2 -3
- package/docs/usage/providers/azureai.mdx +4 -2
- package/docs/usage/providers/azureai.zh-CN.mdx +2 -1
- package/docs/usage/providers/baichuan.mdx +2 -3
- package/docs/usage/providers/bedrock.mdx +2 -3
- package/docs/usage/providers/cloudflare.mdx +3 -2
- package/docs/usage/providers/deepseek.mdx +2 -2
- package/docs/usage/providers/fireworksai.mdx +2 -2
- package/docs/usage/providers/giteeai.mdx +2 -2
- package/docs/usage/providers/github.mdx +1 -1
- package/docs/usage/providers/github.zh-CN.mdx +1 -1
- package/docs/usage/providers/google.mdx +2 -3
- package/docs/usage/providers/groq.mdx +2 -2
- package/docs/usage/providers/hunyuan.mdx +2 -2
- package/docs/usage/providers/infiniai.zh-CN.mdx +3 -1
- package/docs/usage/providers/internlm.mdx +2 -2
- package/docs/usage/providers/jina.mdx +4 -3
- package/docs/usage/providers/jina.zh-CN.mdx +2 -2
- package/docs/usage/providers/lmstudio.mdx +2 -2
- package/docs/usage/providers/lmstudio.zh-CN.mdx +2 -4
- package/docs/usage/providers/minimax.mdx +2 -3
- package/docs/usage/providers/minimax.zh-CN.mdx +2 -2
- package/docs/usage/providers/mistral.mdx +2 -3
- package/docs/usage/providers/modelscope.mdx +4 -0
- package/docs/usage/providers/modelscope.zh-CN.mdx +4 -0
- package/docs/usage/providers/moonshot.mdx +2 -3
- package/docs/usage/providers/novita.mdx +2 -3
- package/docs/usage/providers/novita.zh-CN.mdx +2 -2
- package/docs/usage/providers/nvidia.mdx +3 -2
- package/docs/usage/providers/ollama/gemma.mdx +2 -3
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +2 -2
- package/docs/usage/providers/ollama.mdx +2 -2
- package/docs/usage/providers/openai.mdx +5 -5
- package/docs/usage/providers/openai.zh-CN.mdx +3 -3
- package/docs/usage/providers/openrouter.mdx +2 -3
- package/docs/usage/providers/perplexity.mdx +2 -2
- package/docs/usage/providers/ppio.mdx +5 -6
- package/docs/usage/providers/ppio.zh-CN.mdx +6 -6
- package/docs/usage/providers/qiniu.mdx +6 -6
- package/docs/usage/providers/qiniu.zh-CN.mdx +2 -1
- package/docs/usage/providers/qwen.mdx +2 -4
- package/docs/usage/providers/sambanova.mdx +2 -1
- package/docs/usage/providers/sensenova.mdx +2 -2
- package/docs/usage/providers/siliconcloud.mdx +2 -2
- package/docs/usage/providers/stepfun.mdx +2 -3
- package/docs/usage/providers/taichu.mdx +2 -3
- package/docs/usage/providers/togetherai.mdx +2 -2
- package/docs/usage/providers/vllm.mdx +15 -12
- package/docs/usage/providers/vllm.zh-CN.mdx +9 -7
- package/docs/usage/providers/volcengine.mdx +16 -14
- package/docs/usage/providers/wenxin.mdx +2 -2
- package/docs/usage/providers/xai.mdx +2 -2
- package/docs/usage/providers/zeroone.mdx +2 -3
- package/docs/usage/providers/zeroone.zh-CN.mdx +2 -2
- package/docs/usage/providers/zhipu.mdx +2 -3
- package/docs/usage/providers/zhipu.zh-CN.mdx +1 -1
- package/docs/usage/providers.mdx +2 -3
- package/docs/usage/start.mdx +2 -3
- package/docs/usage/tools-calling/anthropic.mdx +2 -2
- package/docs/usage/tools-calling/anthropic.zh-CN.mdx +2 -2
- package/docs/usage/tools-calling/google.mdx +2 -2
- package/docs/usage/tools-calling/google.zh-CN.mdx +4 -4
- package/docs/usage/tools-calling/groq.zh-CN.mdx +2 -2
- package/docs/usage/tools-calling/openai.mdx +2 -2
- package/docs/usage/tools-calling/openai.zh-CN.mdx +2 -2
- package/package.json +2 -2
- package/src/app/(backend)/middleware/auth/utils.ts +2 -1
- package/src/app/(backend)/webapi/user/avatar/[id]/[image]/route.ts +1 -1
- package/src/app/[variants]/(main)/repos/[id]/_layout/Mobile.tsx +7 -7
- package/src/config/aiModels/deepseek.ts +1 -0
- package/src/config/aiModels/hunyuan.ts +1 -0
- package/src/config/aiModels/mistral.ts +1 -2
- package/src/config/aiModels/novita.ts +23 -22
- package/src/config/aiModels/openrouter.ts +1 -0
- package/src/config/aiModels/qwen.ts +11 -11
- package/src/config/aiModels/siliconcloud.ts +7 -6
- package/src/config/aiModels/vertexai.ts +2 -2
- package/src/config/aiModels/wenxin.ts +1 -2
- package/src/config/modelProviders/baichuan.ts +3 -0
- package/src/config/modelProviders/fireworksai.ts +3 -0
- package/src/config/modelProviders/giteeai.ts +3 -0
- package/src/config/modelProviders/github.ts +1 -2
- package/src/config/modelProviders/groq.ts +0 -3
- package/src/config/modelProviders/hunyuan.ts +3 -0
- package/src/config/modelProviders/infiniai.ts +0 -3
- package/src/config/modelProviders/internlm.ts +3 -0
- package/src/config/modelProviders/minimax.ts +3 -4
- package/src/config/modelProviders/moonshot.ts +0 -7
- package/src/config/modelProviders/novita.ts +3 -0
- package/src/config/modelProviders/openrouter.ts +0 -4
- package/src/config/modelProviders/perplexity.ts +0 -3
- package/src/config/modelProviders/qiniu.ts +0 -3
- package/src/config/modelProviders/qwen.ts +0 -3
- package/src/config/modelProviders/sensenova.ts +3 -0
- package/src/config/modelProviders/siliconcloud.ts +0 -3
- package/src/config/modelProviders/spark.ts +0 -5
- package/src/config/modelProviders/stepfun.ts +3 -6
- package/src/config/modelProviders/taichu.ts +3 -0
- package/src/config/modelProviders/tencentcloud.ts +3 -0
- package/src/config/modelProviders/togetherai.ts +3 -0
- package/src/config/modelProviders/upstage.ts +3 -0
- package/src/config/modelProviders/wenxin.ts +3 -4
- package/src/config/modelProviders/xai.ts +0 -3
- package/src/config/modelProviders/zhipu.ts +3 -0
- package/src/database/migrations/meta/0014_snapshot.json +182 -539
- package/src/database/migrations/meta/0016_snapshot.json +182 -539
- package/src/database/repositories/dataImporter/__tests__/fixtures/with-client-id.json +13 -58
- package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +1 -8
- package/src/features/ChatInput/ActionBar/Model/index.tsx +8 -16
- package/src/features/ChatInput/ActionBar/Search/Controls.tsx +4 -12
- package/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx +1 -7
- package/src/features/ChatInput/ActionBar/Search/index.tsx +2 -4
- package/src/features/ModelSwitchPanel/index.tsx +1 -4
- package/src/libs/model-runtime/anthropic/index.test.ts +4 -2
- package/src/libs/model-runtime/google/index.ts +30 -40
- package/src/libs/model-runtime/novita/__snapshots__/index.test.ts.snap +19 -1
- package/src/libs/model-runtime/novita/index.ts +14 -15
- package/src/libs/model-runtime/nvidia/index.ts +2 -21
- package/src/libs/model-runtime/openai/__snapshots__/index.test.ts.snap +39 -11
- package/src/libs/model-runtime/openai/index.ts +3 -38
- package/src/libs/model-runtime/openrouter/__snapshots__/index.test.ts.snap +3 -0
- package/src/libs/model-runtime/openrouter/index.ts +45 -54
- package/src/libs/model-runtime/qwen/index.ts +2 -45
- package/src/libs/model-runtime/siliconcloud/index.ts +2 -51
- package/src/libs/model-runtime/utils/modelParse.test.ts +761 -0
- package/src/libs/model-runtime/utils/modelParse.ts +186 -0
- package/src/libs/model-runtime/utils/streams/anthropic.ts +12 -11
- package/src/libs/model-runtime/utils/streams/openai.ts +6 -4
- package/src/libs/model-runtime/utils/streams/protocol.ts +1 -1
- package/src/libs/model-runtime/utils/streams/spark.test.ts +1 -1
- package/src/libs/model-runtime/utils/streams/spark.ts +1 -2
- package/src/libs/model-runtime/volcengine/index.ts +11 -0
- package/src/libs/model-runtime/zeroone/index.ts +2 -23
- package/src/libs/model-runtime/zhipu/index.ts +7 -34
- package/src/middleware.ts +1 -1
- package/src/server/services/user/index.ts +3 -4
- package/src/services/__tests__/assistant.test.ts +4 -6
- package/src/services/__tests__/tool.test.ts +3 -1
- package/src/store/user/slices/auth/selectors.ts +1 -1
- package/src/store/user/slices/common/action.test.ts +1 -1
- 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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|
-
⚠️ 请不要在面板的反向代理设置中开启任何形式的缓存,以免影响服务的正常运行。详情请见
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
-
|
502
|
-
|
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
|
-
|
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
|
-
|
554
|
+
origin: 'https://auth.example.com'
|
539
555
|
```
|
556
|
+
|
540
557
|
3. Modify the `environment` field of `lobe`.
|
558
|
+
|
541
559
|
```yaml
|
542
|
-
|
543
|
-
|
560
|
+
# - 'APP_URL=http://localhost:3210'
|
561
|
+
- 'APP_URL=https://lobe.example.com'
|
544
562
|
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
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
|
-
|
552
|
-
|
569
|
+
# - 'AUTH_CASDOOR_ISSUER=http://localhost:${CASDOOR_PORT}'
|
570
|
+
- 'AUTH_CASDOOR_ISSUER=https://auth.example.com'
|
553
571
|
|
554
|
-
|
555
|
-
|
556
|
-
|
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
|
-
|
559
|
-
|
560
|
-
|
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
|
-
|
563
|
-
|
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
|
587
|
-
Our official images guarantee the stability of "empty database -> complete
|
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
|
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
|