@lobehub/chat 1.44.3 → 1.45.0
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/.remarkrc.mdx.js +6 -0
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +9 -0
- package/docs/changelog/2023-09-09-plugin-system.mdx +5 -0
- package/docs/changelog/2023-09-09-plugin-system.zh-CN.mdx +5 -0
- package/docs/changelog/2023-11-14-gpt4-vision.mdx +6 -0
- package/docs/changelog/2023-11-14-gpt4-vision.zh-CN.mdx +6 -0
- package/docs/changelog/2023-11-19-tts-stt.mdx +6 -0
- package/docs/changelog/2023-11-19-tts-stt.zh-CN.mdx +7 -0
- package/docs/changelog/2023-12-22-dalle-3.mdx +6 -0
- package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +4 -0
- package/docs/changelog/2024-02-08-sso-oauth.mdx +6 -0
- package/docs/changelog/2024-02-08-sso-oauth.zh-CN.mdx +6 -0
- package/docs/changelog/2024-02-14-ollama.mdx +6 -0
- package/docs/changelog/2024-02-14-ollama.zh-CN.mdx +5 -0
- package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +6 -0
- package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +5 -0
- package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +5 -0
- package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +4 -0
- package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +6 -0
- package/docs/changelog/2024-08-02-lobe-chat-database-docker.zh-CN.mdx +5 -0
- package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +6 -0
- package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.zh-CN.mdx +5 -0
- package/docs/changelog/2024-09-13-openai-o1-models.mdx +6 -0
- package/docs/changelog/2024-09-13-openai-o1-models.zh-CN.mdx +6 -0
- package/docs/changelog/2024-09-20-artifacts.mdx +6 -0
- package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +6 -0
- package/docs/changelog/2024-10-27-pin-assistant.mdx +5 -0
- package/docs/changelog/2024-10-27-pin-assistant.zh-CN.mdx +4 -0
- package/docs/changelog/2024-11-06-share-text-json.mdx +4 -0
- package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +4 -0
- package/docs/changelog/2024-11-25-november-providers.mdx +7 -0
- package/docs/changelog/2024-11-25-november-providers.zh-CN.mdx +7 -0
- package/docs/changelog/2024-11-27-forkable-chat.mdx +4 -0
- package/docs/changelog/2024-11-27-forkable-chat.zh-CN.mdx +5 -0
- package/docs/changelog/2025-01-03-user-profile.mdx +5 -0
- package/docs/changelog/2025-01-03-user-profile.zh-CN.mdx +4 -1
- package/docs/self-hosting/advanced/auth/clerk.mdx +25 -41
- package/docs/self-hosting/advanced/auth/clerk.zh-CN.mdx +23 -37
- package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +31 -58
- package/docs/self-hosting/advanced/auth/next-auth/auth0.zh-CN.mdx +30 -57
- package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +38 -38
- package/docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx +37 -38
- package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +26 -31
- package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +25 -30
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +74 -75
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +72 -73
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +24 -25
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +23 -24
- package/docs/self-hosting/advanced/auth/next-auth/github.mdx +46 -73
- package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +43 -70
- package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +28 -37
- package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +28 -37
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +36 -49
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +30 -43
- package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +13 -14
- package/docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx +14 -15
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +35 -69
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +34 -68
- package/docs/self-hosting/advanced/auth.mdx +14 -13
- package/docs/self-hosting/advanced/auth.zh-CN.mdx +15 -14
- package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +15 -15
- package/docs/self-hosting/advanced/knowledge-base.mdx +14 -3
- package/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx +12 -3
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +5 -5
- package/docs/self-hosting/advanced/s3/cloudflare-r2.mdx +52 -81
- package/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx +51 -80
- package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +20 -34
- package/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx +28 -43
- package/docs/self-hosting/advanced/s3.mdx +30 -34
- package/docs/self-hosting/advanced/s3.zh-CN.mdx +28 -33
- package/docs/self-hosting/advanced/settings-url-share.mdx +6 -6
- package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +19 -19
- package/docs/self-hosting/advanced/upstream-sync.mdx +73 -89
- package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +71 -87
- package/docs/self-hosting/advanced/webrtc.mdx +14 -21
- package/docs/self-hosting/advanced/webrtc.zh-CN.mdx +19 -26
- package/docs/self-hosting/environment-variables/analytics.zh-CN.mdx +0 -3
- package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +1 -1
- package/docs/self-hosting/environment-variables/basic.mdx +13 -13
- package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +15 -15
- package/docs/self-hosting/environment-variables/model-provider.mdx +1 -1
- package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +1 -1
- package/docs/self-hosting/environment-variables/s3.mdx +3 -4
- package/docs/self-hosting/environment-variables/s3.zh-CN.mdx +5 -7
- package/docs/self-hosting/environment-variables.mdx +8 -4
- package/docs/self-hosting/environment-variables.zh-CN.mdx +4 -0
- package/docs/self-hosting/examples/azure-openai.mdx +9 -12
- package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +8 -11
- package/docs/self-hosting/examples/ollama.mdx +8 -7
- package/docs/self-hosting/examples/ollama.zh-CN.mdx +8 -7
- package/docs/self-hosting/platform/alibaba-cloud.mdx +5 -7
- package/docs/self-hosting/platform/alibaba-cloud.zh-CN.mdx +5 -7
- package/docs/self-hosting/platform/btpanel.mdx +3 -2
- package/docs/self-hosting/platform/btpanel.zh-CN.mdx +3 -3
- package/docs/self-hosting/platform/docker-compose.mdx +75 -85
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +75 -85
- package/docs/self-hosting/platform/docker.mdx +87 -92
- package/docs/self-hosting/platform/docker.zh-CN.mdx +96 -115
- package/docs/self-hosting/platform/netlify.mdx +44 -94
- package/docs/self-hosting/platform/netlify.zh-CN.mdx +40 -90
- package/docs/self-hosting/platform/railway.mdx +6 -7
- package/docs/self-hosting/platform/railway.zh-CN.mdx +6 -7
- package/docs/self-hosting/platform/repocloud.mdx +6 -7
- package/docs/self-hosting/platform/repocloud.zh-CN.mdx +6 -7
- package/docs/self-hosting/platform/sealos.mdx +6 -7
- package/docs/self-hosting/platform/sealos.zh-CN.mdx +6 -7
- package/docs/self-hosting/platform/vercel.mdx +7 -8
- package/docs/self-hosting/platform/vercel.zh-CN.mdx +7 -8
- package/docs/self-hosting/platform/zeabur.mdx +29 -32
- package/docs/self-hosting/platform/zeabur.zh-CN.mdx +29 -32
- package/docs/self-hosting/server-database/docker-compose.mdx +44 -71
- package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +44 -71
- package/docs/self-hosting/server-database/docker.mdx +84 -88
- package/docs/self-hosting/server-database/docker.zh-CN.mdx +87 -91
- package/docs/self-hosting/server-database/dokploy.mdx +18 -1
- package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +84 -68
- package/docs/self-hosting/server-database/repocloud.mdx +7 -9
- package/docs/self-hosting/server-database/repocloud.zh-CN.mdx +9 -11
- package/docs/self-hosting/server-database/vercel.mdx +158 -243
- package/docs/self-hosting/server-database/vercel.zh-CN.mdx +137 -205
- package/docs/self-hosting/server-database/zeabur.mdx +21 -23
- package/docs/self-hosting/server-database/zeabur.zh-CN.mdx +20 -22
- package/docs/self-hosting/server-database.mdx +34 -36
- package/docs/self-hosting/server-database.zh-CN.mdx +34 -37
- package/docs/self-hosting/start.mdx +1 -4
- package/docs/self-hosting/start.zh-CN.mdx +1 -1
- package/docs/usage/agents/agent-organization.mdx +5 -21
- package/docs/usage/agents/agent-organization.zh-CN.mdx +5 -21
- package/docs/usage/agents/concepts.mdx +4 -4
- package/docs/usage/agents/concepts.zh-CN.mdx +4 -4
- package/docs/usage/agents/custom-agent.mdx +2 -2
- package/docs/usage/agents/custom-agent.zh-CN.mdx +2 -2
- package/docs/usage/agents/model.mdx +4 -4
- package/docs/usage/agents/model.zh-CN.mdx +6 -6
- package/docs/usage/agents/prompt.mdx +5 -6
- package/docs/usage/agents/prompt.zh-CN.mdx +5 -6
- package/docs/usage/agents/topics.mdx +2 -2
- package/docs/usage/agents/topics.zh-CN.mdx +2 -2
- package/docs/usage/features/agent-market.mdx +2 -2
- package/docs/usage/features/agent-market.zh-CN.mdx +2 -2
- package/docs/usage/features/auth.mdx +1 -5
- package/docs/usage/features/auth.zh-CN.mdx +1 -5
- package/docs/usage/features/database.mdx +1 -5
- package/docs/usage/features/database.zh-CN.mdx +1 -5
- package/docs/usage/features/local-llm.mdx +2 -6
- package/docs/usage/features/local-llm.zh-CN.mdx +2 -6
- package/docs/usage/features/mobile.mdx +1 -5
- package/docs/usage/features/mobile.zh-CN.mdx +1 -5
- package/docs/usage/features/multi-ai-providers.mdx +3 -11
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +3 -11
- package/docs/usage/features/plugin-system.mdx +9 -10
- package/docs/usage/features/plugin-system.zh-CN.mdx +9 -10
- package/docs/usage/features/pwa.mdx +11 -25
- package/docs/usage/features/pwa.zh-CN.mdx +11 -25
- package/docs/usage/features/text-to-image.mdx +2 -2
- package/docs/usage/features/text-to-image.zh-CN.mdx +2 -2
- package/docs/usage/features/theme.mdx +1 -6
- package/docs/usage/features/theme.zh-CN.mdx +1 -6
- package/docs/usage/features/tts.mdx +3 -7
- package/docs/usage/features/tts.zh-CN.mdx +3 -7
- package/docs/usage/features/vision.mdx +2 -2
- package/docs/usage/features/vision.zh-CN.mdx +2 -2
- package/docs/usage/foundation/basic.mdx +7 -18
- package/docs/usage/foundation/basic.zh-CN.mdx +6 -16
- package/docs/usage/foundation/share.mdx +3 -13
- package/docs/usage/foundation/share.zh-CN.mdx +3 -13
- package/docs/usage/foundation/text2image.mdx +3 -12
- package/docs/usage/foundation/text2image.zh-CN.mdx +3 -12
- package/docs/usage/foundation/translate.mdx +3 -13
- package/docs/usage/foundation/translate.zh-CN.mdx +3 -13
- package/docs/usage/foundation/tts-stt.mdx +3 -12
- package/docs/usage/foundation/tts-stt.zh-CN.mdx +3 -12
- package/docs/usage/foundation/vision.mdx +4 -16
- package/docs/usage/foundation/vision.zh-CN.mdx +4 -16
- package/docs/usage/plugins/basic-usage.mdx +7 -30
- package/docs/usage/plugins/basic-usage.zh-CN.mdx +7 -30
- package/docs/usage/plugins/development.mdx +30 -78
- package/docs/usage/plugins/development.zh-CN.mdx +31 -79
- package/docs/usage/plugins/store.mdx +2 -10
- package/docs/usage/plugins/store.zh-CN.mdx +2 -10
- package/docs/usage/providers/ai21.mdx +17 -33
- package/docs/usage/providers/ai21.zh-CN.mdx +17 -33
- package/docs/usage/providers/ai360.mdx +17 -33
- package/docs/usage/providers/ai360.zh-CN.mdx +20 -36
- package/docs/usage/providers/anthropic.mdx +23 -45
- package/docs/usage/providers/anthropic.zh-CN.mdx +22 -44
- package/docs/usage/providers/azure.mdx +21 -51
- package/docs/usage/providers/azure.zh-CN.mdx +19 -48
- package/docs/usage/providers/baichuan.mdx +16 -34
- package/docs/usage/providers/baichuan.zh-CN.mdx +15 -33
- package/docs/usage/providers/bedrock.mdx +38 -87
- package/docs/usage/providers/bedrock.zh-CN.mdx +37 -86
- package/docs/usage/providers/cloudflare.mdx +25 -48
- package/docs/usage/providers/cloudflare.zh-CN.mdx +24 -45
- package/docs/usage/providers/deepseek.mdx +25 -51
- package/docs/usage/providers/deepseek.zh-CN.mdx +24 -50
- package/docs/usage/providers/fireworksai.mdx +23 -43
- package/docs/usage/providers/fireworksai.zh-CN.mdx +21 -41
- package/docs/usage/providers/gemini.mdx +20 -46
- package/docs/usage/providers/gemini.zh-CN.mdx +20 -46
- package/docs/usage/providers/giteeai.mdx +24 -45
- package/docs/usage/providers/giteeai.zh-CN.mdx +22 -43
- package/docs/usage/providers/github.mdx +19 -45
- package/docs/usage/providers/github.zh-CN.mdx +19 -44
- package/docs/usage/providers/groq.mdx +12 -29
- package/docs/usage/providers/groq.zh-CN.mdx +11 -28
- package/docs/usage/providers/hunyuan.mdx +19 -39
- package/docs/usage/providers/hunyuan.zh-CN.mdx +18 -38
- package/docs/usage/providers/internlm.mdx +21 -38
- package/docs/usage/providers/internlm.zh-CN.mdx +19 -36
- package/docs/usage/providers/minimax.mdx +24 -50
- package/docs/usage/providers/minimax.zh-CN.mdx +22 -48
- package/docs/usage/providers/mistral.mdx +21 -39
- package/docs/usage/providers/mistral.zh-CN.mdx +20 -38
- package/docs/usage/providers/moonshot.mdx +20 -38
- package/docs/usage/providers/moonshot.zh-CN.mdx +19 -37
- package/docs/usage/providers/novita.mdx +20 -43
- package/docs/usage/providers/novita.zh-CN.mdx +19 -42
- package/docs/usage/providers/ollama/gemma.mdx +12 -29
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +12 -30
- package/docs/usage/providers/ollama/qwen.mdx +17 -32
- package/docs/usage/providers/ollama/qwen.zh-CN.mdx +12 -27
- package/docs/usage/providers/ollama.mdx +67 -99
- package/docs/usage/providers/ollama.zh-CN.mdx +67 -99
- package/docs/usage/providers/openai.mdx +42 -56
- package/docs/usage/providers/openai.zh-CN.mdx +39 -52
- package/docs/usage/providers/openrouter.mdx +48 -84
- package/docs/usage/providers/openrouter.zh-CN.mdx +31 -67
- package/docs/usage/providers/perplexity.mdx +16 -34
- package/docs/usage/providers/perplexity.zh-CN.mdx +16 -34
- package/docs/usage/providers/qwen.mdx +26 -52
- package/docs/usage/providers/qwen.zh-CN.mdx +25 -51
- package/docs/usage/providers/sensenova.mdx +24 -45
- package/docs/usage/providers/sensenova.zh-CN.mdx +22 -43
- package/docs/usage/providers/siliconcloud.mdx +17 -33
- package/docs/usage/providers/siliconcloud.zh-CN.mdx +17 -33
- package/docs/usage/providers/spark.mdx +20 -40
- package/docs/usage/providers/spark.zh-CN.mdx +19 -39
- package/docs/usage/providers/stepfun.mdx +17 -35
- package/docs/usage/providers/stepfun.zh-CN.mdx +17 -35
- package/docs/usage/providers/taichu.mdx +16 -34
- package/docs/usage/providers/taichu.zh-CN.mdx +15 -33
- package/docs/usage/providers/togetherai.mdx +18 -40
- package/docs/usage/providers/togetherai.zh-CN.mdx +18 -40
- package/docs/usage/providers/upstage.mdx +18 -34
- package/docs/usage/providers/upstage.zh-CN.mdx +17 -33
- package/docs/usage/providers/wenxin.mdx +22 -42
- package/docs/usage/providers/wenxin.zh-CN.mdx +20 -40
- package/docs/usage/providers/xai.mdx +21 -38
- package/docs/usage/providers/xai.zh-CN.mdx +20 -37
- package/docs/usage/providers/zeroone.mdx +22 -48
- package/docs/usage/providers/zeroone.zh-CN.mdx +22 -48
- package/docs/usage/providers/zhipu.mdx +17 -35
- package/docs/usage/providers/zhipu.zh-CN.mdx +18 -34
- package/docs/usage/providers.mdx +1 -6
- package/docs/usage/providers.zh-CN.mdx +1 -6
- package/docs/usage/start.mdx +4 -18
- package/docs/usage/start.zh-CN.mdx +2 -19
- package/docs/usage/tools-calling/anthropic.mdx +18 -51
- package/docs/usage/tools-calling/anthropic.zh-CN.mdx +22 -55
- package/docs/usage/tools-calling/google.mdx +16 -23
- package/docs/usage/tools-calling/google.zh-CN.mdx +17 -24
- package/docs/usage/tools-calling/groq.mdx +9 -0
- package/docs/usage/tools-calling/groq.zh-CN.mdx +44 -70
- package/docs/usage/tools-calling/moonshot.mdx +9 -0
- package/docs/usage/tools-calling/openai.mdx +19 -44
- package/docs/usage/tools-calling/openai.zh-CN.mdx +20 -45
- package/docs/usage/tools-calling.mdx +9 -0
- package/docs/usage/tools-calling.zh-CN.mdx +60 -68
- package/package.json +42 -41
- package/scripts/mdxWorkflow/index.ts +7 -0
- package/src/app/(main)/(mobile)/me/(home)/features/Header.tsx +2 -1
- package/src/app/(main)/(mobile)/me/data/features/Header.tsx +1 -1
- package/src/app/(main)/(mobile)/me/profile/features/Header.tsx +1 -1
- package/src/app/(main)/(mobile)/me/settings/features/Header.tsx +1 -1
- package/src/app/(main)/@nav/_layout/Mobile.tsx +2 -1
- package/src/app/(main)/chat/(workspace)/@topic/features/SystemRole/SystemRoleContent.tsx +2 -1
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ByTimeMode/GroupItem.tsx +2 -2
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +2 -1
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/index.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/ChatHeaderTitle.tsx +2 -1
- package/src/app/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/index.tsx +1 -1
- package/src/app/(main)/chat/@session/_layout/Mobile/SessionHeader.tsx +2 -1
- package/src/app/(main)/chat/settings/_layout/Desktop/Header.tsx +1 -1
- package/src/app/(main)/chat/settings/_layout/Mobile/Header.tsx +1 -1
- package/src/app/(main)/discover/(detail)/provider/[slug]/features/InfoSidebar/SuggestionItem.tsx +8 -6
- package/src/app/(main)/discover/(list)/_layout/Desktop/Nav.tsx +1 -1
- package/src/app/(main)/discover/(list)/_layout/Mobile/Header.tsx +2 -1
- package/src/app/(main)/discover/_layout/Desktop/Header.tsx +1 -1
- package/src/app/(main)/discover/components/VirtuosoGridList/index.tsx +9 -5
- package/src/app/(main)/discover/search/_layout/Mobile/Header.tsx +1 -1
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +21 -13
- package/src/app/(main)/repos/[id]/evals/evaluation/EvaluationList/index.tsx +1 -1
- package/src/app/(main)/settings/sync/features/DeviceInfo/SystemIcon.tsx +2 -0
- package/src/components/Branding/ProductLogo/Custom.tsx +19 -20
- package/src/components/BrowserIcon/index.tsx +19 -30
- package/src/components/BubblesLoading/index.tsx +31 -23
- package/src/components/FunctionModal/createModalHooks.ts +6 -3
- package/src/components/StopLoading.tsx +10 -7
- package/src/features/ChatInput/Desktop/InputArea/index.tsx +2 -2
- package/src/features/InitClientDB/EnableModal.tsx +2 -2
- package/src/features/InitClientDB/{PGliteSVG.tsx → PGliteIcon.tsx} +17 -11
- package/src/features/ShareModal/ShareImage/index.tsx +32 -22
- package/src/features/ShareModal/ShareJSON/Preview.tsx +2 -2
- package/src/features/ShareModal/ShareJSON/index.tsx +49 -37
- package/src/features/ShareModal/ShareText/Preview.tsx +4 -1
- package/src/features/ShareModal/ShareText/index.tsx +49 -38
- package/src/features/ShareModal/index.tsx +1 -1
- package/src/features/ShareModal/style.ts +30 -0
- package/src/utils/colorUtils.ts +1 -1
- package/src/components/BrowserIcon/components/Brave.tsx +0 -56
- package/src/components/BrowserIcon/components/Chrome.tsx +0 -14
- package/src/components/BrowserIcon/components/Chromium.tsx +0 -14
- package/src/components/BrowserIcon/components/Edge.tsx +0 -36
- package/src/components/BrowserIcon/components/Firefox.tsx +0 -38
- package/src/components/BrowserIcon/components/Opera.tsx +0 -19
- package/src/components/BrowserIcon/components/Safari.tsx +0 -23
- package/src/components/BrowserIcon/components/Samsung.tsx +0 -21
@@ -14,20 +14,13 @@ tags:
|
|
14
14
|
|
15
15
|
# Share Conversation Records
|
16
16
|
|
17
|
-
<Image
|
18
|
-
alt={'Share Conversation'}
|
19
|
-
cover
|
20
|
-
src={'https://github.com/user-attachments/assets/00acc7d6-dc66-4998-b1c6-15238be4c3c8'}
|
21
|
-
/>
|
17
|
+
<Image alt={'Share Conversation'} cover src={'https://github.com/user-attachments/assets/00acc7d6-dc66-4998-b1c6-15238be4c3c8'} />
|
22
18
|
|
23
19
|
By clicking the `Share` button in the top right corner of the chat window, you can share the current conversation records with others. LobeChat supports two sharing methods: `Screenshot Sharing` and `ShareGPT Sharing`.
|
24
20
|
|
25
21
|
## Screenshot Sharing
|
26
22
|
|
27
|
-
<Image
|
28
|
-
alt={'Screenshot Sharing'}
|
29
|
-
src={'https://github.com/user-attachments/assets/ccea7b00-6f92-4213-82ea-88789ef6f3b3'}
|
30
|
-
/>
|
23
|
+
<Image alt={'Screenshot Sharing'} src={'https://github.com/user-attachments/assets/ccea7b00-6f92-4213-82ea-88789ef6f3b3'} />
|
31
24
|
|
32
25
|
The screenshot sharing feature will generate and save an image of the current conversation records, with the following options:
|
33
26
|
|
@@ -38,9 +31,6 @@ The screenshot sharing feature will generate and save an image of the current co
|
|
38
31
|
|
39
32
|
## ShareGPT
|
40
33
|
|
41
|
-
<Image
|
42
|
-
alt={'ShareGPT Sharing'}
|
43
|
-
src={'https://github.com/user-attachments/assets/dea7c748-36e6-4f1b-aa21-acee2bf70d7d'}
|
44
|
-
/>
|
34
|
+
<Image alt={'ShareGPT Sharing'} src={'https://github.com/user-attachments/assets/dea7c748-36e6-4f1b-aa21-acee2bf70d7d'} />
|
45
35
|
|
46
36
|
[ShareGPT](https://sharegpt.com/) is an AI conversation sharing platform that allows users to easily share their conversations with Large Language Models (LLMs). Users can generate a permanent link with just one click, making it convenient to share these conversations with friends or others. By integrating ShareGPT functionality, LobeChat can generate links for conversation records with just one click, making sharing easy.
|
@@ -11,20 +11,13 @@ tags:
|
|
11
11
|
|
12
12
|
# 分享会话记录
|
13
13
|
|
14
|
-
<Image
|
15
|
-
alt={'分享会话'}
|
16
|
-
cover
|
17
|
-
src={'https://github.com/user-attachments/assets/00acc7d6-dc66-4998-b1c6-15238be4c3c8'}
|
18
|
-
/>
|
14
|
+
<Image alt={'分享会话'} cover src={'https://github.com/user-attachments/assets/00acc7d6-dc66-4998-b1c6-15238be4c3c8'} />
|
19
15
|
|
20
16
|
通过会话窗口右上角的`分享`按钮,您可以将当前会话记录分享给其他人。LobeChat 支持两种分享方式:`截图分享`和 `ShareGPT 分享`。
|
21
17
|
|
22
18
|
## 截图分享
|
23
19
|
|
24
|
-
<Image
|
25
|
-
alt={'截图分享'}
|
26
|
-
src={'https://github.com/user-attachments/assets/ccea7b00-6f92-4213-82ea-88789ef6f3b3'}
|
27
|
-
/>
|
20
|
+
<Image alt={'截图分享'} src={'https://github.com/user-attachments/assets/ccea7b00-6f92-4213-82ea-88789ef6f3b3'} />
|
28
21
|
|
29
22
|
截图分享功能将生成当前会话记录的图片并保存,其选项说明如下:
|
30
23
|
|
@@ -35,9 +28,6 @@ tags:
|
|
35
28
|
|
36
29
|
## ShareGPT
|
37
30
|
|
38
|
-
<Image
|
39
|
-
alt={'ShareGPT 分享'}
|
40
|
-
src={'https://github.com/user-attachments/assets/dea7c748-36e6-4f1b-aa21-acee2bf70d7d'}
|
41
|
-
/>
|
31
|
+
<Image alt={'ShareGPT 分享'} src={'https://github.com/user-attachments/assets/dea7c748-36e6-4f1b-aa21-acee2bf70d7d'} />
|
42
32
|
|
43
33
|
[ShareGPT](https://sharegpt.com/) 是一个 AI 对话分享平台,允许用户便捷地分享他们与大型语言模型 (LLM) 的对话。用户只需点击即可生成永久链接,方便与朋友或其他人分享这些对话。LobeChat 通过集成 ShareGPT 功能,可以一键将对话记录生成链接,方便分享。
|
@@ -20,10 +20,7 @@ LobeChat supports text-to-image generation through a plugin mechanism. Currently
|
|
20
20
|
|
21
21
|
If you have configured the OpenAI API, you can enable the DALL-E plugin directly in the assistant interface and input prompts in the conversation for AI to generate images for you.
|
22
22
|
|
23
|
-
<Image
|
24
|
-
alt={'DALL-E Plugin'}
|
25
|
-
src={'https://github.com/user-attachments/assets/7b11b795-4dd3-4020-a9ba-a3723d5f1f28'}
|
26
|
-
/>
|
23
|
+
<Image alt={'DALL-E Plugin'} src={'https://github.com/user-attachments/assets/7b11b795-4dd3-4020-a9ba-a3723d5f1f28'} />
|
27
24
|
|
28
25
|
If the DALL-E plugin is not available, please check if the OpenAI API key has been correctly configured.
|
29
26
|
|
@@ -31,10 +28,7 @@ If the DALL-E plugin is not available, please check if the OpenAI API key has be
|
|
31
28
|
|
32
29
|
LobeChat also offers the Midjourney plugin, which generates images by calling the Midjourney API. Please install the Midjourney plugin in the plugin store beforehand.
|
33
30
|
|
34
|
-
<Image
|
35
|
-
alt={'Midjourney Plugin'}
|
36
|
-
src={'https://github.com/user-attachments/assets/5f526846-02cd-4dbc-b6e3-a603fa5ac8e7'}
|
37
|
-
/>
|
31
|
+
<Image alt={'Midjourney Plugin'} src={'https://github.com/user-attachments/assets/5f526846-02cd-4dbc-b6e3-a603fa5ac8e7'} />
|
38
32
|
|
39
33
|
<Callout type={'info'}>
|
40
34
|
info For plugin installation, please refer to [Plugin Usage](/docs/usage/plugins/basic-usage)
|
@@ -42,7 +36,4 @@ LobeChat also offers the Midjourney plugin, which generates images by calling th
|
|
42
36
|
|
43
37
|
When using the Midjourney plugin for the first time, you will need to fill in your Midjourney API key in the plugin settings.
|
44
38
|
|
45
|
-
<Image
|
46
|
-
alt={'Midjourney Plugin Settings'}
|
47
|
-
src={'https://github.com/user-attachments/assets/a5d7a543-aec5-457e-a36c-aa1f82f7bc8a'}
|
48
|
-
/>
|
39
|
+
<Image alt={'Midjourney Plugin Settings'} src={'https://github.com/user-attachments/assets/a5d7a543-aec5-457e-a36c-aa1f82f7bc8a'} />
|
@@ -18,10 +18,7 @@ LobeChat 通过插件机制支持文本生成图片功能。目前,LobeChat
|
|
18
18
|
|
19
19
|
如果您已配置 OpenAI API,可以直接在助手界面启用 DALL-E 插件,并在对话中输入提示词,让 AI 为您生成图片。
|
20
20
|
|
21
|
-
<Image
|
22
|
-
alt={'DALL-E 插件'}
|
23
|
-
src={'https://github.com/user-attachments/assets/7b11b795-4dd3-4020-a9ba-a3723d5f1f28'}
|
24
|
-
/>
|
21
|
+
<Image alt={'DALL-E 插件'} src={'https://github.com/user-attachments/assets/7b11b795-4dd3-4020-a9ba-a3723d5f1f28'} />
|
25
22
|
|
26
23
|
如果 DALL-E 插件不可用,请检查 OpenAI API 密钥是否已正确配置。
|
27
24
|
|
@@ -29,16 +26,10 @@ LobeChat 通过插件机制支持文本生成图片功能。目前,LobeChat
|
|
29
26
|
|
30
27
|
LobeChat 还提供 Midjourney 插件,通过 API 调用 Midjourney 生成图片。请提前在插件商店中安装 Midjourney 插件。
|
31
28
|
|
32
|
-
<Image
|
33
|
-
alt={'Midjourney 插件'}
|
34
|
-
src={'https://github.com/user-attachments/assets/5f526846-02cd-4dbc-b6e3-a603fa5ac8e7'}
|
35
|
-
/>
|
29
|
+
<Image alt={'Midjourney 插件'} src={'https://github.com/user-attachments/assets/5f526846-02cd-4dbc-b6e3-a603fa5ac8e7'} />
|
36
30
|
|
37
31
|
<Callout type={'info'}>插件安装请参考[插件使用](/zh/docs/usage/plugins/basic-usage)</Callout>
|
38
32
|
|
39
33
|
首次使用 Midjourney 插件时,您需要在插件设置中填写您的 Midjourney API 密钥。
|
40
34
|
|
41
|
-
<Image
|
42
|
-
alt={'Midjourney 插件设置'}
|
43
|
-
src={'https://github.com/user-attachments/assets/a5d7a543-aec5-457e-a36c-aa1f82f7bc8a'}
|
44
|
-
/>
|
35
|
+
<Image alt={'Midjourney 插件设置'} src={'https://github.com/user-attachments/assets/a5d7a543-aec5-457e-a36c-aa1f82f7bc8a'} />
|
@@ -11,29 +11,19 @@ tags:
|
|
11
11
|
|
12
12
|
# Translation of Conversation Records
|
13
13
|
|
14
|
-
<Image
|
15
|
-
alt={'Translation'}
|
16
|
-
cover
|
17
|
-
src={'https://github.com/user-attachments/assets/55230f32-b8dd-47db-a2ba-b3fe7e533dc8'}
|
18
|
-
/>
|
14
|
+
<Image alt={'Translation'} cover src={'https://github.com/user-attachments/assets/55230f32-b8dd-47db-a2ba-b3fe7e533dc8'} />
|
19
15
|
|
20
16
|
## Translating Conversation Content
|
21
17
|
|
22
18
|
LobeChat supports users to translate conversation content into a specified language with just one click. After selecting the target language, LobeChat will use a pre-set AI model for translation and display the translated results in real-time in the chat window.
|
23
19
|
|
24
|
-
<Image
|
25
|
-
alt={'Displaying Conversation Translation Results'}
|
26
|
-
src={'https://github.com/user-attachments/assets/868df2eb-0c44-4419-a76a-e173094e1e17'}
|
27
|
-
/>
|
20
|
+
<Image alt={'Displaying Conversation Translation Results'} src={'https://github.com/user-attachments/assets/868df2eb-0c44-4419-a76a-e173094e1e17'} />
|
28
21
|
|
29
22
|
## Translation Model Settings
|
30
23
|
|
31
24
|
You can specify the model you wish to use as a translation assistant in the settings.
|
32
25
|
|
33
|
-
<Image
|
34
|
-
alt={'Setting Translation Model'}
|
35
|
-
src={'https://github.com/user-attachments/assets/530c7c96-bac3-456d-a429-f60e7d2ade66'}
|
36
|
-
/>
|
26
|
+
<Image alt={'Setting Translation Model'} src={'https://github.com/user-attachments/assets/530c7c96-bac3-456d-a429-f60e7d2ade66'} />
|
37
27
|
|
38
28
|
- Open the `Settings` panel
|
39
29
|
- Find the `Translation Settings` option under `System Assistants`
|
@@ -10,29 +10,19 @@ tags:
|
|
10
10
|
|
11
11
|
# 翻译会话记录
|
12
12
|
|
13
|
-
<Image
|
14
|
-
alt={'翻译会话'}
|
15
|
-
cover
|
16
|
-
src={'https://github.com/user-attachments/assets/55230f32-b8dd-47db-a2ba-b3fe7e533dc8'}
|
17
|
-
/>
|
13
|
+
<Image alt={'翻译会话'} cover src={'https://github.com/user-attachments/assets/55230f32-b8dd-47db-a2ba-b3fe7e533dc8'} />
|
18
14
|
|
19
15
|
## 翻译对话中的内容
|
20
16
|
|
21
17
|
LobeChat 支持用户一键将对话内容翻译成指定语言。选择目标语言后,LobeChat 将调用预先设置的 AI 模型进行翻译,并将翻译结果实时显示在聊天窗口中。
|
22
18
|
|
23
|
-
<Image
|
24
|
-
alt={'显示会话翻译结果'}
|
25
|
-
src={'https://github.com/user-attachments/assets/868df2eb-0c44-4419-a76a-e173094e1e17'}
|
26
|
-
/>
|
19
|
+
<Image alt={'显示会话翻译结果'} src={'https://github.com/user-attachments/assets/868df2eb-0c44-4419-a76a-e173094e1e17'} />
|
27
20
|
|
28
21
|
## 翻译模型设置
|
29
22
|
|
30
23
|
你可以在设置中指定您希望使用的模型作为翻译助手。
|
31
24
|
|
32
|
-
<Image
|
33
|
-
alt={'设置翻译模型'}
|
34
|
-
src={'https://github.com/user-attachments/assets/530c7c96-bac3-456d-a429-f60e7d2ade66'}
|
35
|
-
/>
|
25
|
+
<Image alt={'设置翻译模型'} src={'https://github.com/user-attachments/assets/530c7c96-bac3-456d-a429-f60e7d2ade66'} />
|
36
26
|
|
37
27
|
- 打开`设置`面板
|
38
28
|
- 在`系统助手`中找到`翻译设置`选项
|
@@ -19,28 +19,19 @@ LobeChat supports text-to-speech conversion, allowing users to input content thr
|
|
19
19
|
|
20
20
|
Select any content in the chat window, choose `Text-to-Speech`, and the AI will use the TTS model to read the text content aloud.
|
21
21
|
|
22
|
-
<Image
|
23
|
-
alt={'TTS'}
|
24
|
-
src={'https://github.com/user-attachments/assets/d2714769-15f8-4d70-9128-607134163c52'}
|
25
|
-
/>
|
22
|
+
<Image alt={'TTS'} src={'https://github.com/user-attachments/assets/d2714769-15f8-4d70-9128-607134163c52'} />
|
26
23
|
|
27
24
|
## Speech-to-Text (STT)
|
28
25
|
|
29
26
|
Select the voice input feature in the input window, and LobeChat will convert your speech to text and input it into the text box. After completing the input, you can send it directly to the AI.
|
30
27
|
|
31
|
-
<Image
|
32
|
-
alt={'STT'}
|
33
|
-
src={'https://github.com/user-attachments/assets/d643af6d-ca0f-4abd-9dd2-977dacecb25d'}
|
34
|
-
/>
|
28
|
+
<Image alt={'STT'} src={'https://github.com/user-attachments/assets/d643af6d-ca0f-4abd-9dd2-977dacecb25d'} />
|
35
29
|
|
36
30
|
## Text-to-Speech Conversion Settings
|
37
31
|
|
38
32
|
You can specify the model you want to use for text-to-speech conversion in the settings.
|
39
33
|
|
40
|
-
<Image
|
41
|
-
alt={'TTS Settings'}
|
42
|
-
src={'https://github.com/user-attachments/assets/2f7c5c45-ec6a-4393-8fa9-19a4c5f52f7a'}
|
43
|
-
/>
|
34
|
+
<Image alt={'TTS Settings'} src={'https://github.com/user-attachments/assets/2f7c5c45-ec6a-4393-8fa9-19a4c5f52f7a'} />
|
44
35
|
|
45
36
|
- Open the `Settings` panel
|
46
37
|
- Find the `Text-to-Speech` settings
|
@@ -17,28 +17,19 @@ LobeChat 支持文字语音转换功能,允许用户通过语音输入内容
|
|
17
17
|
|
18
18
|
在对话窗口中选中任意内容,选择`文字转语音`,AI 将通过 TTS 模型对文本内容进行语音播报。
|
19
19
|
|
20
|
-
<Image
|
21
|
-
alt={'TTS'}
|
22
|
-
src={'https://github.com/user-attachments/assets/d2714769-15f8-4d70-9128-607134163c52'}
|
23
|
-
/>
|
20
|
+
<Image alt={'TTS'} src={'https://github.com/user-attachments/assets/d2714769-15f8-4d70-9128-607134163c52'} />
|
24
21
|
|
25
22
|
## 语音转文字(STT)
|
26
23
|
|
27
24
|
在输入窗口中选择语音输入功能,LobeChat 将您的语音转换为文字并输入到文本框中,完成输入后可以直接发送给 AI。
|
28
25
|
|
29
|
-
<Image
|
30
|
-
alt={'STT'}
|
31
|
-
src={'https://github.com/user-attachments/assets/d643af6d-ca0f-4abd-9dd2-977dacecb25d'}
|
32
|
-
/>
|
26
|
+
<Image alt={'STT'} src={'https://github.com/user-attachments/assets/d643af6d-ca0f-4abd-9dd2-977dacecb25d'} />
|
33
27
|
|
34
28
|
## 文字语音转换设置
|
35
29
|
|
36
30
|
你可以在设置中为文字语音转换功能指定您希望使用的模型。
|
37
31
|
|
38
|
-
<Image
|
39
|
-
alt={'TTS 设置'}
|
40
|
-
src={'https://github.com/user-attachments/assets/2f7c5c45-ec6a-4393-8fa9-19a4c5f52f7a'}
|
41
|
-
/>
|
32
|
+
<Image alt={'TTS 设置'} src={'https://github.com/user-attachments/assets/2f7c5c45-ec6a-4393-8fa9-19a4c5f52f7a'} />
|
42
33
|
|
43
34
|
- 打开`设置`面板
|
44
35
|
- 找到`文字转语音`设置
|
@@ -16,34 +16,22 @@ tags:
|
|
16
16
|
|
17
17
|
The ecosystem of large language models that support visual recognition is becoming increasingly rich. Starting from `gpt-4-vision`, LobeChat now supports various large language models with visual recognition capabilities, enabling LobeChat to have multimodal interaction capabilities.
|
18
18
|
|
19
|
-
<Video
|
20
|
-
alt={'Visual Model Usage'}
|
21
|
-
src={'https://github.com/user-attachments/assets/1c6b4975-bfc3-4470-a934-558ff7a16941'}
|
22
|
-
/>
|
19
|
+
<Video alt={'Visual Model Usage'} src={'https://github.com/user-attachments/assets/1c6b4975-bfc3-4470-a934-558ff7a16941'} />
|
23
20
|
|
24
21
|
## Image Input
|
25
22
|
|
26
23
|
If the model you are currently using supports visual recognition, you can input image content by uploading a file or dragging the image directly into the input box. The model will automatically recognize the image content and provide feedback based on your prompts.
|
27
24
|
|
28
|
-
<Image
|
29
|
-
alt={'Image Input'}
|
30
|
-
src={'https://github.com/user-attachments/assets/e6836560-8b05-4382-b761-d7624da4b0f1'}
|
31
|
-
/>
|
25
|
+
<Image alt={'Image Input'} src={'https://github.com/user-attachments/assets/e6836560-8b05-4382-b761-d7624da4b0f1'} />
|
32
26
|
|
33
27
|
## Visual Models
|
34
28
|
|
35
29
|
In the model list, models with a `👁️` icon next to their names indicate that the model supports visual recognition. Selecting such a model allows you to send image content.
|
36
30
|
|
37
|
-
<Image
|
38
|
-
alt={'Visual Models'}
|
39
|
-
src={'https://github.com/user-attachments/assets/fa07a326-04c8-4744-bb93-cef715d1d71f'}
|
40
|
-
/>
|
31
|
+
<Image alt={'Visual Models'} src={'https://github.com/user-attachments/assets/fa07a326-04c8-4744-bb93-cef715d1d71f'} />
|
41
32
|
|
42
33
|
## Custom Model Configuration
|
43
34
|
|
44
35
|
If you need to add a custom model that is not currently in the list and explicitly supports visual recognition, you can enable the `Visual Recognition` feature in the `Custom Model Configuration` to allow the model to interact with images.
|
45
36
|
|
46
|
-
<Image
|
47
|
-
alt={'Custom Model Configuration'}
|
48
|
-
src={'https://github.com/user-attachments/assets/c24718cc-402b-4298-b046-8b4aee610cbc'}
|
49
|
-
/>
|
37
|
+
<Image alt={'Custom Model Configuration'} src={'https://github.com/user-attachments/assets/c24718cc-402b-4298-b046-8b4aee610cbc'} />
|
@@ -12,34 +12,22 @@ tags:
|
|
12
12
|
|
13
13
|
当前支持视觉识别的大语言模型生态日益丰富。从 `gpt-4-vision` 开始,LobeChat 开始支持各类具有视觉识别能力的大语言模型,这使得 LobeChat 具备了多模态交互的能力。
|
14
14
|
|
15
|
-
<Video
|
16
|
-
alt={'视觉模型使用'}
|
17
|
-
src={'https://github.com/user-attachments/assets/1c6b4975-bfc3-4470-a934-558ff7a16941'}
|
18
|
-
/>
|
15
|
+
<Video alt={'视觉模型使用'} src={'https://github.com/user-attachments/assets/1c6b4975-bfc3-4470-a934-558ff7a16941'} />
|
19
16
|
|
20
17
|
## 图片输入
|
21
18
|
|
22
19
|
如果你当前使用的模型支持视觉识别功能,您可以通过上传文件或直接将图片拖入输入框的方式输入图片内容。模型会自动识别图片内容,并根据您的提示词给出反馈。
|
23
20
|
|
24
|
-
<Image
|
25
|
-
alt={'图片输入'}
|
26
|
-
src={'https://github.com/user-attachments/assets/e6836560-8b05-4382-b761-d7624da4b0f1'}
|
27
|
-
/>
|
21
|
+
<Image alt={'图片输入'} src={'https://github.com/user-attachments/assets/e6836560-8b05-4382-b761-d7624da4b0f1'} />
|
28
22
|
|
29
23
|
## 视觉模型
|
30
24
|
|
31
25
|
在模型列表中,模型名称后面带有`👁️`图标表示该模型支持视觉识别功能。选择该模型后即可发送图片内容。
|
32
26
|
|
33
|
-
<Image
|
34
|
-
alt={'视觉模型'}
|
35
|
-
src={'https://github.com/user-attachments/assets/fa07a326-04c8-4744-bb93-cef715d1d71f'}
|
36
|
-
/>
|
27
|
+
<Image alt={'视觉模型'} src={'https://github.com/user-attachments/assets/fa07a326-04c8-4744-bb93-cef715d1d71f'} />
|
37
28
|
|
38
29
|
## 自定义模型配置
|
39
30
|
|
40
31
|
如果您需要添加当前列表中没有的自定义模型,并且该模型明确支持视觉识别功能,您可以在`自定义模型配置`中开启`视觉识别`功能,使该模型能够与图片进行交互。
|
41
32
|
|
42
|
-
<Image
|
43
|
-
alt={'自定义模型配置'}
|
44
|
-
src={'https://github.com/user-attachments/assets/c24718cc-402b-4298-b046-8b4aee610cbc'}
|
45
|
-
/>
|
33
|
+
<Image alt={'自定义模型配置'} src={'https://github.com/user-attachments/assets/c24718cc-402b-4298-b046-8b4aee610cbc'} />
|
@@ -17,38 +17,23 @@ The plugin system is a key element in expanding the capabilities of assistants i
|
|
17
17
|
|
18
18
|
Watch the following video to quickly get started with using LobeChat plugins:
|
19
19
|
|
20
|
-
<Video
|
21
|
-
height={840}
|
22
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/94d4c312-1699-4e24-8782-138883678c9e"
|
23
|
-
/>
|
20
|
+
<Video height={840} src="https://github.com/lobehub/lobe-chat/assets/28616219/94d4c312-1699-4e24-8782-138883678c9e" />
|
24
21
|
|
25
22
|
## Plugin Store
|
26
23
|
|
27
24
|
You can access the Plugin Store by navigating to "Extension Tools" -> "Plugin Store" in the session toolbar.
|
28
25
|
|
29
|
-
<Image
|
30
|
-
alt="Plugin Store S1"
|
31
|
-
height={472}
|
32
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6"
|
33
|
-
/>
|
26
|
+
<Image alt="Plugin Store S1" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6" />
|
34
27
|
|
35
28
|
The Plugin Store allows you to directly install and use plugins within LobeChat.
|
36
29
|
|
37
|
-
<Image
|
38
|
-
alt="Plugin Store S2"
|
39
|
-
height={612}
|
40
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea"
|
41
|
-
/>
|
30
|
+
<Image alt="Plugin Store S2" height={612} src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea" />
|
42
31
|
|
43
32
|
## Using Plugins
|
44
33
|
|
45
34
|
After installing a plugin, simply enable it under the current assistant to use it.
|
46
35
|
|
47
|
-
<Image
|
48
|
-
alt="Using Plugins"
|
49
|
-
height={472}
|
50
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/76ab1ae7-a4f9-4285-8ebd-45b90251aba1"
|
51
|
-
/>
|
36
|
+
<Image alt="Using Plugins" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/76ab1ae7-a4f9-4285-8ebd-45b90251aba1" />
|
52
37
|
|
53
38
|
## Plugin Configuration
|
54
39
|
|
@@ -56,14 +41,6 @@ Some plugins may require specific configurations, such as API keys.
|
|
56
41
|
|
57
42
|
After installing a plugin, you can click on "Settings" to enter the plugin's settings and fill in the required configurations:
|
58
43
|
|
59
|
-
<Image
|
60
|
-
|
61
|
-
|
62
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/10eb3023-4528-4b06-8092-062e7b3865cc"
|
63
|
-
/>
|
64
|
-
|
65
|
-
<Image
|
66
|
-
alt="Plugin Configuration S2"
|
67
|
-
height={472}
|
68
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/ab2e4c25-4b11-431b-9266-442d8b14cb41"
|
69
|
-
/>
|
44
|
+
<Image alt="Plugin Configuration S1" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/10eb3023-4528-4b06-8092-062e7b3865cc" />
|
45
|
+
|
46
|
+
<Image alt="Plugin Configuration S2" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/ab2e4c25-4b11-431b-9266-442d8b14cb41" />
|
@@ -15,38 +15,23 @@ tags:
|
|
15
15
|
|
16
16
|
查看以下视频,快速上手使用 LobeChat 插件:
|
17
17
|
|
18
|
-
<Video
|
19
|
-
height={840}
|
20
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/94d4c312-1699-4e24-8782-138883678c9e"
|
21
|
-
/>
|
18
|
+
<Video height={840} src="https://github.com/lobehub/lobe-chat/assets/28616219/94d4c312-1699-4e24-8782-138883678c9e" />
|
22
19
|
|
23
20
|
## 插件商店
|
24
21
|
|
25
22
|
你可以在会话工具条中的 「扩展工具」 -> 「插件商店」,进入插件商店。
|
26
23
|
|
27
|
-
<Image
|
28
|
-
alt="插件商店 S1"
|
29
|
-
height={472}
|
30
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6"
|
31
|
-
/>
|
24
|
+
<Image alt="插件商店 S1" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6" />
|
32
25
|
|
33
26
|
插件商店中会在 LobeChat 中可以直接安装并使用的插件。
|
34
27
|
|
35
|
-
<Image
|
36
|
-
alt="插件商店 S2"
|
37
|
-
height={612}
|
38
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea"
|
39
|
-
/>
|
28
|
+
<Image alt="插件商店 S2" height={612} src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea" />
|
40
29
|
|
41
30
|
## 使用插件
|
42
31
|
|
43
32
|
安装完毕插件后,只需在当前助手下开启插件即可使用。
|
44
33
|
|
45
|
-
<Image
|
46
|
-
alt="使用插件"
|
47
|
-
height={472}
|
48
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/76ab1ae7-a4f9-4285-8ebd-45b90251aba1"
|
49
|
-
/>
|
34
|
+
<Image alt="使用插件" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/76ab1ae7-a4f9-4285-8ebd-45b90251aba1" />
|
50
35
|
|
51
36
|
## 插件配置
|
52
37
|
|
@@ -54,14 +39,6 @@ tags:
|
|
54
39
|
|
55
40
|
你可以在安装插件后,点击设置进入插件的设置填写配置:
|
56
41
|
|
57
|
-
<Image
|
58
|
-
|
59
|
-
|
60
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/10eb3023-4528-4b06-8092-062e7b3865cc"
|
61
|
-
/>
|
62
|
-
|
63
|
-
<Image
|
64
|
-
alt="插件配置 S2"
|
65
|
-
height={472}
|
66
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/ab2e4c25-4b11-431b-9266-442d8b14cb41"
|
67
|
-
/>
|
42
|
+
<Image alt="插件配置 S1" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/10eb3023-4528-4b06-8092-062e7b3865cc" />
|
43
|
+
|
44
|
+
<Image alt="插件配置 S2" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/ab2e4c25-4b11-431b-9266-442d8b14cb41" />
|
@@ -36,88 +36,52 @@ This section will introduce how to add and use a custom plugin in LobeChat.
|
|
36
36
|
<Steps>
|
37
37
|
### Create and Launch Plugin Project
|
38
38
|
|
39
|
-
You need to first create a plugin project locally, you can use the template we have prepared [lobe-chat-plugin-template][lobe-chat-plugin-template-url]
|
39
|
+
You need to first create a plugin project locally, you can use the template we have prepared [lobe-chat-plugin-template][lobe-chat-plugin-template-url]
|
40
40
|
|
41
|
-
```bash
|
42
|
-
$ git clone https://github.com/lobehub/chat-plugin-template.git
|
43
|
-
$ cd chat-plugin-template
|
44
|
-
$ npm i
|
45
|
-
$ npm run dev
|
46
|
-
```
|
47
|
-
|
48
|
-
When you see `ready started server on 0.0.0.0:3400, url: http://localhost:3400`, it means the plugin service has been successfully launched locally.
|
41
|
+
```bash
|
42
|
+
$ git clone https://github.com/lobehub/chat-plugin-template.git
|
43
|
+
$ cd chat-plugin-template
|
44
|
+
$ npm i
|
45
|
+
$ npm run dev
|
46
|
+
```
|
49
47
|
|
50
|
-
|
51
|
-
alt="Create and Launch Plugin Project"
|
52
|
-
height={483}
|
53
|
-
inStep
|
54
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259526-9ef25272-4312-429b-93bc-a95515727ed3.png"
|
55
|
-
/>
|
48
|
+
When you see `ready started server on 0.0.0.0:3400, url: http://localhost:3400`, it means the plugin service has been successfully launched locally.
|
56
49
|
|
57
|
-
|
50
|
+
<Image alt="Create and Launch Plugin Project" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259526-9ef25272-4312-429b-93bc-a95515727ed3.png" />
|
58
51
|
|
59
|
-
|
52
|
+
### Add Local Plugin in LobeChat Role Settings
|
60
53
|
|
61
|
-
|
62
|
-
alt="Add Local Plugin in LobeChat Role Settings S1"
|
63
|
-
height={483}
|
64
|
-
inStep
|
65
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259643-1a9cc34a-76f3-4ccf-928b-129654670efd.png"
|
66
|
-
/>
|
54
|
+
Next, go to LobeChat, create a new assistant, and go to its session settings page:
|
67
55
|
|
68
|
-
|
56
|
+
<Image alt="Add Local Plugin in LobeChat Role Settings S1" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259643-1a9cc34a-76f3-4ccf-928b-129654670efd.png" />
|
69
57
|
|
70
|
-
<
|
71
|
-
alt="Add Local Plugin in LobeChat Role Settings S2"
|
72
|
-
height={483}
|
73
|
-
inStep
|
74
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259748-2ef6a244-39bb-483c-b359-f156ffcbe1a4.png"
|
75
|
-
/>
|
58
|
+
Click the <kbd>Add</kbd> button on the right of the plugin list to open the custom plugin adding popup:
|
76
59
|
|
77
|
-
|
60
|
+
<Image alt="Add Local Plugin in LobeChat Role Settings S2" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259748-2ef6a244-39bb-483c-b359-f156ffcbe1a4.png" />
|
78
61
|
|
79
|
-
|
62
|
+
Fill in the **Plugin Description File Url** with `http://localhost:3400/manifest-dev.json`, which is the manifest address of the plugin we started locally.
|
80
63
|
|
81
|
-
<
|
82
|
-
alt="Add Local Plugin in LobeChat Role Settings S3"
|
83
|
-
height={483}
|
84
|
-
inStep
|
85
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259964-59f4906d-ae2e-4ec0-8b43-db36871d0869.png"
|
86
|
-
/>
|
64
|
+
At this point, you should see that the identifier of the plugin has been automatically recognized as `chat-plugin-template`. Next, you need to fill in the remaining form fields (only the title is required), and then click the <kbd>Save</kbd> button to complete the custom plugin addition.
|
87
65
|
|
88
|
-
|
66
|
+
<Image alt="Add Local Plugin in LobeChat Role Settings S3" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259964-59f4906d-ae2e-4ec0-8b43-db36871d0869.png" />
|
89
67
|
|
90
|
-
<
|
91
|
-
alt="Add Local Plugin in LobeChat Role Settings S4"
|
92
|
-
height={483}
|
93
|
-
inStep
|
94
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260093-a0363c74-0b5b-48dd-b103-2db6b4a8262e.png"
|
95
|
-
/>
|
68
|
+
After adding, you can see the newly added plugin in the plugin list. If you need to modify the plugin configuration, you can click the <kbd>Settings</kbd> button on the far right to make changes.
|
96
69
|
|
97
|
-
|
70
|
+
<Image alt="Add Local Plugin in LobeChat Role Settings S4" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260093-a0363c74-0b5b-48dd-b103-2db6b4a8262e.png" />
|
98
71
|
|
99
|
-
|
72
|
+
### Test Plugin Function in Session
|
100
73
|
|
101
|
-
|
74
|
+
Next, we need to test whether the plugin's function is working properly.
|
102
75
|
|
103
|
-
<
|
104
|
-
alt="Test Plugin Function in Session S1"
|
105
|
-
height={483}
|
106
|
-
inStep
|
107
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260291-f0aa0e7c-0ffb-486c-a834-08e73d49896f.png"
|
108
|
-
/>
|
76
|
+
Click the <kbd>Back</kbd> button to return to the session area, and then send a message to the assistant: "What should I wear?" At this point, the assistant will try to ask you about your gender and current mood.
|
109
77
|
|
110
|
-
|
78
|
+
<Image alt="Test Plugin Function in Session S1" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260291-f0aa0e7c-0ffb-486c-a834-08e73d49896f.png" />
|
111
79
|
|
112
|
-
|
113
|
-
alt="Test Plugin Function in Session S2"
|
114
|
-
height={483}
|
115
|
-
inStep
|
116
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260461-c22ae797-2809-464b-96fc-d0c020f4807b.png"
|
117
|
-
/>
|
80
|
+
After answering, the assistant will initiate the plugin call, retrieve recommended clothing data from the server based on your gender and mood, and push it to you. Finally, it will provide a text summary based on this information.
|
118
81
|
|
119
|
-
|
82
|
+
<Image alt="Test Plugin Function in Session S2" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260461-c22ae797-2809-464b-96fc-d0c020f4807b.png" />
|
120
83
|
|
84
|
+
After completing these operations, you have understood the basic process of adding custom plugins and using them in LobeChat.
|
121
85
|
</Steps>
|
122
86
|
|
123
87
|
## Local Plugin Development
|
@@ -247,29 +211,17 @@ export default createLobeChatPluginGateway();
|
|
247
211
|
|
248
212
|
The custom UI interface for plugins is optional. For example, the official plugin [Web Content Extraction](https://github.com/lobehub/chat-plugin-web-crawler) does not have a corresponding user interface.
|
249
213
|
|
250
|
-
<Image
|
251
|
-
alt="Plugin UI Interface S1"
|
252
|
-
height={483}
|
253
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263241-0e765fdc-3463-4c36-a398-aef177a30df9.png"
|
254
|
-
/>
|
214
|
+
<Image alt="Plugin UI Interface S1" height={483} src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263241-0e765fdc-3463-4c36-a398-aef177a30df9.png" />
|
255
215
|
|
256
216
|
If you want to display richer information in plugin messages or include some interactive operations, you can customize a user interface for the plugin. For example, the following image shows the user interface for the [Search Engine](https://github.com/lobehub/chat-plugin-search-engine) plugin.
|
257
217
|
|
258
|
-
<Image
|
259
|
-
alt="Plugin UI Interface S2"
|
260
|
-
height={483}
|
261
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263427-9bdc03d5-aa61-4f62-a2ce-88683f3308d8.png"
|
262
|
-
/>
|
218
|
+
<Image alt="Plugin UI Interface S2" height={483} src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263427-9bdc03d5-aa61-4f62-a2ce-88683f3308d8.png" />
|
263
219
|
|
264
220
|
#### Implementation of Plugin UI Interface
|
265
221
|
|
266
222
|
LobeChat implements the loading of plugin UI through `iframe` and uses `postMessage` to communicate with the plugin. Therefore, the implementation of the plugin UI is consistent with regular web development. You can use any frontend framework and development language you are familiar with.
|
267
223
|
|
268
|
-
<Image
|
269
|
-
alt="Implementation of Plugin UI Interface"
|
270
|
-
height={483}
|
271
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263653-4ea87abc-249a-49f3-a241-7ed93ddb1ddf.png"
|
272
|
-
/>
|
224
|
+
<Image alt="Implementation of Plugin UI Interface" height={483} src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263653-4ea87abc-249a-49f3-a241-7ed93ddb1ddf.png" />
|
273
225
|
|
274
226
|
In the template we provide, we use React + Next.js + [antd](https://ant.design/) as the frontend interface framework. You can find the implementation of the user interface in [`src/pages/index.tsx`](https://github.com/lobehub/chat-plugin-template/blob/main/src/pages/index.tsx).
|
275
227
|
|
@@ -307,7 +259,7 @@ If you want more people to use your plugin, feel free to [submit it for listing]
|
|
307
259
|
|
308
260
|
### Plugin Shield
|
309
261
|
|
310
|
-
[](https://github.com/lobehub/lobe-chat-plugins)
|
311
263
|
|
312
264
|
```md
|
313
265
|
[](https://github.com/lobehub/lobe-chat-plugins)
|