@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
@@ -30,88 +30,52 @@ tags:
|
|
30
30
|
<Steps>
|
31
31
|
### 创建并启动插件项目
|
32
32
|
|
33
|
-
你需要先在本地创建一个插件项目,可以使用我们准备好的模板 [lobe-chat-plugin-template][lobe-chat-plugin-template-url]
|
33
|
+
你需要先在本地创建一个插件项目,可以使用我们准备好的模板 [lobe-chat-plugin-template][lobe-chat-plugin-template-url]
|
34
34
|
|
35
|
-
```bash
|
36
|
-
$ git clone https://github.com/lobehub/chat-plugin-template.git
|
37
|
-
$ cd chat-plugin-template
|
38
|
-
$ npm i
|
39
|
-
$ npm run dev
|
40
|
-
```
|
41
|
-
|
42
|
-
当出现`ready started server on 0.0.0.0:3400, url: http://localhost:3400` 时,说明插件服务已经在本地启动成功。
|
35
|
+
```bash
|
36
|
+
$ git clone https://github.com/lobehub/chat-plugin-template.git
|
37
|
+
$ cd chat-plugin-template
|
38
|
+
$ npm i
|
39
|
+
$ npm run dev
|
40
|
+
```
|
43
41
|
|
44
|
-
|
45
|
-
alt="创建并启动插件项目"
|
46
|
-
height={483}
|
47
|
-
inStep
|
48
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259526-9ef25272-4312-429b-93bc-a95515727ed3.png"
|
49
|
-
/>
|
42
|
+
当出现`ready started server on 0.0.0.0:3400, url: http://localhost:3400` 时,说明插件服务已经在本地启动成功。
|
50
43
|
|
51
|
-
|
44
|
+
<Image alt="创建并启动插件项目" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259526-9ef25272-4312-429b-93bc-a95515727ed3.png" />
|
52
45
|
|
53
|
-
|
46
|
+
### 在 LobeChat 角色设置中添加本地插件
|
54
47
|
|
55
|
-
|
56
|
-
alt="在 LobeChat 角色设置中添加本地插件 S1"
|
57
|
-
height={483}
|
58
|
-
inStep
|
59
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259643-1a9cc34a-76f3-4ccf-928b-129654670efd.png"
|
60
|
-
/>
|
48
|
+
接下来进入到 LobeChat 中,创建一个新的助手,并进入它的会话设置页:
|
61
49
|
|
62
|
-
|
50
|
+
<Image alt="在 LobeChat 角色设置中添加本地插件 S1" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259643-1a9cc34a-76f3-4ccf-928b-129654670efd.png" />
|
63
51
|
|
64
|
-
<
|
65
|
-
alt="在 LobeChat 角色设置中添加本地插件 S2"
|
66
|
-
height={483}
|
67
|
-
inStep
|
68
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259748-2ef6a244-39bb-483c-b359-f156ffcbe1a4.png"
|
69
|
-
/>
|
52
|
+
点击插件列表右侧的 <kbd>添加</kbd> 按钮,打开自定义插件添加弹窗:
|
70
53
|
|
71
|
-
在
|
54
|
+
<Image alt="在 LobeChat 角色设置中添加本地插件 S2" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259748-2ef6a244-39bb-483c-b359-f156ffcbe1a4.png" />
|
72
55
|
|
73
|
-
|
56
|
+
在 **插件描述文件 Url** 地址 中填入 `http://localhost:3400/manifest-dev.json` ,这是我们本地启动的插件描述清单地址。
|
74
57
|
|
75
|
-
<
|
76
|
-
alt="在 LobeChat 角色设置中添加本地插件 S3"
|
77
|
-
height={483}
|
78
|
-
inStep
|
79
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259964-59f4906d-ae2e-4ec0-8b43-db36871d0869.png"
|
80
|
-
/>
|
58
|
+
此时,你应该可以看到看到插件的标识符一栏已经被自动识别为 `chat-plugin-template`。接下来你需要填写剩下的表单字段(只有标题必填),然后点击 <kbd>保存</kbd> 按钮,即可完成自定义插件添加。
|
81
59
|
|
82
|
-
|
60
|
+
<Image alt="在 LobeChat 角色设置中添加本地插件 S3" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265259964-59f4906d-ae2e-4ec0-8b43-db36871d0869.png" />
|
83
61
|
|
84
|
-
<
|
85
|
-
alt="在 LobeChat 角色设置中添加本地插件 S4"
|
86
|
-
height={483}
|
87
|
-
inStep
|
88
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260093-a0363c74-0b5b-48dd-b103-2db6b4a8262e.png"
|
89
|
-
/>
|
62
|
+
完成添加后,在插件列表中就能看到刚刚添加的插件,如果需要修改插件的配置,可以点击最右侧的 <kbd>设置</kbd> 按钮进行修改。
|
90
63
|
|
91
|
-
|
64
|
+
<Image alt="在 LobeChat 角色设置中添加本地插件 S4" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260093-a0363c74-0b5b-48dd-b103-2db6b4a8262e.png" />
|
92
65
|
|
93
|
-
|
66
|
+
### 会话测试插件功能
|
94
67
|
|
95
|
-
|
68
|
+
接来下我们需要测试这个插件的功能是否正常。
|
96
69
|
|
97
|
-
<
|
98
|
-
alt="会话测试插件功能 S1"
|
99
|
-
height={483}
|
100
|
-
inStep
|
101
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260291-f0aa0e7c-0ffb-486c-a834-08e73d49896f.png"
|
102
|
-
/>
|
70
|
+
点击 <kbd>返回</kbd> 按钮回到会话区,然后向助手发送消息:「我应该穿什么? 」此时助手将会尝试向你询问,了解你的性别与当前的心情。
|
103
71
|
|
104
|
-
|
72
|
+
<Image alt="会话测试插件功能 S1" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260291-f0aa0e7c-0ffb-486c-a834-08e73d49896f.png" />
|
105
73
|
|
106
|
-
|
107
|
-
alt="会话测试插件功能 S2"
|
108
|
-
height={483}
|
109
|
-
inStep
|
110
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260461-c22ae797-2809-464b-96fc-d0c020f4807b.png"
|
111
|
-
/>
|
74
|
+
当回答完毕后,助手将会发起插件的调用,根据你的性别、心情,从服务端获取推荐的衣服数据,并推送给你。最后基于这些信息做一轮文本总结。
|
112
75
|
|
113
|
-
|
76
|
+
<Image alt="会话测试插件功能 S2" height={483} inStep src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265260461-c22ae797-2809-464b-96fc-d0c020f4807b.png" />
|
114
77
|
|
78
|
+
当完成这些操作后,你已经了解了添加自定义插件,并在 LobeChat 中使用的基础流程。
|
115
79
|
</Steps>
|
116
80
|
|
117
81
|
## 本地插件开发
|
@@ -223,7 +187,7 @@ export default async (req: Request) => {
|
|
223
187
|
|
224
188
|
由于 LobeChat 默认的插件网关是云端服务 `/api/plugins`,云端服务通过 manifest 上的 `api.url` 地址发送请求,以解决跨域问题。
|
225
189
|
|
226
|
-
针对自定义插件,插件请求需要发送给本地服务, 因此通过在 manifest 中指定网关 ([http://localhost:3400/api/gateway),LobeChat](
|
190
|
+
针对自定义插件,插件请求需要发送给本地服务, 因此通过在 manifest 中指定网关 ([http://localhost:3400/api/gateway),LobeChat](http://localhost:3400/api/gateway\),LobeChat) 将会直接请求该地址,然后只需要在该地址下创建对应的网关即可。
|
227
191
|
|
228
192
|
```ts
|
229
193
|
import { createLobeChatPluginGateway } from '@lobehub/chat-plugins-gateway';
|
@@ -241,29 +205,17 @@ export default createLobeChatPluginGateway();
|
|
241
205
|
|
242
206
|
自定义插件的 UI 界面是一个可选项。例如 官方插件 [「🧩 / 🕸 网页内容提取」](https://github.com/lobehub/chat-plugin-web-crawler),没有实现相应的用户界面。
|
243
207
|
|
244
|
-
<Image
|
245
|
-
alt="插件 UI 界面 S1"
|
246
|
-
height={483}
|
247
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263241-0e765fdc-3463-4c36-a398-aef177a30df9.png"
|
248
|
-
/>
|
208
|
+
<Image alt="插件 UI 界面 S1" height={483} src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263241-0e765fdc-3463-4c36-a398-aef177a30df9.png" />
|
249
209
|
|
250
210
|
如果你希望在插件消息中展示更加丰富的信息,或者包含一些富交互操作,你可以为插件定制一个用户界面。例如下图则为[「搜索引擎」](https://github.com/lobehub/chat-plugin-search-engine)插件的用户界面。
|
251
211
|
|
252
|
-
<Image
|
253
|
-
alt="插件 UI 界面 S2"
|
254
|
-
height={483}
|
255
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263427-9bdc03d5-aa61-4f62-a2ce-88683f3308d8.png"
|
256
|
-
/>
|
212
|
+
<Image alt="插件 UI 界面 S2" height={483} src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263427-9bdc03d5-aa61-4f62-a2ce-88683f3308d8.png" />
|
257
213
|
|
258
214
|
#### 插件 UI 界面实现
|
259
215
|
|
260
216
|
LobeChat 通过 `iframe` 实现插件 ui 的加载,使用 `postMessage` 实现主体与插件的通信。因此, 插件 UI 的实现方式与普通的网页开发一致,你可以使用任何你熟悉的前端框架与开发语言。
|
261
217
|
|
262
|
-
<Image
|
263
|
-
alt="插件 UI 界面实现"
|
264
|
-
height={483}
|
265
|
-
src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263653-4ea87abc-249a-49f3-a241-7ed93ddb1ddf.png"
|
266
|
-
/>
|
218
|
+
<Image alt="插件 UI 界面实现" height={483} src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263653-4ea87abc-249a-49f3-a241-7ed93ddb1ddf.png" />
|
267
219
|
|
268
220
|
在我们提供的模板中使用了 React + Next.js + [antd](https://ant.design/) 作为前端界面框架,你可以在 [`src/pages/index.tsx`](https://github.com/lobehub/chat-plugin-template/blob/main/src/pages/index.tsx) 中找到用户界面的实现。
|
269
221
|
|
@@ -301,7 +253,7 @@ export default Render;
|
|
301
253
|
|
302
254
|
### 插件 Shield
|
303
255
|
|
304
|
-
[](https://github.com/lobehub/lobe-chat-plugins)
|
305
257
|
|
306
258
|
```markdown
|
307
259
|
[](https://github.com/lobehub/lobe-chat-plugins)
|
@@ -15,16 +15,8 @@ tags:
|
|
15
15
|
|
16
16
|
You can access the plugin store by going to `Extension Tools` -> `Plugin Store` in the session toolbar.
|
17
17
|
|
18
|
-
<Image
|
19
|
-
alt="Plugin Store S1"
|
20
|
-
height={472}
|
21
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6"
|
22
|
-
/>
|
18
|
+
<Image alt="Plugin Store S1" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6" />
|
23
19
|
|
24
20
|
In the plugin store, you can directly install and use plugins in LobeChat.
|
25
21
|
|
26
|
-
<Image
|
27
|
-
alt="Plugin Store S2"
|
28
|
-
height={472}
|
29
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea"
|
30
|
-
/>
|
22
|
+
<Image alt="Plugin Store S2" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea" />
|
@@ -12,16 +12,8 @@ tags:
|
|
12
12
|
|
13
13
|
你可以在会话工具条中的 `扩展工具` -> `插件商店`,进入插件商店。
|
14
14
|
|
15
|
-
<Image
|
16
|
-
alt="插件商店 S1"
|
17
|
-
height={472}
|
18
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6"
|
19
|
-
/>
|
15
|
+
<Image alt="插件商店 S1" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/ab4e60d0-1293-49ac-8798-cb29b3b789e6" />
|
20
16
|
|
21
17
|
插件商店中会在 LobeChat 中可以直接安装并使用的插件。
|
22
18
|
|
23
|
-
<Image
|
24
|
-
alt="插件商店 S2"
|
25
|
-
height={472}
|
26
|
-
src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea"
|
27
|
-
/>
|
19
|
+
<Image alt="插件商店 S2" height={472} src="https://github.com/lobehub/lobe-chat/assets/28616219/d7a5d821-116f-4be6-8a1a-38d81a5ea0ea" />
|
@@ -12,53 +12,37 @@ tags:
|
|
12
12
|
|
13
13
|
# Using AI21 Labs in LobeChat
|
14
14
|
|
15
|
-
<Image
|
16
|
-
cover
|
17
|
-
src={'https://github.com/user-attachments/assets/ae03eab5-a319-4d2a-a5f6-1683ab7739ee'}
|
18
|
-
/>
|
15
|
+
<Image cover src={'https://github.com/user-attachments/assets/ae03eab5-a319-4d2a-a5f6-1683ab7739ee'} />
|
19
16
|
|
20
17
|
[AI21 Labs](https://www.ai21.com/) is a company focused on artificial intelligence, offering advanced language models and API services designed to help developers and businesses leverage natural language processing technology. Their flagship product, the "Jamba" series of models, can perform complex language understanding and generation tasks, widely utilized in fields such as content creation and conversational systems.
|
21
18
|
|
22
19
|
This article will guide you on how to use AI21 Labs within LobeChat.
|
23
20
|
|
24
21
|
<Steps>
|
25
|
-
### Step 1: Obtain the AI21 Labs API Key
|
22
|
+
### Step 1: Obtain the AI21 Labs API Key
|
26
23
|
|
27
|
-
- Register and log in to [AI21 Studio](https://studio.ai21.com)
|
28
|
-
- Click on the `User Avatar` menu, then select `API Key`
|
29
|
-
- Copy and save the generated API key
|
24
|
+
- Register and log in to [AI21 Studio](https://studio.ai21.com)
|
25
|
+
- Click on the `User Avatar` menu, then select `API Key`
|
26
|
+
- Copy and save the generated API key
|
30
27
|
|
31
|
-
<Image
|
32
|
-
alt={'Copy API Key'}
|
33
|
-
inStep
|
34
|
-
src={'https://github.com/user-attachments/assets/a42ba52b-491e-4993-8e2f-217aa1776e0f'}
|
35
|
-
/>
|
28
|
+
<Image alt={'Copy API Key'} inStep src={'https://github.com/user-attachments/assets/a42ba52b-491e-4993-8e2f-217aa1776e0f'} />
|
36
29
|
|
37
|
-
### Step 2: Configure AI21 Labs in LobeChat
|
30
|
+
### Step 2: Configure AI21 Labs in LobeChat
|
38
31
|
|
39
|
-
- Go to the `Settings` page in LobeChat
|
40
|
-
- Under `Language Model`, find the setting for `AI21 Labs`
|
32
|
+
- Go to the `Settings` page in LobeChat
|
33
|
+
- Under `Language Model`, find the setting for `AI21 Labs`
|
41
34
|
|
42
|
-
<Image
|
43
|
-
alt={'Enter API Key'}
|
44
|
-
inStep
|
45
|
-
src={'https://github.com/user-attachments/assets/9336d6c5-2a83-4aa9-854e-75e245b665cb'}
|
46
|
-
/>
|
35
|
+
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/9336d6c5-2a83-4aa9-854e-75e245b665cb'} />
|
47
36
|
|
48
|
-
- Enter the API key you obtained
|
49
|
-
- Choose an AI21 Labs model for your AI assistant to begin the conversation
|
37
|
+
- Enter the API key you obtained
|
38
|
+
- Choose an AI21 Labs model for your AI assistant to begin the conversation
|
50
39
|
|
51
|
-
<Image
|
52
|
-
alt={'Select AI21 Labs Model and Start Conversation'}
|
53
|
-
inStep
|
54
|
-
src={'https://github.com/user-attachments/assets/63e5ced7-1d23-44e1-b933-cc3b5df47eab'}
|
55
|
-
/>
|
56
|
-
|
57
|
-
<Callout type={'warning'}>
|
58
|
-
During use, you may need to pay the API service provider; please refer to the relevant fee policy
|
59
|
-
of AI21 Labs.
|
60
|
-
</Callout>
|
40
|
+
<Image alt={'Select AI21 Labs Model and Start Conversation'} inStep src={'https://github.com/user-attachments/assets/63e5ced7-1d23-44e1-b933-cc3b5df47eab'} />
|
61
41
|
|
42
|
+
<Callout type={'warning'}>
|
43
|
+
During use, you may need to pay the API service provider; please refer to the relevant fee policy
|
44
|
+
of AI21 Labs.
|
45
|
+
</Callout>
|
62
46
|
</Steps>
|
63
47
|
|
64
48
|
Now you are ready to engage in conversations using the models provided by AI21 Labs in LobeChat.
|
@@ -10,52 +10,36 @@ tags:
|
|
10
10
|
|
11
11
|
# 在 LobeChat 中使用 AI21 Labs
|
12
12
|
|
13
|
-
<Image
|
14
|
-
cover
|
15
|
-
src={'https://github.com/user-attachments/assets/ae03eab5-a319-4d2a-a5f6-1683ab7739ee'}
|
16
|
-
/>
|
13
|
+
<Image cover src={'https://github.com/user-attachments/assets/ae03eab5-a319-4d2a-a5f6-1683ab7739ee'} />
|
17
14
|
|
18
|
-
[AI21 Labs](https://www.ai21.com/) 是一家专注于人工智能的公司,提供先进的语言模型和API服务,旨在帮助开发者和企业利用自然语言处理技术。其旗舰产品 "Jamba" 系列模型能够进行复杂的语言理解和生成任务,广泛应用于内容创作、对话系统等领域。
|
15
|
+
[AI21 Labs](https://www.ai21.com/) 是一家专注于人工智能的公司,提供先进的语言模型和 API 服务,旨在帮助开发者和企业利用自然语言处理技术。其旗舰产品 "Jamba" 系列模型能够进行复杂的语言理解和生成任务,广泛应用于内容创作、对话系统等领域。
|
19
16
|
|
20
17
|
本文将指导你如何在 LobeChat 中使用 AI21 Labs。
|
21
18
|
|
22
19
|
<Steps>
|
23
|
-
### 步骤一:获得 AI21 Labs 的 API Key
|
20
|
+
### 步骤一:获得 AI21 Labs 的 API Key
|
24
21
|
|
25
|
-
- 注册并登录 [AI21 Studio](https://studio.ai21.com)
|
26
|
-
- 点击 `用户头像` 菜单,点击 `API Key`
|
27
|
-
- 复制并保存生成的 API 密钥
|
22
|
+
- 注册并登录 [AI21 Studio](https://studio.ai21.com)
|
23
|
+
- 点击 `用户头像` 菜单,点击 `API Key`
|
24
|
+
- 复制并保存生成的 API 密钥
|
28
25
|
|
29
|
-
<Image
|
30
|
-
alt={'复制 API 密钥'}
|
31
|
-
inStep
|
32
|
-
src={'https://github.com/user-attachments/assets/a42ba52b-491e-4993-8e2f-217aa1776e0f'}
|
33
|
-
/>
|
26
|
+
<Image alt={'复制 API 密钥'} inStep src={'https://github.com/user-attachments/assets/a42ba52b-491e-4993-8e2f-217aa1776e0f'} />
|
34
27
|
|
35
|
-
### 步骤二:在 LobeChat 中配置 AI21 Labs
|
28
|
+
### 步骤二:在 LobeChat 中配置 AI21 Labs
|
36
29
|
|
37
|
-
- 访问 LobeChat 的`设置`界面
|
38
|
-
- 在`语言模型`下找到 `AI21labs` 的设置项
|
30
|
+
- 访问 LobeChat 的`设置`界面
|
31
|
+
- 在`语言模型`下找到 `AI21labs` 的设置项
|
39
32
|
|
40
|
-
<Image
|
41
|
-
alt={'填入 API 密钥'}
|
42
|
-
inStep
|
43
|
-
src={'https://github.com/user-attachments/assets/9336d6c5-2a83-4aa9-854e-75e245b665cb'}
|
44
|
-
/>
|
33
|
+
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/9336d6c5-2a83-4aa9-854e-75e245b665cb'} />
|
45
34
|
|
46
|
-
- 填入获得的 API 密钥
|
47
|
-
- 为你的 AI 助手选择一个 AI21 Labs 的模型即可开始对话
|
35
|
+
- 填入获得的 API 密钥
|
36
|
+
- 为你的 AI 助手选择一个 AI21 Labs 的模型即可开始对话
|
48
37
|
|
49
|
-
<Image
|
50
|
-
alt={'选择 AI21 Labs 模型并开始对话'}
|
51
|
-
inStep
|
52
|
-
src={'https://github.com/user-attachments/assets/63e5ced7-1d23-44e1-b933-cc3b5df47eab'}
|
53
|
-
/>
|
54
|
-
|
55
|
-
<Callout type={'warning'}>
|
56
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考 AI21 Labs 的相关费用政策。
|
57
|
-
</Callout>
|
38
|
+
<Image alt={'选择 AI21 Labs 模型并开始对话'} inStep src={'https://github.com/user-attachments/assets/63e5ced7-1d23-44e1-b933-cc3b5df47eab'} />
|
58
39
|
|
40
|
+
<Callout type={'warning'}>
|
41
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 AI21 Labs 的相关费用政策。
|
42
|
+
</Callout>
|
59
43
|
</Steps>
|
60
44
|
|
61
45
|
至此你已经可以在 LobeChat 中使用 AI21 Labs 提供的模型进行对话了。
|
@@ -10,53 +10,37 @@ tags:
|
|
10
10
|
|
11
11
|
# Using the 360AI in LobeChat
|
12
12
|
|
13
|
-
<Image
|
14
|
-
cover
|
15
|
-
src={'https://github.com/user-attachments/assets/e617def1-ce50-4acc-974b-12f5ed592a0e'}
|
16
|
-
/>
|
13
|
+
<Image cover src={'https://github.com/user-attachments/assets/e617def1-ce50-4acc-974b-12f5ed592a0e'} />
|
17
14
|
|
18
15
|
The [360AI](https://ai.360.com/) is a cognitive general model independently developed by 360 Company, aimed at providing powerful natural language processing capabilities for enterprises and developers. This model has been upgraded to version 4.0 and supports various application scenarios, including conversational services, image generation, vector database services, and more.
|
19
16
|
|
20
17
|
This article will guide you on how to use the 360AI in LobeChat.
|
21
18
|
|
22
19
|
<Steps>
|
23
|
-
### Step 1: Obtain the 360AI API Key
|
20
|
+
### Step 1: Obtain the 360AI API Key
|
24
21
|
|
25
|
-
- Register and log in to the [360AI API Open Platform](https://ai.360.com/platform/keys)
|
26
|
-
- Click on the `API Keys` menu on the left
|
27
|
-
- Create an API key and copy it
|
22
|
+
- Register and log in to the [360AI API Open Platform](https://ai.360.com/platform/keys)
|
23
|
+
- Click on the `API Keys` menu on the left
|
24
|
+
- Create an API key and copy it
|
28
25
|
|
29
|
-
<Image
|
30
|
-
alt={'Create API Key'}
|
31
|
-
inStep
|
32
|
-
src={'https://github.com/user-attachments/assets/72da7af1-e180-4759-84a5-a6f6ca28392e'}
|
33
|
-
/>
|
26
|
+
<Image alt={'Create API Key'} inStep src={'https://github.com/user-attachments/assets/72da7af1-e180-4759-84a5-a6f6ca28392e'} />
|
34
27
|
|
35
|
-
### Step 2: Configure 360AI in LobeChat
|
28
|
+
### Step 2: Configure 360AI in LobeChat
|
36
29
|
|
37
|
-
- Access the `Settings` interface in LobeChat
|
38
|
-
- Under `Language Models`, find the option for `360`
|
30
|
+
- Access the `Settings` interface in LobeChat
|
31
|
+
- Under `Language Models`, find the option for `360`
|
39
32
|
|
40
|
-
<Image
|
41
|
-
alt={'Enter API Key'}
|
42
|
-
inStep
|
43
|
-
src={'https://github.com/user-attachments/assets/a53deb11-2c14-441a-8a5c-a0f3a74e2a63'}
|
44
|
-
/>
|
33
|
+
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/a53deb11-2c14-441a-8a5c-a0f3a74e2a63'} />
|
45
34
|
|
46
|
-
- Enter the API key you obtained
|
47
|
-
- Choose a 360AI model for your AI assistant to start chatting
|
35
|
+
- Enter the API key you obtained
|
36
|
+
- Choose a 360AI model for your AI assistant to start chatting
|
48
37
|
|
49
|
-
<Image
|
50
|
-
alt={'Select 360 Model and Start Chatting'}
|
51
|
-
inStep
|
52
|
-
src={'https://github.com/user-attachments/assets/452d0b48-5ff7-4f42-a46e-68a62b87632b'}
|
53
|
-
/>
|
54
|
-
|
55
|
-
<Callout type={'warning'}>
|
56
|
-
Please note that you may need to pay the API service provider during use, refer to the relevant
|
57
|
-
pricing policy of the 360AI.
|
58
|
-
</Callout>
|
38
|
+
<Image alt={'Select 360 Model and Start Chatting'} inStep src={'https://github.com/user-attachments/assets/452d0b48-5ff7-4f42-a46e-68a62b87632b'} />
|
59
39
|
|
40
|
+
<Callout type={'warning'}>
|
41
|
+
Please note that you may need to pay the API service provider during use, refer to the relevant
|
42
|
+
pricing policy of the 360AI.
|
43
|
+
</Callout>
|
60
44
|
</Steps>
|
61
45
|
|
62
46
|
You can now use the models provided by the 360AI for conversations in LobeChat.
|
@@ -8,54 +8,38 @@ tags:
|
|
8
8
|
- Web UI
|
9
9
|
---
|
10
10
|
|
11
|
-
# 在 LobeChat 中使用360智脑
|
11
|
+
# 在 LobeChat 中使用 360 智脑
|
12
12
|
|
13
|
-
<Image
|
14
|
-
cover
|
15
|
-
src={'https://github.com/user-attachments/assets/e617def1-ce50-4acc-974b-12f5ed592a0e'}
|
16
|
-
/>
|
13
|
+
<Image cover src={'https://github.com/user-attachments/assets/e617def1-ce50-4acc-974b-12f5ed592a0e'} />
|
17
14
|
|
18
|
-
[360智脑](https://ai.360.com/)是360公司自主研发的认知型通用大模型,旨在为企业和开发者提供强大的自然语言处理能力。该模型已升级至4.0版本,能够支持多种应用场景,包括对话服务、图片生成、向量数据库服务等。
|
15
|
+
[360 智脑](https://ai.360.com/)是 360 公司自主研发的认知型通用大模型,旨在为企业和开发者提供强大的自然语言处理能力。该模型已升级至 4.0 版本,能够支持多种应用场景,包括对话服务、图片生成、向量数据库服务等。
|
19
16
|
|
20
|
-
本文将指导你如何在 LobeChat 中使用360智脑。
|
17
|
+
本文将指导你如何在 LobeChat 中使用 360 智脑。
|
21
18
|
|
22
19
|
<Steps>
|
23
|
-
### 步骤一:获得360智脑的 API Key
|
20
|
+
### 步骤一:获得 360 智脑的 API Key
|
24
21
|
|
25
|
-
- 注册并登录 [360智脑 API 开放平台](https://ai.360.com/platform/keys)
|
26
|
-
- 点击左侧 `API Keys` 菜单
|
27
|
-
- 创建一个 API 密钥并复制
|
22
|
+
- 注册并登录 [360 智脑 API 开放平台](https://ai.360.com/platform/keys)
|
23
|
+
- 点击左侧 `API Keys` 菜单
|
24
|
+
- 创建一个 API 密钥并复制
|
28
25
|
|
29
|
-
<Image
|
30
|
-
alt={'创建API密钥'}
|
31
|
-
inStep
|
32
|
-
src={'https://github.com/user-attachments/assets/72da7af1-e180-4759-84a5-a6f6ca28392e'}
|
33
|
-
/>
|
26
|
+
<Image alt={'创建API密钥'} inStep src={'https://github.com/user-attachments/assets/72da7af1-e180-4759-84a5-a6f6ca28392e'} />
|
34
27
|
|
35
|
-
### 步骤二:在 LobeChat 中配置360智脑
|
28
|
+
### 步骤二:在 LobeChat 中配置 360 智脑
|
36
29
|
|
37
|
-
- 访问 LobeChat 的`设置`界面
|
38
|
-
- 在`语言模型`下找到 `360` 的设置项
|
30
|
+
- 访问 LobeChat 的`设置`界面
|
31
|
+
- 在`语言模型`下找到 `360` 的设置项
|
39
32
|
|
40
|
-
<Image
|
41
|
-
alt={'填入 API 密钥'}
|
42
|
-
inStep
|
43
|
-
src={'https://github.com/user-attachments/assets/a53deb11-2c14-441a-8a5c-a0f3a74e2a63'}
|
44
|
-
/>
|
33
|
+
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/a53deb11-2c14-441a-8a5c-a0f3a74e2a63'} />
|
45
34
|
|
46
|
-
- 填入获得的 API 密钥
|
47
|
-
- 为你的 AI 助手选择一个360智脑的模型即可开始对话
|
35
|
+
- 填入获得的 API 密钥
|
36
|
+
- 为你的 AI 助手选择一个 360 智脑的模型即可开始对话
|
48
37
|
|
49
|
-
<Image
|
50
|
-
alt={'选择360模型并开始对话'}
|
51
|
-
inStep
|
52
|
-
src={'https://github.com/user-attachments/assets/452d0b48-5ff7-4f42-a46e-68a62b87632b'}
|
53
|
-
/>
|
54
|
-
|
55
|
-
<Callout type={'warning'}>
|
56
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考360智脑的相关费用政策。
|
57
|
-
</Callout>
|
38
|
+
<Image alt={'选择360模型并开始对话'} inStep src={'https://github.com/user-attachments/assets/452d0b48-5ff7-4f42-a46e-68a62b87632b'} />
|
58
39
|
|
40
|
+
<Callout type={'warning'}>
|
41
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 360 智脑的相关费用政策。
|
42
|
+
</Callout>
|
59
43
|
</Steps>
|
60
44
|
|
61
|
-
至此你已经可以在 LobeChat 中使用360智脑提供的模型进行对话了。
|
45
|
+
至此你已经可以在 LobeChat 中使用 360 智脑提供的模型进行对话了。
|
@@ -13,66 +13,44 @@ tags:
|
|
13
13
|
|
14
14
|
# Using Anthropic Claude in LobeChat
|
15
15
|
|
16
|
-
<Image
|
17
|
-
alt={'Using Anthropic Claude in LobeChat'}
|
18
|
-
cover
|
19
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'}
|
20
|
-
/>
|
16
|
+
<Image alt={'Using Anthropic Claude in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'} />
|
21
17
|
|
22
18
|
The Anthropic Claude API is now available for everyone to use. This document will guide you on how to use [Anthropic Claude](https://www.anthropic.com/api) in LobeChat:
|
23
19
|
|
24
20
|
<Steps>
|
21
|
+
### Step 1: Obtain Anthropic Claude API Key
|
25
22
|
|
26
|
-
|
23
|
+
- Create an [Anthropic Claude API](https://www.anthropic.com/api) account.
|
24
|
+
- Get your [API key](https://console.anthropic.com/settings/keys).
|
27
25
|
|
28
|
-
|
29
|
-
- Get your [API key](https://console.anthropic.com/settings/keys).
|
26
|
+
<Image alt={'Create API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/15e09e71-5899-4805-9c5e-1f7c57be04ae'} />
|
30
27
|
|
31
|
-
<
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
28
|
+
<Callout type={'warning'}>
|
29
|
+
The Claude API currently offers $5 of free credits, but it is only available in certain specific
|
30
|
+
countries/regions. You can go to Dashboard > Claim to see if it is applicable to your
|
31
|
+
country/region.
|
32
|
+
</Callout>
|
36
33
|
|
37
|
-
|
38
|
-
The Claude API currently offers $5 of free credits, but it is only available in certain specific
|
39
|
-
countries/regions. You can go to Dashboard > Claim to see if it is applicable to your
|
40
|
-
country/region.
|
41
|
-
</Callout>
|
34
|
+
- Set up your billing for the API key to work on [https://console.anthropic.com/settings/plans](https://console.anthropic.com/settings/plans) (choose the "Build" plan so you can add credits and only pay for usage).
|
42
35
|
|
43
|
-
|
36
|
+
<Image alt={'Set Up Your Billing'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'} />
|
44
37
|
|
45
|
-
|
46
|
-
alt={'Set Up Your Billing'}
|
47
|
-
inStep
|
48
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'}
|
49
|
-
/>
|
38
|
+
### Step 2: Configure Anthropic Claude in LobeChat
|
50
39
|
|
51
|
-
|
40
|
+
- Access the `Settings` interface in LobeChat.
|
41
|
+
- Find the setting for `Anthropic Claude` under `Language Models`.
|
52
42
|
|
53
|
-
|
54
|
-
- Find the setting for `Anthropic Claude` under `Language Models`.
|
43
|
+
<Image alt={'Enter API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'} />
|
55
44
|
|
56
|
-
|
57
|
-
|
58
|
-
inStep
|
59
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'}
|
60
|
-
/>
|
45
|
+
- Enter the obtained API key.
|
46
|
+
- Choose an Anthropic Claude model for your AI assistant to start the conversation.
|
61
47
|
|
62
|
-
|
63
|
-
- Choose an Anthropic Claude model for your AI assistant to start the conversation.
|
64
|
-
|
65
|
-
<Image
|
66
|
-
alt={'Select Anthropic Claude Model and Start Conversation'}
|
67
|
-
inStep
|
68
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'}
|
69
|
-
/>
|
70
|
-
|
71
|
-
<Callout type={'warning'}>
|
72
|
-
During usage, you may need to pay the API service provider. Please refer to Anthropic Claude's
|
73
|
-
relevant pricing policies.
|
74
|
-
</Callout>
|
48
|
+
<Image alt={'Select Anthropic Claude Model and Start Conversation'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'} />
|
75
49
|
|
50
|
+
<Callout type={'warning'}>
|
51
|
+
During usage, you may need to pay the API service provider. Please refer to Anthropic Claude's
|
52
|
+
relevant pricing policies.
|
53
|
+
</Callout>
|
76
54
|
</Steps>
|
77
55
|
|
78
56
|
You can now engage in conversations using the models provided by Anthropic Claude in LobeChat.
|