@lobehub/chat 1.91.0 → 1.91.1
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 +25 -0
- package/changelog/v1.json +9 -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 +1 -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/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/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,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Configuring Keycloak Authentication Service in LobeChat
|
3
3
|
description: >-
|
4
|
-
Learn how to configure the Keycloak authentication service in LobeChat,
|
5
|
-
|
6
|
-
variables.
|
4
|
+
Learn how to configure the Keycloak authentication service in LobeChat, including deployment, creation, permission settings, and environment variables.
|
5
|
+
|
7
6
|
tags:
|
8
7
|
- Keycloak Authentication
|
9
8
|
- Environment Variable Configuration
|
@@ -16,7 +15,8 @@ tags:
|
|
16
15
|
[Keycloak](https://www.keycloak.org/) is an open-source identity and access management solution that provides single sign-on, identity brokering, and social login features, suitable for modern applications and services.
|
17
16
|
|
18
17
|
<Callout type={'tip'}>
|
19
|
-
If you want to privately deploy Keycloak, we recommend using it together with LobeChat via Docker
|
18
|
+
If you want to privately deploy Keycloak, we recommend using it together with LobeChat via Docker
|
19
|
+
Compose deployment for easier service management.
|
20
20
|
</Callout>
|
21
21
|
|
22
22
|
## Keycloak Configuration Process
|
@@ -37,10 +37,12 @@ If you deploy using a public network, this guide assumes:
|
|
37
37
|
Access your privately deployed Keycloak admin console (default is `http://localhost:8080/admin`) and log in with the administrator account.
|
38
38
|
|
39
39
|
1. Create a new Realm
|
40
|
+
|
40
41
|
- Click the dropdown menu in the upper left corner and select "Create Realm"
|
41
42
|
- Enter a name, such as "LobeChat", then click "Create"
|
42
43
|
|
43
44
|
2. Create a Client
|
45
|
+
|
44
46
|
- Select "Clients" from the left menu, then click "Create client"
|
45
47
|
- Fill in the following information:
|
46
48
|
- Client ID: `lobechat`
|
@@ -65,6 +67,7 @@ If you deploy using a public network, this guide assumes:
|
|
65
67
|
### Configure Users and Roles (Optional)
|
66
68
|
|
67
69
|
1. Create Users
|
70
|
+
|
68
71
|
- Select "Users" from the left menu, then click "Add user"
|
69
72
|
- Fill in the user information and click "Create"
|
70
73
|
- On the user details page, switch to the "Credentials" tab
|
@@ -87,7 +90,8 @@ If you deploy using a public network, this guide assumes:
|
|
87
90
|
4. Click "Save" to save the settings
|
88
91
|
|
89
92
|
<Callout type={'warning'}>
|
90
|
-
If registration is not disabled, anyone might be able to register and log in to your application.
|
93
|
+
If registration is not disabled, anyone might be able to register and log in to your application.
|
94
|
+
Please configure according to your security requirements.
|
91
95
|
</Callout>
|
92
96
|
|
93
97
|
### Configure Environment Variables
|
@@ -116,4 +120,6 @@ If you deploy using a public network, this guide assumes:
|
|
116
120
|
</Callout>
|
117
121
|
</Steps>
|
118
122
|
|
119
|
-
<Callout type={'info'}>
|
123
|
+
<Callout type={'info'}>
|
124
|
+
After successful deployment, users will be able to authenticate through Keycloak and use LobeChat.
|
125
|
+
</Callout>
|
@@ -13,7 +13,8 @@ tags:
|
|
13
13
|
[Keycloak](https://www.keycloak.org/) 是一个开源的身份和访问管理解决方案,提供单点登录、身份代理和社交登录等功能,适用于现代应用和服务。
|
14
14
|
|
15
15
|
<Callout type={'tip'}>
|
16
|
-
若你想要私有部署 Keycloak,我们建议你将之与 LobeChat 一同使用 Docker Compose
|
16
|
+
若你想要私有部署 Keycloak,我们建议你将之与 LobeChat 一同使用 Docker Compose
|
17
|
+
部署,这样可以更方便地管理服务。
|
17
18
|
</Callout>
|
18
19
|
|
19
20
|
## Keycloak 配置流程
|
@@ -34,10 +35,12 @@ tags:
|
|
34
35
|
访问你私有部署的 Keycloak 管理控制台(默认为 `http://localhost:8080/admin`),使用管理员账号登录。
|
35
36
|
|
36
37
|
1. 创建新领域(Realm)
|
38
|
+
|
37
39
|
- 点击左上角的下拉菜单,选择 "Create Realm"
|
38
40
|
- 输入名称,例如 "LobeChat",然后点击 "Create"
|
39
41
|
|
40
42
|
2. 创建客户端(Client)
|
43
|
+
|
41
44
|
- 在左侧菜单中选择 "Clients",然后点击 "Create client"
|
42
45
|
- 填写以下信息:
|
43
46
|
- Client ID: `lobechat`
|
@@ -62,6 +65,7 @@ tags:
|
|
62
65
|
### 配置用户和角色(可选)
|
63
66
|
|
64
67
|
1. 创建用户
|
68
|
+
|
65
69
|
- 在左侧菜单中选择 "Users",然后点击 "Add user"
|
66
70
|
- 填写用户信息,点击 "Create"
|
67
71
|
- 在用户详情页,切换到 "Credentials" 选项卡
|
@@ -1,8 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Configuring Logto Authentication Service in LobeChat
|
3
3
|
description: >-
|
4
|
-
Learn how to configure Logto authentication service in LobeChat, including
|
5
|
-
|
4
|
+
Learn how to configure Logto authentication service in LobeChat, including deployment, creation, setting permissions, and environment variables.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- Logto Authentication
|
8
8
|
- Environment Variable Configuration
|
@@ -86,23 +86,17 @@ If you are using Logto Cloud, assume its endpoint domain is `https://example.log
|
|
86
86
|
|
87
87
|
If you encounter issues during the Logto deployment process, refer to the following common problems:
|
88
88
|
|
89
|
-
- `Only roles with the xxx attribute may create roles`:
|
90
|
-
Check your database user's permissions and ensure that the user in your Logto database has the `admin` role to create roles.
|
89
|
+
- `Only roles with the xxx attribute may create roles`: Check your database user's permissions and ensure that the user in your Logto database has the `admin` role to create roles.
|
91
90
|
|
92
|
-
- Error executing `logto db seed` on third-party databases like `Neon`:
|
93
|
-
Try using the `logto db seed --encrypt-base-role` command.
|
91
|
+
- Error executing `logto db seed` on third-party databases like `Neon`: Try using the `logto db seed --encrypt-base-role` command.
|
94
92
|
|
95
|
-
- Database seeding failed:
|
96
|
-
Try skipping the seeding process with the `--skip-seed` parameter.
|
93
|
+
- Database seeding failed: Try skipping the seeding process with the `--skip-seed` parameter.
|
97
94
|
|
98
|
-
- `Error: role xxx already exists`:
|
99
|
-
Delete the existing role in the database.
|
95
|
+
- `Error: role xxx already exists`: Delete the existing role in the database.
|
100
96
|
|
101
|
-
- Database migration failed after a version upgrade:
|
102
|
-
Try using the command `npx @logto/cli db alteration deploy $version` (e.g., `npx @logto/cli db alteration deploy 1.22.0`).
|
97
|
+
- Database migration failed after a version upgrade: Try using the command `npx @logto/cli db alteration deploy $version` (e.g., `npx @logto/cli db alteration deploy 1.22.0`).
|
103
98
|
|
104
|
-
- I am using Docker deployment and want a one-click upgrade:
|
105
|
-
Execute the custom command in the container: `sh -c "npm run cli db seed -- --swe --encrypt-base-role" && npx @logto/cli db alteration deploy $version && npm start`
|
99
|
+
- I am using Docker deployment and want a one-click upgrade: Execute the custom command in the container: `sh -c "npm run cli db seed -- --swe --encrypt-base-role" && npx @logto/cli db alteration deploy $version && npm start`
|
106
100
|
|
107
101
|
<Callout type={'info'}>
|
108
102
|
After successful deployment, users will be able to authenticate via Logto and use LobeChat.
|
@@ -83,22 +83,16 @@ tags:
|
|
83
83
|
|
84
84
|
若你在部署 Logto 过程中遇到问题,可以参考以下常见问题:
|
85
85
|
|
86
|
-
- `Only roles with the xxx attribute may create roles
|
87
|
-
请检查你的数据库用户权限,确保你的 Logto 数据库中的用户具有 `admin` 角色,以便创建角色。
|
86
|
+
- `Only roles with the xxx attribute may create roles`:请检查你的数据库用户权限,确保你的 Logto 数据库中的用户具有 `admin` 角色,以便创建角色。
|
88
87
|
|
89
|
-
- 在第三方数据库例如 `Neon` 上执行`logto db seed
|
90
|
-
尝试使用`logto db seed --encrypt-base-role`命令。
|
88
|
+
- 在第三方数据库例如 `Neon` 上执行`logto db seed`出错:尝试使用`logto db seed --encrypt-base-role`命令。
|
91
89
|
|
92
|
-
-
|
93
|
-
请尝试使用`--skip-seed`参数跳过播种。
|
90
|
+
- 数据库播种失败:请尝试使用`--skip-seed`参数跳过播种。
|
94
91
|
|
95
|
-
- `Error: role xxx already exists
|
96
|
-
在数据库中删除已存在的角色即可。
|
92
|
+
- `Error: role xxx already exists`:在数据库中删除已存在的角色即可。
|
97
93
|
|
98
|
-
-
|
99
|
-
请尝试使用` npx @logto/cli db alteration deploy $version`命令 (例如`npx @logto/cli db alteration deploy 1.22.0`)
|
94
|
+
- 版本升级后,数据库迁移失败:请尝试使用` npx @logto/cli db alteration deploy $version`命令 (例如`npx @logto/cli db alteration deploy 1.22.0`)
|
100
95
|
|
101
|
-
- 我使用 docker 部署
|
102
|
-
在容器中执行自定义命令:`sh -c "npm run cli db seed -- --swe --encrypt-base-role" && npx @logto/cli db alteration deploy $version && npm start`
|
96
|
+
- 我使用 docker 部署 希望一键升级:在容器中执行自定义命令:`sh -c "npm run cli db seed -- --swe --encrypt-base-role" && npx @logto/cli db alteration deploy $version && npm start`
|
103
97
|
|
104
98
|
<Callout type={'info'}>部署成功后,用户将可以通过 Logto 身份认证并使用 LobeChat。</Callout>
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Configuration of Microsoft Entra ID Authentication Service for LobeChat
|
3
3
|
description: >-
|
4
|
-
Learn how to configure Microsoft Entra ID Authentication Service for LobeChat,
|
5
|
-
|
6
|
-
integration.
|
4
|
+
Learn how to configure Microsoft Entra ID Authentication Service for LobeChat, create applications, add users, and set up environment variables for seamless integration.
|
5
|
+
|
7
6
|
tags:
|
8
7
|
- Microsoft Entra ID
|
9
8
|
- Authentication Service
|
@@ -1,8 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Configure Wechat Authentication Service in LobeChat
|
3
3
|
description: >-
|
4
|
-
Learn how to configure Wechat authentication service in LobeChat, including
|
5
|
-
|
4
|
+
Learn how to configure Wechat authentication service in LobeChat, including creating a new Wechat App, setting permissions, and environment variables.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- Wechat Authentication
|
8
8
|
- Wechat App
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Configure ZITADEL Authentication Service for LobeChat
|
3
3
|
description: >-
|
4
|
-
Learn how to configure ZITADEL Authentication Service for LobeChat deployment,
|
5
|
-
|
6
|
-
enabling single sign-on (SSO).
|
4
|
+
Learn how to configure ZITADEL Authentication Service for LobeChat deployment, including creating ZITADEL applications, setting up environment variables, and enabling single sign-on (SSO).
|
5
|
+
|
7
6
|
tags:
|
8
7
|
- ZITADEL Authentication
|
9
8
|
- LobeChat Deployment
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: LobeChat Authentication Service Configuration
|
3
3
|
description: >-
|
4
|
-
Learn how to configure external authentication services using Clerk or Next
|
5
|
-
|
6
|
-
services include Auth0, Azure ID, etc.
|
4
|
+
Learn how to configure external authentication services using Clerk or Next Auth for centralized user authorization management. Supported authentication services include Auth0, Azure ID, etc.
|
5
|
+
|
7
6
|
tags:
|
8
7
|
- Authentication Service
|
9
8
|
- Next Auth
|
@@ -38,7 +38,8 @@ LobeChat Desktop can connect to your self-hosted LobeChat instance, allowing you
|
|
38
38
|
Before connecting the desktop to your self-hosted instance, ensure that your self-hosted instance is correctly configured with the OIDC-related environment variables.
|
39
39
|
|
40
40
|
<Callout>
|
41
|
-
Please ensure that your self-hosted instance version is 1.83.6 or higher to support desktop
|
41
|
+
Please ensure that your self-hosted instance version is 1.83.6 or higher to support desktop
|
42
|
+
connection features.
|
42
43
|
</Callout>
|
43
44
|
|
44
45
|
#### OIDC Environment Variable Configuration
|
@@ -1,9 +1,8 @@
|
|
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,
|
5
|
-
|
6
|
-
disabling features for specific user groups or environments as needed.
|
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
|
+
|
7
6
|
tags:
|
8
7
|
- LobeChat
|
9
8
|
- 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
|
5
|
-
|
4
|
+
Explore LobeChat's file upload and knowledge base management features with core components.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- LobeChat
|
8
8
|
- File Upload
|
@@ -45,7 +45,8 @@ S3 (or S3-compatible storage services) is used for storing uploaded files.
|
|
45
45
|
OpenAI's Embedding service is used to convert text into vector representations.
|
46
46
|
|
47
47
|
<Callout type={'info'}>
|
48
|
-
LobeChat currently uses OpenAI's `text-embedding-3-small` model by default. Ensure your API Key
|
48
|
+
LobeChat currently uses OpenAI's `text-embedding-3-small` model by default. Ensure your API Key
|
49
|
+
has access to this model.
|
49
50
|
</Callout>
|
50
51
|
|
51
52
|
- **Purpose**: Generate vector representations for semantic search
|
@@ -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
|
5
|
-
|
4
|
+
Learn how to customize the model list in LobeChat for deployment with the syntax and extension capabilities
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- LobeChat
|
8
8
|
- model customization
|
@@ -19,6 +19,7 @@ You can use `+` to add a model, `-` to hide a model, and use `model name->deploy
|
|
19
19
|
```text
|
20
20
|
id->deploymentName=displayName<maxToken:vision:reasoning:search:fc:file:imageOutput>,model2,model3
|
21
21
|
```
|
22
|
+
|
22
23
|
The deploymentName `->deploymentName` can be omitted, and it defaults to the latest model version. Currently, the model service providers that support `->deploymentName` are: Azure, Volcengine and Qwen.
|
23
24
|
|
24
25
|
For example: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo`
|
@@ -47,11 +48,11 @@ Examples are as follows:
|
|
47
48
|
|
48
49
|
Currently supported extension capabilities are:
|
49
50
|
|
50
|
-
| ---
|
51
|
-
|
|
52
|
-
| `fc`
|
53
|
-
| `vision`
|
54
|
-
| `imageOutput`
|
55
|
-
| `reasoning`
|
56
|
-
| `search`
|
57
|
-
| `file`
|
51
|
+
| --- | Description |
|
52
|
+
| ------------- | -------------------------------------------------------- |
|
53
|
+
| `fc` | Function Calling |
|
54
|
+
| `vision` | Image Recognition |
|
55
|
+
| `imageOutput` | Image Generation |
|
56
|
+
| `reasoning` | Support Reasoning |
|
57
|
+
| `search` | Support Web Search |
|
58
|
+
| `file` | File Upload (a bit hacky, not recommended for daily use) |
|
@@ -18,7 +18,8 @@ LobeChat 支持在部署时自定义模型列表,详情请参考 [模型提供
|
|
18
18
|
```text
|
19
19
|
id->deploymentName=displayName<maxToken:vision:reasoning:search:fc:file:imageOutput>,model2,model3
|
20
20
|
```
|
21
|
-
|
21
|
+
|
22
|
+
部署名`->deploymentName`可以省略,默认为最新版本的模型。当前支持`->deploymentName`的模型服务商有:Azure、Volcengine 和 Qwen。
|
22
23
|
|
23
24
|
例如: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo`
|
24
25
|
|
@@ -46,11 +47,11 @@ id->deploymentName=displayName<maxToken:vision:reasoning:search:fc:file:imageOut
|
|
46
47
|
|
47
48
|
目前支持的扩展能力有:
|
48
49
|
|
49
|
-
| ---
|
50
|
-
|
|
51
|
-
| `fc`
|
52
|
-
| `vision`
|
53
|
-
| `imageOutput`
|
54
|
-
| `reasoning`
|
55
|
-
| `search`
|
56
|
-
| `file`
|
50
|
+
| --- | 描述 |
|
51
|
+
| ------------- | ---------------------- |
|
52
|
+
| `fc` | 函数调用(function calling) |
|
53
|
+
| `vision` | 视觉识别 |
|
54
|
+
| `imageOutput` | 图像生成 |
|
55
|
+
| `reasoning` | 支持推理 |
|
56
|
+
| `search` | 支持联网搜索 |
|
57
|
+
| `file` | 文件上传(比较 hack,不建议日常使用) |
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Observability and Tracing for LobeChat
|
3
3
|
description: >-
|
4
|
-
Enhance your LobeChat applications with open-source observability and tracing
|
5
|
-
|
6
|
-
request to optimize and debug your chats.
|
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
|
+
|
7
6
|
tags:
|
8
7
|
- Observability
|
9
8
|
- Tracing
|
@@ -1,10 +1,10 @@
|
|
1
1
|
---
|
2
2
|
title: >-
|
3
|
-
Configuring Online Search Functionality - Enhancing AI's Ability to Access Web
|
4
|
-
|
3
|
+
Configuring Online Search Functionality - Enhancing AI's Ability to Access Web Information
|
4
|
+
|
5
5
|
description: >-
|
6
|
-
Learn how to configure the SearXNG online search functionality for LobeChat,
|
7
|
-
|
6
|
+
Learn how to configure the SearXNG online search functionality for LobeChat, enabling AI to access the latest web information.
|
7
|
+
|
8
8
|
tags:
|
9
9
|
- Online Search
|
10
10
|
- SearXNG
|
@@ -17,7 +17,9 @@ tags:
|
|
17
17
|
LobeChat supports configuring online search functionality for AI, allowing it to access the latest web information and provide more accurate and timely responses. The online search feature is based on the [SearXNG](https://github.com/searxng/searxng) search engine, which is a privacy-respecting metasearch engine that aggregates results from multiple search engines.
|
18
18
|
|
19
19
|
<Callout type={'info'}>
|
20
|
-
SearXNG is an open-source metasearch engine that can be self-hosted or accessed via public
|
20
|
+
SearXNG is an open-source metasearch engine that can be self-hosted or accessed via public
|
21
|
+
instances. By configuring SearXNG, LobeChat enables AI to retrieve the latest internet
|
22
|
+
information, allowing it to answer time-sensitive questions and provide up-to-date news.
|
21
23
|
</Callout>
|
22
24
|
|
23
25
|
# Core Environment Variables
|
@@ -34,16 +36,15 @@ This URL should point to a functional SearXNG instance. You can choose to self-h
|
|
34
36
|
|
35
37
|
You can find publicly available SearXNG instances in the [SearXNG instance list](https://searx.space/). Choose an instance that is fast and reliable, and then configure its URL in LobeChat.
|
36
38
|
|
37
|
-
> Note that the `searxng` you use must have `json` output enabled; otherwise, the `lobe-chat` call will result in an error.
|
38
|
-
> If self-hosting, find the `searxng` configuration file and add `json` as shown below.
|
39
|
+
> Note that the `searxng` you use must have `json` output enabled; otherwise, the `lobe-chat` call will result in an error. If self-hosting, find the `searxng` configuration file and add `json` as shown below.
|
39
40
|
|
40
41
|
```bash
|
41
42
|
$ vi searxng/settings.yml
|
42
43
|
...
|
43
44
|
search:
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
formats:
|
46
|
+
- html
|
47
|
+
- json
|
47
48
|
```
|
48
49
|
|
49
50
|
# Verifying Online Search Functionality
|
@@ -13,7 +13,8 @@ tags:
|
|
13
13
|
LobeChat 支持为 AI 配置联网搜索功能,这使得 AI 能够获取最新的网络信息,从而提供更准确、更及时的回答。联网搜索功能基于 [SearXNG](https://github.com/searxng/searxng) 搜索引擎,它是一个尊重隐私的元搜索引擎,可以聚合多个搜索引擎的结果。
|
14
14
|
|
15
15
|
<Callout type={'info'}>
|
16
|
-
SearXNG 是一个开源的元搜索引擎,可以自行部署,也可以使用公共实例。通过配置 SearXNG,LobeChat
|
16
|
+
SearXNG 是一个开源的元搜索引擎,可以自行部署,也可以使用公共实例。通过配置 SearXNG,LobeChat
|
17
|
+
可以让 AI 获取最新的互联网信息,从而回答时效性问题、提供最新资讯。
|
17
18
|
</Callout>
|
18
19
|
|
19
20
|
# 核心环境变量
|
@@ -30,16 +31,15 @@ SEARXNG_URL=https://searxng-instance.com
|
|
30
31
|
|
31
32
|
您可以在 [SearXNG 实例列表](https://searx.space/) 中找到公开可用的 SearXNG 实例。选择一个响应速度快、可靠性高的实例,然后将其 URL 配置到 LobeChat 中。
|
32
33
|
|
33
|
-
> 注意,使用的 `searxng` 必须开启 `json` 输出,否则 `lobe-chat`
|
34
|
-
> 如果是自托管,类似下面这样,找到 `searxng` 的配置文件,追加 `json` 即可。
|
34
|
+
> 注意,使用的 `searxng` 必须开启 `json` 输出,否则 `lobe-chat` 调用会报错。如果是自托管,类似下面这样,找到 `searxng` 的配置文件,追加 `json` 即可。
|
35
35
|
|
36
36
|
```bash
|
37
37
|
$ vi searxng/settings.yml
|
38
38
|
...
|
39
39
|
search:
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
formats:
|
41
|
+
- html
|
42
|
+
- json
|
43
43
|
```
|
44
44
|
|
45
45
|
# 验证联网搜索功能
|
@@ -47,7 +47,7 @@ search:
|
|
47
47
|
配置完成后,您可以通过以下步骤验证联网搜索功能是否正常工作:
|
48
48
|
|
49
49
|
1. 重启 LobeChat 服务
|
50
|
-
2. 启动一个新的聊天,启动智能联网,之后向 AI 提问一个需要最新信息的问题,例如:"今天的实时金价是多少?"或"最近的重大新闻有哪些?"
|
50
|
+
2. 启动一个新的聊天,启动智能联网,之后向 AI 提问一个需要最新信息的问题,例如:"今天的实时金价是多少?" 或 "最近的重大新闻有哪些?"
|
51
51
|
3. 观察 AI 是否能够返回基于互联网搜索的最新信息
|
52
52
|
|
53
53
|
如果 AI 能够回答这些时效性问题,说明联网搜索功能已经成功配置。
|
@@ -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
|
5
|
-
|
4
|
+
Detailed steps to configure Tencent Cloud COS storage service for smooth file storage.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- Tencent Cloud COS
|
8
8
|
- S3 Storage
|
@@ -1,9 +1,8 @@
|
|
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.
|
5
|
-
|
6
|
-
keyVaults and languageModel.
|
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
|
+
|
7
6
|
tags:
|
8
7
|
- Share Settings
|
9
8
|
- URL Import
|
@@ -1,9 +1,8 @@
|
|
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
|
5
|
-
|
6
|
-
for a seamless deployment process.
|
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
|
+
|
7
6
|
tags:
|
8
7
|
- Upstream Sync
|
9
8
|
- Vercel Deployment
|
@@ -1,8 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: LobeChat WebRTC Sync - Real-Time Data Sharing
|
3
3
|
description: >-
|
4
|
-
Explore LobeChat's WebRTC sync for real-time data sharing and privacy without
|
5
|
-
|
4
|
+
Explore LobeChat's WebRTC sync for real-time data sharing and privacy without servers.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- WebRTC
|
8
8
|
- LobeChat
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Integrating Analytics in LobeChat
|
3
3
|
description: >-
|
4
|
-
Learn how to configure environment variables for Vercel Analytics, Google
|
5
|
-
|
6
|
-
collection and analysis.
|
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
|
+
|
7
6
|
tags:
|
8
7
|
- Data Analytics
|
9
8
|
- LobeChat
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: LobeChat Authentication Service Environment Variables
|
3
3
|
description: >-
|
4
|
-
Explore the essential environment variables for configuring authentication
|
5
|
-
|
6
|
-
provider-specific details.
|
4
|
+
Explore the essential environment variables for configuring authentication services in LobeChat, including OAuth SSO, NextAuth settings, and provider-specific details.
|
5
|
+
|
7
6
|
tags:
|
8
7
|
- Authentication Service
|
9
8
|
- OAuth SSO
|
@@ -1,9 +1,8 @@
|
|
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
|
5
|
-
|
6
|
-
configuration.
|
4
|
+
Learn about the common environment variables used to customize LobeChat deployment, including access code, OAuth SSO, base path, and default agent configuration.
|
5
|
+
|
7
6
|
tags:
|
8
7
|
- LobeChat
|
9
8
|
- environment variables
|
@@ -121,8 +120,8 @@ For specific content, please refer to the [Feature Flags](/docs/self-hosting/adv
|
|
121
120
|
<Callout type="info">
|
122
121
|
If you're using Docker Desktop on Windows or macOS, it relies on a virtual machine. In this setup,
|
123
122
|
`localhost` / `127.0.0.1` refers to the localhost of the container itself. In such cases, please
|
124
|
-
try using `host.docker.internal` instead of `localhost`.
|
125
|
-
|
123
|
+
try using `host.docker.internal` instead of `localhost`. Use `http://user:password@127.0.0.1:7890`
|
124
|
+
to connect to an authenticated proxy server.
|
126
125
|
</Callout>
|
127
126
|
|
128
127
|
### `ENABLE_PROXY_DNS`
|
@@ -116,8 +116,8 @@ LobeChat 在部署时提供了一些额外的配置项,你可以使用环境
|
|
116
116
|
|
117
117
|
<Callout type="info">
|
118
118
|
`Docker Desktop` 在 `Windows `和 `macOS `上走的是虚拟机方案,如果是 `localhost` / `127.0.0.1`
|
119
|
-
是走到自身容器的 `localhost`,此时请尝试用 `host.docker.internal` 替代 `localhost`。
|
120
|
-
|
119
|
+
是走到自身容器的 `localhost`,此时请尝试用 `host.docker.internal` 替代 `localhost`。 使用
|
120
|
+
`http://user:password@127.0.0.1:7890` 来连接到带认证的代理服务器。
|
121
121
|
</Callout>
|
122
122
|
|
123
123
|
### `ENABLE_PROXY_DNS`
|
@@ -1,9 +1,8 @@
|
|
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
|
5
|
-
|
6
|
-
Perplexity AI, Anthropic AI, Mistral AI, Groq AI, OpenRouter AI, and 01.AI.
|
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
|
+
|
7
6
|
tags:
|
8
7
|
- Model Service Providers
|
9
8
|
- Environment Variables
|
@@ -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
|
5
|
-
|
4
|
+
Learn how to configure S3 storage service to support multimodal AI sessions and image uploads.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- S3 Storage
|
8
8
|
- Multimodal AI
|
@@ -88,9 +88,7 @@ LobeChat supports multimodal AI sessions, including the ability to upload unstru
|
|
88
88
|
- Default: undefined
|
89
89
|
- Example: `1`
|
90
90
|
|
91
|
-
When set to `1`, LobeChat will convert images to base64 encoding before
|
92
|
-
uploading them to the LLM model. When encountering the following error,
|
93
|
-
please consider configuring this environment variable to `1`:
|
91
|
+
When set to `1`, LobeChat will convert images to base64 encoding before uploading them to the LLM model. When encountering the following error, please consider configuring this environment variable to `1`:
|
94
92
|
|
95
93
|
```log
|
96
94
|
Route: [xai] ProviderBizError: Fetching images over plain http:// is not supported.
|
@@ -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
|
5
|
-
|
4
|
+
Learn how to customize LobeChat configuration using environment variables for additional features and options.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- LobeChat
|
8
8
|
- Environment Variables
|
@@ -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
|
5
|
-
|
4
|
+
Learn how to configure Azure OpenAI for LobeChat, including interface configuration, and deployment settings.
|
5
|
+
|
6
6
|
tags:
|
7
7
|
- Azure OpenAI
|
8
8
|
- LobeChat
|
@@ -1,9 +1,8 @@
|
|
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
|
5
|
-
|
6
|
-
system.
|
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
|
+
|
7
6
|
tags:
|
8
7
|
- Ollama integration
|
9
8
|
- LobeChat configuration
|