@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
@@ -9,96 +9,60 @@ tags:
|
|
9
9
|
|
10
10
|
# 在 LobeChat 中使用 OpenRouter
|
11
11
|
|
12
|
-
<Image
|
13
|
-
alt={'在 LobeChat 中使用 OpenRouter'}
|
14
|
-
cover
|
15
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/40520a43-ac03-4954-8a4d-282fbb946066'}
|
16
|
-
/>
|
12
|
+
<Image alt={'在 LobeChat 中使用 OpenRouter'} cover src={'https://github.com/lobehub/lobe-chat/assets/34400653/40520a43-ac03-4954-8a4d-282fbb946066'} />
|
17
13
|
|
18
14
|
[OpenRouter](https://openrouter.ai/) 是一个提供多种优秀大语言模型 API 的服务,它支持 OpenAI (包括 GPT-3.5/4)、Anthropic (Claude2、Instant)、LLaMA 2 和 PaLM Bison 等众多模型。
|
19
15
|
|
20
16
|
本文档将指导你如何在 LobeChat 中使用 OpenRouter:
|
21
17
|
|
22
18
|
<Steps>
|
19
|
+
### 步骤一:注册 OpenRouter 账号并登录
|
23
20
|
|
24
|
-
|
21
|
+
- 访问 [OpenRouter.ai](https://openrouter.ai/) 并创建一个账号
|
22
|
+
- 你可以用 Google 账号或 MetaMask 钱包登录
|
25
23
|
|
26
|
-
|
27
|
-
- 你可以用 Google 账号或 MetaMask 钱包登录
|
24
|
+
<Image alt={'注册 OpenRouter'} height={457} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/a024af40-e1d9-4df0-b998-0e6e87cebe5b'} />
|
28
25
|
|
29
|
-
|
30
|
-
alt={'注册 OpenRouter'}
|
31
|
-
height={457}
|
32
|
-
inStep
|
33
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/a024af40-e1d9-4df0-b998-0e6e87cebe5b'}
|
34
|
-
/>
|
26
|
+
### 步骤二:创建 API 密钥
|
35
27
|
|
36
|
-
|
28
|
+
- 进入 `Keys` 菜单或直接访问 [OpenRouter Keys](https://openrouter.ai/keys)
|
29
|
+
- 点击 `Create Key` 开始创建
|
30
|
+
- 在弹出对话框中为 API 密钥取一个名字,例如 "LobeChat Key"
|
31
|
+
- 留空 `Credit limit` 表示不设置金额限制
|
37
32
|
|
38
|
-
|
39
|
-
- 点击 `Create Key` 开始创建
|
40
|
-
- 在弹出对话框中为 API 密钥取一个名字,例如 "LobeChat Key"
|
41
|
-
- 留空 `Credit limit` 表示不设置金额限制
|
33
|
+
<Image alt={'创建 OpenRouter Key'} height={460} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/094d701f-ce80-464a-bbbc-0a5ecc8d08e3'} />
|
42
34
|
|
43
|
-
|
44
|
-
alt={'创建 OpenRouter Key'}
|
45
|
-
height={460}
|
46
|
-
inStep
|
47
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/094d701f-ce80-464a-bbbc-0a5ecc8d08e3'}
|
48
|
-
/>
|
35
|
+
- 在弹出的对话框中复制 API 密钥,并妥善保存
|
49
36
|
|
50
|
-
|
37
|
+
<Image alt={'获取 OpenRouter Key'} height={519} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/7a012a11-87bd-4366-a567-0ebf6d12ae10'} />
|
51
38
|
|
52
|
-
<
|
53
|
-
|
54
|
-
|
55
|
-
inStep
|
56
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/7a012a11-87bd-4366-a567-0ebf6d12ae10'}
|
57
|
-
/>
|
39
|
+
<Callout type={'warning'}>
|
40
|
+
请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新密钥。
|
41
|
+
</Callout>
|
58
42
|
|
59
|
-
|
60
|
-
请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新密钥。
|
61
|
-
</Callout>
|
43
|
+
### 步骤三:充值信用额度
|
62
44
|
|
63
|
-
|
45
|
+
- 进入 `Credit` 菜单,或直接访问 [OpenRouter Credit](https://openrouter.ai/credits)
|
46
|
+
- 点击 `Manage Credits` 充值信用额度,在 [https://openrouter.ai/models](https://openrouter.ai/models) 中可以查看模型价格
|
47
|
+
- OpenRouter 提供了一些免费模型,未充值的情况下可以使用
|
64
48
|
|
65
|
-
|
66
|
-
- 点击 `Manage Credits` 充值信用额度,在 [https://openrouter.ai/models](https://openrouter.ai/models) 中可以查看模型价格
|
67
|
-
- OpenRouter 提供了一些免费模型,未充值的情况下可以使用
|
49
|
+
<Image alt={'充值 OpenRouter 信用额度'} height={385} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/50b73232-01fc-4ef0-939a-3e06354d1b5a'} />
|
68
50
|
|
69
|
-
|
70
|
-
alt={'充值 OpenRouter 信用额度'}
|
71
|
-
height={385}
|
72
|
-
inStep
|
73
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/50b73232-01fc-4ef0-939a-3e06354d1b5a'}
|
74
|
-
/>
|
51
|
+
### 步骤四:在 LobeChat 中配置 OpenRouter
|
75
52
|
|
76
|
-
|
53
|
+
- 访问 LobeChat 的 `设置` 界面
|
54
|
+
- 在 `语言模型` 下找到 `OpenRouter` 的设置项
|
55
|
+
- 打开 OpenRouter 并填入获得的 API 密钥
|
77
56
|
|
78
|
-
|
79
|
-
- 在 `语言模型` 下找到 `OpenRouter` 的设置项
|
80
|
-
- 打开 OpenRouter 并填入获得的 API 密钥
|
57
|
+
<Image alt={'在 LobeChat 中配置 OpenRouter'} height={518} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/5c3898ab-23d7-44c2-bbd9-b255e25e400c'} />
|
81
58
|
|
82
|
-
|
83
|
-
alt={'在 LobeChat 中配置 OpenRouter'}
|
84
|
-
height={518}
|
85
|
-
inStep
|
86
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/5c3898ab-23d7-44c2-bbd9-b255e25e400c'}
|
87
|
-
/>
|
59
|
+
- 为你的助手选择一个 OpenRouter 模型即可开始对话
|
88
60
|
|
89
|
-
|
90
|
-
|
91
|
-
<Image
|
92
|
-
alt={'使用 OpenRouter 模型'}
|
93
|
-
height={518}
|
94
|
-
inStep
|
95
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/77b5feee-3f46-486d-9a36-31ff60efa5e9'}
|
96
|
-
/>
|
97
|
-
|
98
|
-
<Callout type={'warning'}>
|
99
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考 OpenRouter 的相关费用政策。
|
100
|
-
</Callout>
|
61
|
+
<Image alt={'使用 OpenRouter 模型'} height={518} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/77b5feee-3f46-486d-9a36-31ff60efa5e9'} />
|
101
62
|
|
63
|
+
<Callout type={'warning'}>
|
64
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 OpenRouter 的相关费用政策。
|
65
|
+
</Callout>
|
102
66
|
</Steps>
|
103
67
|
|
104
68
|
至此你已经可以在 LobeChat 中使用 OpenRouter 提供的模型进行对话了。
|
@@ -11,52 +11,34 @@ tags:
|
|
11
11
|
|
12
12
|
# Using Perplexity AI in LobeChat
|
13
13
|
|
14
|
-
<Image
|
15
|
-
alt={'Using Perplexity AI in LobeChat'}
|
16
|
-
cover
|
17
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/0c2c399f-2ed3-44b5-97c8-53e007e8c095'}
|
18
|
-
/>
|
14
|
+
<Image alt={'Using Perplexity AI in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/0c2c399f-2ed3-44b5-97c8-53e007e8c095'} />
|
19
15
|
|
20
16
|
The Perplexity AI API is now available for everyone to use. This document will guide you on how to use [Perplexity AI](https://www.perplexity.ai/) in LobeChat:
|
21
17
|
|
22
18
|
<Steps>
|
19
|
+
### Step 1: Obtain Perplexity AI API Key
|
23
20
|
|
24
|
-
|
21
|
+
- Create a [Perplexity AI](https://www.perplexity.ai/) account
|
22
|
+
- Obtain your [API key](https://www.perplexity.ai/settings/api)
|
25
23
|
|
26
|
-
|
27
|
-
- Obtain your [API key](https://www.perplexity.ai/settings/api)
|
24
|
+
<Image alt={'Create API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/80e22593-dc0f-482c-99bf-69acdb62d952'} />
|
28
25
|
|
29
|
-
|
30
|
-
alt={'Create API Key'}
|
31
|
-
inStep
|
32
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/80e22593-dc0f-482c-99bf-69acdb62d952'}
|
33
|
-
/>
|
26
|
+
### Step 2: Configure Perplexity AI in LobeChat
|
34
27
|
|
35
|
-
|
28
|
+
- Go to the `Settings` interface in LobeChat
|
29
|
+
- Find the setting for `Perplexity AI` under `Language Model`
|
36
30
|
|
37
|
-
|
38
|
-
- Find the setting for `Perplexity AI` under `Language Model`
|
31
|
+
<Image alt={'Enter API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/51f8f8f6-5d8a-4cf0-a2e5-d96c69fe05b8'} />
|
39
32
|
|
40
|
-
|
41
|
-
|
42
|
-
inStep
|
43
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/51f8f8f6-5d8a-4cf0-a2e5-d96c69fe05b8'}
|
44
|
-
/>
|
33
|
+
- Enter the API key you obtained
|
34
|
+
- Choose a Perplexity AI model for your AI assistant to start the conversation
|
45
35
|
|
46
|
-
|
47
|
-
- Choose a Perplexity AI model for your AI assistant to start the conversation
|
48
|
-
|
49
|
-
<Image
|
50
|
-
alt={'Select Perplexity AI model and start conversation'}
|
51
|
-
inStep
|
52
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/e6a429cb-96e1-4e85-9aa3-1334ffcad8c0'}
|
53
|
-
/>
|
54
|
-
|
55
|
-
<Callout type={'warning'}>
|
56
|
-
During usage, you may need to pay the API service provider. Please refer to Perplexity AI's
|
57
|
-
relevant pricing policies.
|
58
|
-
</Callout>
|
36
|
+
<Image alt={'Select Perplexity AI model and start conversation'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/e6a429cb-96e1-4e85-9aa3-1334ffcad8c0'} />
|
59
37
|
|
38
|
+
<Callout type={'warning'}>
|
39
|
+
During usage, you may need to pay the API service provider. Please refer to Perplexity AI's
|
40
|
+
relevant pricing policies.
|
41
|
+
</Callout>
|
60
42
|
</Steps>
|
61
43
|
|
62
44
|
You can now engage in conversations using the models provided by Perplexity AI in LobeChat.
|
@@ -9,51 +9,33 @@ tags:
|
|
9
9
|
|
10
10
|
# 在 LobeChat 中使用 Perplexity AI
|
11
11
|
|
12
|
-
<Image
|
13
|
-
alt={'在 LobeChat 中使用 Perplexity AI'}
|
14
|
-
cover
|
15
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/0c2c399f-2ed3-44b5-97c8-53e007e8c095'}
|
16
|
-
/>
|
12
|
+
<Image alt={'在 LobeChat 中使用 Perplexity AI'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/0c2c399f-2ed3-44b5-97c8-53e007e8c095'} />
|
17
13
|
|
18
|
-
Perplexity AI API
|
14
|
+
Perplexity AI API 现在可供所有人使用,本文档将指导你如何在 LobeChat 中使用 [Perplexity AI](https://www.perplexity.ai/):
|
19
15
|
|
20
16
|
<Steps>
|
17
|
+
### 步骤一:获取 Perplexity AI API 密钥
|
21
18
|
|
22
|
-
|
19
|
+
- 创建一个 [Perplexity AI](https://www.perplexity.ai/) 帐户
|
20
|
+
- 获取您的 [API 密钥](https://www.perplexity.ai/settings/api)
|
23
21
|
|
24
|
-
|
25
|
-
- 获取您的 [API 密钥](https://www.perplexity.ai/settings/api)
|
22
|
+
<Image alt={'创建 API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/80e22593-dc0f-482c-99bf-69acdb62d952'} />
|
26
23
|
|
27
|
-
|
28
|
-
alt={'创建 API Key'}
|
29
|
-
inStep
|
30
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/80e22593-dc0f-482c-99bf-69acdb62d952'}
|
31
|
-
/>
|
24
|
+
### 步骤二:在 LobeChat 中配置 Perplexity AI
|
32
25
|
|
33
|
-
|
26
|
+
- 访问 LobeChat 的`设置`界面
|
27
|
+
- 在`语言模型`下找到`Perplexity AI`的设置项
|
34
28
|
|
35
|
-
|
36
|
-
- 在`语言模型`下找到`Perplexity AI`的设置项
|
29
|
+
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/51f8f8f6-5d8a-4cf0-a2e5-d96c69fe05b8'} />
|
37
30
|
|
38
|
-
|
39
|
-
|
40
|
-
inStep
|
41
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/51f8f8f6-5d8a-4cf0-a2e5-d96c69fe05b8'}
|
42
|
-
/>
|
31
|
+
- 填入获得的 API 密钥
|
32
|
+
- 为你的 AI 助手选择一个 Perplexity AI 的模型即可开始对话
|
43
33
|
|
44
|
-
|
45
|
-
- 为你的 AI 助手选择一个 Perplexity AI 的模型即可开始对话
|
46
|
-
|
47
|
-
<Image
|
48
|
-
alt={'选择 Perplexity AI 模型并开始对话'}
|
49
|
-
inStep
|
50
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/e6a429cb-96e1-4e85-9aa3-1334ffcad8c0'}
|
51
|
-
/>
|
52
|
-
|
53
|
-
<Callout type={'warning'}>
|
54
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考 Perplexity AI 的相关费用政策。
|
55
|
-
</Callout>
|
34
|
+
<Image alt={'选择 Perplexity AI 模型并开始对话'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/e6a429cb-96e1-4e85-9aa3-1334ffcad8c0'} />
|
56
35
|
|
36
|
+
<Callout type={'warning'}>
|
37
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 Perplexity AI 的相关费用政策。
|
38
|
+
</Callout>
|
57
39
|
</Steps>
|
58
40
|
|
59
41
|
至此你已经可以在 LobeChat 中使用 Perplexity AI 提供的模型进行对话了。
|
@@ -15,78 +15,52 @@ tags:
|
|
15
15
|
|
16
16
|
# Using Tongyi Qianwen in LobeChat
|
17
17
|
|
18
|
-
<Image
|
19
|
-
alt={'Using Tongyi Qianwen in LobeChat'}
|
20
|
-
cover
|
21
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e057b43-1e3e-4e96-a948-7cdbff303dcb'}
|
22
|
-
/>
|
18
|
+
<Image alt={'Using Tongyi Qianwen in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e057b43-1e3e-4e96-a948-7cdbff303dcb'} />
|
23
19
|
|
24
20
|
[Tongyi Qianwen](https://tongyi.aliyun.com/) is a large-scale language model independently developed by Alibaba Cloud, with powerful natural language understanding and generation capabilities. It can answer various questions, create text content, express opinions, write code, and play a role in multiple fields.
|
25
21
|
|
26
22
|
This document will guide you on how to use Tongyi Qianwen in LobeChat:
|
27
23
|
|
28
24
|
<Steps>
|
25
|
+
### Step 1: Activate DashScope Model Service
|
29
26
|
|
30
|
-
|
27
|
+
- Visit and log in to Alibaba Cloud's [DashScope](https://dashscope.console.aliyun.com/) platform.
|
28
|
+
- If it is your first time, you need to activate the DashScope service.
|
29
|
+
- If you have already activated it, you can skip this step.
|
31
30
|
|
32
|
-
|
33
|
-
- If it is your first time, you need to activate the DashScope service.
|
34
|
-
- If you have already activated it, you can skip this step.
|
31
|
+
<Image alt={'Activate DashScope service'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/4f8d0102-7ca7-4f23-b96f-3fc5cf2cd66e'} />
|
35
32
|
|
36
|
-
|
37
|
-
alt={'Activate DashScope service'}
|
38
|
-
inStep
|
39
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4f8d0102-7ca7-4f23-b96f-3fc5cf2cd66e'}
|
40
|
-
/>
|
33
|
+
### Step 2: Obtain DashScope API Key
|
41
34
|
|
42
|
-
|
35
|
+
- Go to the `API-KEY` interface and create an API key.
|
43
36
|
|
44
|
-
|
37
|
+
<Image alt={'Create Tongyi Qianwen API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/eee046cb-189b-4635-ac94-19d50b17a18a'} />
|
45
38
|
|
46
|
-
|
47
|
-
alt={'Create Tongyi Qianwen API key'}
|
48
|
-
inStep
|
49
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/eee046cb-189b-4635-ac94-19d50b17a18a'}
|
50
|
-
/>
|
39
|
+
- Copy the API key from the pop-up dialog box and save it securely.
|
51
40
|
|
52
|
-
|
41
|
+
<Image alt={'Copy Tongyi Qianwen API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/cec2e032-54e1-49b1-a212-4d9736927156'} />
|
53
42
|
|
54
|
-
<
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
/>
|
43
|
+
<Callout type={'warning'}>
|
44
|
+
Please store the key securely as it will only appear once. If you accidentally lose it, you will
|
45
|
+
need to create a new key.
|
46
|
+
</Callout>
|
59
47
|
|
60
|
-
|
61
|
-
Please store the key securely as it will only appear once. If you accidentally lose it, you will
|
62
|
-
need to create a new key.
|
63
|
-
</Callout>
|
48
|
+
### Step 3: Configure Tongyi Qianwen in LobeChat
|
64
49
|
|
65
|
-
|
50
|
+
- Visit the `Settings` interface in LobeChat.
|
51
|
+
- Find the setting for `Tongyi Qianwen` under `Language Model`.
|
66
52
|
|
67
|
-
|
68
|
-
- Find the setting for `Tongyi Qianwen` under `Language Model`.
|
53
|
+
<Image alt={'Enter API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/c2e6a58b-95eb-4f40-8add-83f4316a719b'} />
|
69
54
|
|
70
|
-
|
71
|
-
|
72
|
-
inStep
|
73
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/c2e6a58b-95eb-4f40-8add-83f4316a719b'}
|
74
|
-
/>
|
55
|
+
- Open Tongyi Qianwen and enter the obtained API key.
|
56
|
+
- Choose a Qwen model for your AI assistant to start the conversation.
|
75
57
|
|
76
|
-
|
77
|
-
- Choose a Qwen model for your AI assistant to start the conversation.
|
78
|
-
|
79
|
-
<Image
|
80
|
-
alt={'Select Qwen model and start conversation'}
|
81
|
-
inStep
|
82
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/f4a23c2a-503e-4731-bc4d-922bce0b6039'}
|
83
|
-
/>
|
84
|
-
|
85
|
-
<Callout type={'warning'}>
|
86
|
-
During usage, you may need to pay the API service provider. Please refer to Tongyi Qianwen's
|
87
|
-
relevant pricing policies.
|
88
|
-
</Callout>
|
58
|
+
<Image alt={'Select Qwen model and start conversation'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/f4a23c2a-503e-4731-bc4d-922bce0b6039'} />
|
89
59
|
|
60
|
+
<Callout type={'warning'}>
|
61
|
+
During usage, you may need to pay the API service provider. Please refer to Tongyi Qianwen's
|
62
|
+
relevant pricing policies.
|
63
|
+
</Callout>
|
90
64
|
</Steps>
|
91
65
|
|
92
66
|
You can now engage in conversations using the models provided by Tongyi Qianwen in LobeChat.
|
@@ -12,76 +12,50 @@ tags:
|
|
12
12
|
|
13
13
|
# 在 LobeChat 中使用通义千问
|
14
14
|
|
15
|
-
<Image
|
16
|
-
alt={'在 LobeChat 中使用通义千问'}
|
17
|
-
cover
|
18
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e057b43-1e3e-4e96-a948-7cdbff303dcb'}
|
19
|
-
/>
|
15
|
+
<Image alt={'在 LobeChat 中使用通义千问'} cover src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e057b43-1e3e-4e96-a948-7cdbff303dcb'} />
|
20
16
|
|
21
|
-
[通义千问](https://tongyi.aliyun.com/)
|
17
|
+
[通义千问](https://tongyi.aliyun.com/)是阿里云自主研发的超大规模语言模型,具有强大的自然语言理解和生成能力。它可以回答各种问题、创作文字内容、表达观点看法、撰写代码等,在多个领域发挥作用。
|
22
18
|
|
23
19
|
本文档将指导你如何在 LobeChat 中使用通义千问:
|
24
20
|
|
25
21
|
<Steps>
|
22
|
+
### 步骤一:开通 DashScope 模型服务
|
26
23
|
|
27
|
-
|
24
|
+
- 访问并登录阿里云 [DashScope](https://dashscope.console.aliyun.com/) 平台
|
25
|
+
- 初次进入时需要开通 DashScope 服务
|
26
|
+
- 若你已开通,可跳过该步骤
|
28
27
|
|
29
|
-
|
30
|
-
- 初次进入时需要开通 DashScope 服务
|
31
|
-
- 若你已开通,可跳过该步骤
|
28
|
+
<Image alt={'开通 DashScope 服务'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/4f8d0102-7ca7-4f23-b96f-3fc5cf2cd66e'} />
|
32
29
|
|
33
|
-
|
34
|
-
alt={'开通 DashScope 服务'}
|
35
|
-
inStep
|
36
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4f8d0102-7ca7-4f23-b96f-3fc5cf2cd66e'}
|
37
|
-
/>
|
30
|
+
### 步骤二:获取 DashScope API 密钥
|
38
31
|
|
39
|
-
|
32
|
+
- 进入`API-KEY` 界面,并创建一个 API 密钥
|
40
33
|
|
41
|
-
|
34
|
+
<Image alt={'创建通义千问 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/eee046cb-189b-4635-ac94-19d50b17a18a'} />
|
42
35
|
|
43
|
-
|
44
|
-
alt={'创建通义千问 API 密钥'}
|
45
|
-
inStep
|
46
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/eee046cb-189b-4635-ac94-19d50b17a18a'}
|
47
|
-
/>
|
36
|
+
- 在弹出的对话框中复制 API 密钥,并妥善保存
|
48
37
|
|
49
|
-
|
38
|
+
<Image alt={'复制通义千问 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/cec2e032-54e1-49b1-a212-4d9736927156'} />
|
50
39
|
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/cec2e032-54e1-49b1-a212-4d9736927156'}
|
55
|
-
/>
|
40
|
+
<Callout type={'warning'}>
|
41
|
+
请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新密钥。
|
42
|
+
</Callout>
|
56
43
|
|
57
|
-
|
58
|
-
请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新密钥。
|
59
|
-
</Callout>
|
44
|
+
### 步骤三:在 LobeChat 中配置通义千问
|
60
45
|
|
61
|
-
|
46
|
+
- 访问 LobeChat 的`设置`界面
|
47
|
+
- 在`语言模型`下找到`通义千问`的设置项
|
62
48
|
|
63
|
-
|
64
|
-
- 在`语言模型`下找到`通义千问`的设置项
|
49
|
+
<Image alt={'填写 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/c2e6a58b-95eb-4f40-8add-83f4316a719b'} />
|
65
50
|
|
66
|
-
|
67
|
-
|
68
|
-
inStep
|
69
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/c2e6a58b-95eb-4f40-8add-83f4316a719b'}
|
70
|
-
/>
|
51
|
+
- 打开通义千问并填入获得的 API 密钥
|
52
|
+
- 为你的 AI 助手选择一个 Qwen 的模型即可开始对话
|
71
53
|
|
72
|
-
|
73
|
-
- 为你的 AI 助手选择一个 Qwen 的模型即可开始对话
|
74
|
-
|
75
|
-
<Image
|
76
|
-
alt={'选择 Qwen 模型并开始对话'}
|
77
|
-
inStep
|
78
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/f4a23c2a-503e-4731-bc4d-922bce0b6039'}
|
79
|
-
/>
|
80
|
-
|
81
|
-
<Callout type={'warning'}>
|
82
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考通义千问的相关费用政策。
|
83
|
-
</Callout>
|
54
|
+
<Image alt={'选择 Qwen 模型并开始对话'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/f4a23c2a-503e-4731-bc4d-922bce0b6039'} />
|
84
55
|
|
56
|
+
<Callout type={'warning'}>
|
57
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考通义千问的相关费用政策。
|
58
|
+
</Callout>
|
85
59
|
</Steps>
|
86
60
|
|
87
61
|
至此你已经可以在 LobeChat 中使用通义千问提供的模型进行对话了。
|
@@ -12,68 +12,47 @@ tags:
|
|
12
12
|
|
13
13
|
# Using SenseNova in LobeChat
|
14
14
|
|
15
|
-
<Image
|
16
|
-
cover
|
17
|
-
src={'https://github.com/user-attachments/assets/420379cd-d8a4-4ab3-9a46-75dcc3d56920'}
|
18
|
-
/>
|
15
|
+
<Image cover src={'https://github.com/user-attachments/assets/420379cd-d8a4-4ab3-9a46-75dcc3d56920'} />
|
19
16
|
|
20
17
|
[SenseNova](https://platform.sensenova.cn/home) is a large model system introduced by SenseTime, aimed at promoting the rapid iteration and practical application of artificial intelligence (AI) technology.
|
21
18
|
|
22
19
|
This article will guide you on how to use SenseNova in LobeChat.
|
23
20
|
|
24
21
|
<Steps>
|
22
|
+
### Step 1: Obtain the API Key for SenseNova
|
25
23
|
|
26
|
-
|
24
|
+
- Register and log in to the [SenseCore Development Platform](https://www.sensecore.cn/product/aistudio).
|
25
|
+
- Locate the `SenseNova Large Model` in the product menu and activate the service.
|
27
26
|
|
28
|
-
|
29
|
-
- Locate the `SenseNova Large Model` in the product menu and activate the service.
|
27
|
+
<Image alt={'Activate SenseNova Large Model'} inStep src={'https://github.com/user-attachments/assets/c6319e83-c4e7-48cf-9625-2edfc4aa77b3'} />
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
src={'https://github.com/user-attachments/assets/c6319e83-c4e7-48cf-9625-2edfc4aa77b3'}
|
35
|
-
/>
|
29
|
+
- Go to the [AccessKey Management](https://console.sensecore.cn/iam/Security/access-key) page.
|
30
|
+
- Create an access key.
|
31
|
+
- Save the Access Key ID and secret in the pop-up window.
|
36
32
|
|
37
|
-
|
38
|
-
- Create an access key.
|
39
|
-
- Save the Access Key ID and secret in the pop-up window.
|
33
|
+
<Image alt={'Save Access Key'} inStep src={'https://github.com/user-attachments/assets/f9f7ed26-e506-4c52-a118-e0bb5e0918db'} />
|
40
34
|
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
/>
|
35
|
+
<Callout type={'warning'}>
|
36
|
+
Please keep the access key from the pop-up window secure, as it will only appear once. If you lose
|
37
|
+
it, you will need to create a new access key.
|
38
|
+
</Callout>
|
46
39
|
|
47
|
-
|
48
|
-
Please keep the access key from the pop-up window secure, as it will only appear once. If you lose
|
49
|
-
it, you will need to create a new access key.
|
50
|
-
</Callout>
|
40
|
+
### Step 2: Configure SenseNova in LobeChat
|
51
41
|
|
52
|
-
|
42
|
+
- Access the `Settings` interface on LobeChat.
|
43
|
+
- Find the setting for `SenseNova` under `Language Models`.
|
53
44
|
|
54
|
-
|
55
|
-
- Find the setting for `SenseNova` under `Language Models`.
|
45
|
+
<Image alt={'Enter Access Key'} inStep src={'https://github.com/user-attachments/assets/0c73c453-6ee3-4f90-bc5d-119c52c38fef'} />
|
56
46
|
|
57
|
-
|
58
|
-
|
59
|
-
inStep
|
60
|
-
src={'https://github.com/user-attachments/assets/0c73c453-6ee3-4f90-bc5d-119c52c38fef'}
|
61
|
-
/>
|
47
|
+
- Input the obtained `Access Key ID` and `Access Key Secret`.
|
48
|
+
- Choose a SenseNova model for your AI assistant and start the conversation.
|
62
49
|
|
63
|
-
|
64
|
-
- Choose a SenseNova model for your AI assistant and start the conversation.
|
65
|
-
|
66
|
-
<Image
|
67
|
-
alt={'Choose SenseNova model and start conversation'}
|
68
|
-
inStep
|
69
|
-
src={'https://github.com/user-attachments/assets/aea782b1-27bd-4d9c-b521-c172c2095fe6'}
|
70
|
-
/>
|
71
|
-
|
72
|
-
<Callout type={'warning'}>
|
73
|
-
During usage, you may need to pay the API service provider, please refer to the relevant fee
|
74
|
-
policy for SenseNova.
|
75
|
-
</Callout>
|
50
|
+
<Image alt={'Choose SenseNova model and start conversation'} inStep src={'https://github.com/user-attachments/assets/aea782b1-27bd-4d9c-b521-c172c2095fe6'} />
|
76
51
|
|
52
|
+
<Callout type={'warning'}>
|
53
|
+
During usage, you may need to pay the API service provider, please refer to the relevant fee
|
54
|
+
policy for SenseNova.
|
55
|
+
</Callout>
|
77
56
|
</Steps>
|
78
57
|
|
79
58
|
You can now have conversations using the models provided by SenseNova in LobeChat.
|