@lobehub/chat 1.44.3 → 1.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.remarkrc.mdx.js +6 -0
- package/CHANGELOG.md +50 -0
- package/changelog/v1.json +18 -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/next.config.ts +1 -0
- package/package.json +48 -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
@@ -12,64 +12,42 @@ tags:
|
|
12
12
|
|
13
13
|
# 在 LobeChat 中使用 Anthropic Claude
|
14
14
|
|
15
|
-
<Image
|
16
|
-
alt={'在 LobeChat 中使用 Anthropic Claude'}
|
17
|
-
cover
|
18
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'}
|
19
|
-
/>
|
15
|
+
<Image alt={'在 LobeChat 中使用 Anthropic Claude'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'} />
|
20
16
|
|
21
|
-
Anthropic Claude API
|
17
|
+
Anthropic Claude API 现在可供所有人使用,本文档将指导你如何在 LobeChat 中使用 [Anthropic Claude](https://www.anthropic.com/api):
|
22
18
|
|
23
19
|
<Steps>
|
20
|
+
### 步骤一:获取 Anthropic Claude API 密钥
|
24
21
|
|
25
|
-
|
22
|
+
- 创建一个 [Anthropic Claude API](https://www.anthropic.com/api) 帐户
|
23
|
+
- 获取您的 [API 密钥](https://console.anthropic.com/settings/keys)
|
26
24
|
|
27
|
-
|
28
|
-
- 获取您的 [API 密钥](https://console.anthropic.com/settings/keys)
|
25
|
+
<Image alt={'创建 API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/15e09e71-5899-4805-9c5e-1f7c57be04ae'} />
|
29
26
|
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
/>
|
27
|
+
<Callout type={'warning'}>
|
28
|
+
Claude API 现在提供 5 美元的免费积分,但是,它仅适用于某些特定国家 / 地区,您可以转到 Dashboard >
|
29
|
+
Claim 查看它是否适用于您所在的国家 / 地区。
|
30
|
+
</Callout>
|
35
31
|
|
36
|
-
|
37
|
-
Claude API 现在提供 5 美元的免费积分,但是,它仅适用于某些特定国家/地区,您可以转到 Dashboard >
|
38
|
-
Claim 查看它是否适用于您所在的国家/地区。
|
39
|
-
</Callout>
|
32
|
+
- 设置您的账单,让 API 密钥在 [https://console.anthropic.com/settings/plans](https://console.anthropic.com/settings/plans) 上工作(选择 “生成” 计划,以便您可以添加积分并仅为使用量付费)
|
40
33
|
|
41
|
-
|
34
|
+
<Image alt={'设置您的账单'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'} />
|
42
35
|
|
43
|
-
|
44
|
-
alt={'设置您的账单'}
|
45
|
-
inStep
|
46
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'}
|
47
|
-
/>
|
36
|
+
### 步骤二:在 LobeChat 中配置 Anthropic Claude
|
48
37
|
|
49
|
-
|
38
|
+
- 访问 LobeChat 的`设置`界面
|
39
|
+
- 在`语言模型`下找到`Anthropic Claude`的设置项
|
50
40
|
|
51
|
-
|
52
|
-
- 在`语言模型`下找到`Anthropic Claude`的设置项
|
41
|
+
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'} />
|
53
42
|
|
54
|
-
|
55
|
-
|
56
|
-
inStep
|
57
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'}
|
58
|
-
/>
|
43
|
+
- 填入获得的 API 密钥
|
44
|
+
- 为你的 AI 助手选择一个 Anthropic Claude 的模型即可开始对话
|
59
45
|
|
60
|
-
|
61
|
-
- 为你的 AI 助手选择一个 Anthropic Claude 的模型即可开始对话
|
62
|
-
|
63
|
-
<Image
|
64
|
-
alt={'选择 Anthropic Claude 模型并开始对话'}
|
65
|
-
inStep
|
66
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'}
|
67
|
-
/>
|
68
|
-
|
69
|
-
<Callout type={'warning'}>
|
70
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考 Anthropic Claude 的相关费用政策。
|
71
|
-
</Callout>
|
46
|
+
<Image alt={'选择 Anthropic Claude 模型并开始对话'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'} />
|
72
47
|
|
48
|
+
<Callout type={'warning'}>
|
49
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 Anthropic Claude 的相关费用政策。
|
50
|
+
</Callout>
|
73
51
|
</Steps>
|
74
52
|
|
75
53
|
至此你已经可以在 LobeChat 中使用 Anthropic Claude 提供的模型进行对话了。
|
@@ -14,75 +14,45 @@ tags:
|
|
14
14
|
|
15
15
|
# Using Azure OpenAI in LobeChat
|
16
16
|
|
17
|
-
<Image
|
18
|
-
alt={'Azure OpenAI in LobeChat'}
|
19
|
-
cover
|
20
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'}
|
21
|
-
/>
|
17
|
+
<Image alt={'Azure OpenAI in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'} />
|
22
18
|
|
23
19
|
This document will guide you on how to use [Azure OpenAI](https://oai.azure.com/) in LobeChat:
|
24
20
|
|
25
21
|
<Steps>
|
22
|
+
### Step 1: Obtain Azure OpenAI API Key
|
26
23
|
|
27
|
-
|
24
|
+
- If you haven't registered yet, you need to create an [Azure OpenAI account](https://oai.azure.com/).
|
28
25
|
|
29
|
-
|
26
|
+
<Image alt={'Create an Azure OpenAI account'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'} />
|
30
27
|
|
31
|
-
|
32
|
-
alt={'Create an Azure OpenAI account'}
|
33
|
-
inStep
|
34
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'}
|
35
|
-
/>
|
28
|
+
- After registration, go to the `Deployments` page and create a new deployment with your selected model.
|
36
29
|
|
37
|
-
|
30
|
+

|
38
31
|
|
39
|
-
|
32
|
+
<Image alt={'Create a new deployment with your selected model'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'} />
|
40
33
|
|
41
|
-
|
42
|
-
alt={'Create a new deployment with your selected model'}
|
43
|
-
inStep
|
44
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'}
|
45
|
-
/>
|
34
|
+
- Navigate to the `Chat` page and click on `View Code` to obtain your endpoint and key.
|
46
35
|
|
47
|
-
|
36
|
+
<Image alt={'Go to the Chat page'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'} />
|
48
37
|
|
49
|
-
<Image
|
50
|
-
alt={'Go to the Chat page'}
|
51
|
-
inStep
|
52
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'}
|
53
|
-
/>
|
38
|
+
<Image alt={'Get the endpoint and key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'} />
|
54
39
|
|
55
|
-
|
56
|
-
alt={'Get the endpoint and key'}
|
57
|
-
inStep
|
58
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'}
|
59
|
-
/>
|
40
|
+
### Step 2: Configure Azure OpenAI in LobeChat
|
60
41
|
|
61
|
-
|
42
|
+
- Access the `Settings` interface in LobeChat.
|
43
|
+
- Find the setting for `Azure OpenAI` under `Language Model`.
|
62
44
|
|
63
|
-
|
64
|
-
- Find the setting for `Azure OpenAI` under `Language Model`.
|
45
|
+
<Image alt={'Enter the API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'} />
|
65
46
|
|
66
|
-
|
67
|
-
|
68
|
-
inStep
|
69
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'}
|
70
|
-
/>
|
47
|
+
- Enter the API key you obtained.
|
48
|
+
- Choose an Azure OpenAI model for your AI assistant to start the conversation.
|
71
49
|
|
72
|
-
|
73
|
-
- Choose an Azure OpenAI model for your AI assistant to start the conversation.
|
74
|
-
|
75
|
-
<Image
|
76
|
-
alt={'Select Azure OpenAI model and start the conversation'}
|
77
|
-
inStep
|
78
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'}
|
79
|
-
/>
|
80
|
-
|
81
|
-
<Callout type={'warning'}>
|
82
|
-
During usage, you may need to pay the API service provider. Please refer to Azure OpenAI's
|
83
|
-
relevant pricing policies.
|
84
|
-
</Callout>
|
50
|
+
<Image alt={'Select Azure OpenAI model and start the conversation'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'} />
|
85
51
|
|
52
|
+
<Callout type={'warning'}>
|
53
|
+
During usage, you may need to pay the API service provider. Please refer to Azure OpenAI's
|
54
|
+
relevant pricing policies.
|
55
|
+
</Callout>
|
86
56
|
</Steps>
|
87
57
|
|
88
58
|
Now you can engage in conversations using the models provided by Azure OpenAI in LobeChat.
|
@@ -9,71 +9,42 @@ tags:
|
|
9
9
|
|
10
10
|
# 在 LobeChat 中使用 Azure OpenAI
|
11
11
|
|
12
|
-
<Image
|
13
|
-
alt={'在 LobeChat 中使用 Azure OpenAI'}
|
14
|
-
cover
|
15
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'}
|
16
|
-
/>
|
12
|
+
<Image alt={'在 LobeChat 中使用 Azure OpenAI'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'} />
|
17
13
|
|
18
14
|
本文档将指导你如何在 LobeChat 中使用 [Azure OpenAI](https://oai.azure.com/):
|
19
15
|
|
20
16
|
<Steps>
|
17
|
+
### 步骤一:获取 Azure OpenAI API 密钥
|
21
18
|
|
22
|
-
|
19
|
+
- 如果尚未注册,则必须注册 [Azure OpenAI 帐户](https://oai.azure.com/)。
|
23
20
|
|
24
|
-
|
21
|
+
<Image alt={'注册 Azure OpenAI 帐户'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'} />
|
25
22
|
|
26
|
-
|
27
|
-
alt={'注册 Azure OpenAI 帐户'}
|
28
|
-
inStep
|
29
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'}
|
30
|
-
/>
|
23
|
+
- 注册完毕后,转到 `Deployments` 页面,然后使用您选择的模型创建新部署。
|
31
24
|
|
32
|
-
|
25
|
+
<Image alt={'选择的模型创建新部署'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'} />
|
33
26
|
|
34
|
-
|
35
|
-
alt={'选择的模型创建新部署'}
|
36
|
-
inStep
|
37
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'}
|
38
|
-
/>
|
27
|
+
- 转到 `Chat` 页面,然后单击 `View Code` 以获取您的终结点和密钥。
|
39
28
|
|
40
|
-
|
29
|
+
<Image alt={'转到 Chat 页面'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'} />
|
41
30
|
|
42
|
-
<Image
|
43
|
-
alt={'转到 Chat 页面'}
|
44
|
-
inStep
|
45
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'}
|
46
|
-
/>
|
47
|
-
<Image
|
48
|
-
alt={'获取终结点和密钥'}
|
49
|
-
inStep
|
50
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'}
|
51
|
-
/>
|
31
|
+
<Image alt={'获取终结点和密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'} />
|
52
32
|
|
53
|
-
### 步骤二:在 LobeChat 中配置 Azure OpenAI
|
33
|
+
### 步骤二:在 LobeChat 中配置 Azure OpenAI
|
54
34
|
|
55
|
-
- 访问 LobeChat 的`设置`界面
|
56
|
-
- 在`语言模型`下找到`Azure OpenAI`的设置项
|
35
|
+
- 访问 LobeChat 的`设置`界面
|
36
|
+
- 在`语言模型`下找到`Azure OpenAI`的设置项
|
57
37
|
|
58
|
-
<Image
|
59
|
-
alt={'填入 API 密钥'}
|
60
|
-
inStep
|
61
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'}
|
62
|
-
/>
|
38
|
+
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'} />
|
63
39
|
|
64
|
-
- 填入获得的 API 密钥
|
65
|
-
- 为你的 AI 助手选择一个 Azure OpenAI 的模型即可开始对话
|
40
|
+
- 填入获得的 API 密钥
|
41
|
+
- 为你的 AI 助手选择一个 Azure OpenAI 的模型即可开始对话
|
66
42
|
|
67
|
-
<Image
|
68
|
-
alt={'选择 Azure OpenAI 模型并开始对话'}
|
69
|
-
inStep
|
70
|
-
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'}
|
71
|
-
/>
|
72
|
-
|
73
|
-
<Callout type={'warning'}>
|
74
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考 Azure OpenAI 的相关费用政策。
|
75
|
-
</Callout>
|
43
|
+
<Image alt={'选择 Azure OpenAI 模型并开始对话'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'} />
|
76
44
|
|
45
|
+
<Callout type={'warning'}>
|
46
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 Azure OpenAI 的相关费用政策。
|
47
|
+
</Callout>
|
77
48
|
</Steps>
|
78
49
|
|
79
50
|
至此你已经可以在 LobeChat 中使用 Azure OpenAI 提供的模型进行对话了。
|
@@ -13,52 +13,34 @@ tags:
|
|
13
13
|
|
14
14
|
# Using Baichuan in LobeChat
|
15
15
|
|
16
|
-
<Image
|
17
|
-
alt={'Using Baichuan in LobeChat'}
|
18
|
-
cover
|
19
|
-
src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'}
|
20
|
-
/>
|
16
|
+
<Image alt={'Using Baichuan in LobeChat'} cover src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'} />
|
21
17
|
|
22
18
|
This article will guide you on how to use Baichuan in LobeChat:
|
23
19
|
|
24
20
|
<Steps>
|
21
|
+
### Step 1: Obtain Baichuan Intelligent API Key
|
25
22
|
|
26
|
-
|
23
|
+
- Create a [Baichuan Intelligent](https://platform.baichuan-ai.com/homePage) account
|
24
|
+
- Create and obtain an [API key](https://platform.baichuan-ai.com/console/apikey)
|
27
25
|
|
28
|
-
|
29
|
-
- Create and obtain an [API key](https://platform.baichuan-ai.com/console/apikey)
|
26
|
+
<Image alt={'Create API Key'} inStep src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'} />
|
30
27
|
|
31
|
-
|
32
|
-
alt={'Create API Key'}
|
33
|
-
inStep
|
34
|
-
src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'}
|
35
|
-
/>
|
28
|
+
### Step 2: Configure Baichuan in LobeChat
|
36
29
|
|
37
|
-
|
30
|
+
- Visit the `Settings` interface in LobeChat
|
31
|
+
- Find the setting for `Baichuan` under `Language Model`
|
38
32
|
|
39
|
-
|
40
|
-
- Find the setting for `Baichuan` under `Language Model`
|
33
|
+
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'} />
|
41
34
|
|
42
|
-
|
43
|
-
|
44
|
-
inStep
|
45
|
-
src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'}
|
46
|
-
/>
|
35
|
+
- Enter the obtained API key
|
36
|
+
- Choose a Baichuan model for your AI assistant to start the conversation
|
47
37
|
|
48
|
-
|
49
|
-
- Choose a Baichuan model for your AI assistant to start the conversation
|
50
|
-
|
51
|
-
<Image
|
52
|
-
alt={'Select Baichuan model and start conversation'}
|
53
|
-
inStep
|
54
|
-
src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'}
|
55
|
-
/>
|
56
|
-
|
57
|
-
<Callout type={'warning'}>
|
58
|
-
During usage, you may need to pay the API service provider, please refer to Baichuan's relevant
|
59
|
-
pricing policies.
|
60
|
-
</Callout>
|
38
|
+
<Image alt={'Select Baichuan model and start conversation'} inStep src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'} />
|
61
39
|
|
40
|
+
<Callout type={'warning'}>
|
41
|
+
During usage, you may need to pay the API service provider, please refer to Baichuan's relevant
|
42
|
+
pricing policies.
|
43
|
+
</Callout>
|
62
44
|
</Steps>
|
63
45
|
|
64
46
|
You can now use the models provided by Baichuan for conversation in LobeChat.
|
@@ -11,51 +11,33 @@ tags:
|
|
11
11
|
|
12
12
|
# 在 LobeChat 中使用百川
|
13
13
|
|
14
|
-
<Image
|
15
|
-
alt={'在 LobeChat 中使用百川'}
|
16
|
-
cover
|
17
|
-
src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'}
|
18
|
-
/>
|
14
|
+
<Image alt={'在 LobeChat 中使用百川'} cover src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'} />
|
19
15
|
|
20
16
|
本文将指导你如何在 LobeChat 中使用百川:
|
21
17
|
|
22
18
|
<Steps>
|
19
|
+
### 步骤一:获取百川智能 API 密钥
|
23
20
|
|
24
|
-
|
21
|
+
- 创建一个[百川智能](https://platform.baichuan-ai.com/homePage)账户
|
22
|
+
- 创建并获取 [API 密钥](https://platform.baichuan-ai.com/console/apikey)
|
25
23
|
|
26
|
-
|
27
|
-
- 创建并获取 [API 密钥](https://platform.baichuan-ai.com/console/apikey)
|
24
|
+
<Image alt={'创建 API Key'} inStep src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'} />
|
28
25
|
|
29
|
-
|
30
|
-
alt={'创建 API Key'}
|
31
|
-
inStep
|
32
|
-
src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'}
|
33
|
-
/>
|
26
|
+
### 步骤二:在 LobeChat 中配置百川
|
34
27
|
|
35
|
-
|
28
|
+
- 访问 LobeChat 的`设置`界面
|
29
|
+
- 在`语言模型`下找到`百川`的设置项
|
36
30
|
|
37
|
-
|
38
|
-
- 在`语言模型`下找到`百川`的设置项
|
31
|
+
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'} />
|
39
32
|
|
40
|
-
|
41
|
-
|
42
|
-
inStep
|
43
|
-
src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'}
|
44
|
-
/>
|
33
|
+
- 填入获得的 API 密钥
|
34
|
+
- 为你的 AI 助手选择一个百川的模型即可开始对话
|
45
35
|
|
46
|
-
|
47
|
-
- 为你的 AI 助手选择一个百川的模型即可开始对话
|
48
|
-
|
49
|
-
<Image
|
50
|
-
alt={'选择百川模型并开始对话'}
|
51
|
-
inStep
|
52
|
-
src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'}
|
53
|
-
/>
|
54
|
-
|
55
|
-
<Callout type={'warning'}>
|
56
|
-
在使用过程中你可能需要向 API 服务提供商付费,请参考百川的相关费用政策。
|
57
|
-
</Callout>
|
36
|
+
<Image alt={'选择百川模型并开始对话'} inStep src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'} />
|
58
37
|
|
38
|
+
<Callout type={'warning'}>
|
39
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考百川的相关费用政策。
|
40
|
+
</Callout>
|
59
41
|
</Steps>
|
60
42
|
|
61
43
|
至此你已经可以在 LobeChat 中使用百川提供的模型进行对话了。
|
@@ -14,126 +14,77 @@ tags:
|
|
14
14
|
|
15
15
|
# Using Amazon Bedrock in LobeChat
|
16
16
|
|
17
|
-
<Image
|
18
|
-
alt={'Using Amazon Bedrock in LobeChat'}
|
19
|
-
cover
|
20
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/74768b36-28ca-4ec3-a42d-b32abe2c7057'}
|
21
|
-
/>
|
17
|
+
<Image alt={'Using Amazon Bedrock in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/34400653/74768b36-28ca-4ec3-a42d-b32abe2c7057'} />
|
22
18
|
|
23
19
|
Amazon Bedrock is a fully managed foundational model API service that allows users to access models from leading AI companies (such as AI21 Labs, Anthropic, Cohere, Meta, Stability AI) and Amazon's own foundational models.
|
24
20
|
|
25
21
|
This document will guide you on how to use Amazon Bedrock in LobeChat:
|
26
22
|
|
27
23
|
<Steps>
|
28
|
-
### Step 1: Grant Access to Amazon Bedrock Models in AWS
|
24
|
+
### Step 1: Grant Access to Amazon Bedrock Models in AWS
|
29
25
|
|
30
|
-
- Access and log in to the [AWS Console](https://console.aws.amazon.com/)
|
31
|
-
- Search for `bedrock` and enter the `Amazon Bedrock` service
|
26
|
+
- Access and log in to the [AWS Console](https://console.aws.amazon.com/)
|
27
|
+
- Search for `bedrock` and enter the `Amazon Bedrock` service
|
32
28
|
|
33
|
-
<Image
|
34
|
-
alt={'Enter Amazon Bedrock service'}
|
35
|
-
inStep
|
36
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e0e87d1-4970-45c5-a9ef-287098f6a198'}
|
37
|
-
/>
|
29
|
+
<Image alt={'Enter Amazon Bedrock service'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e0e87d1-4970-45c5-a9ef-287098f6a198'} />
|
38
30
|
|
39
|
-
- Select `Models access` from the left menu
|
31
|
+
- Select `Models access` from the left menu
|
40
32
|
|
41
|
-
<Image
|
42
|
-
alt={'Access Amazon Bedrock model permissions'}
|
43
|
-
inStep
|
44
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/fd06c0aa-4bd3-4f4e-bf2b-38374dfe775d'}
|
45
|
-
/>
|
33
|
+
<Image alt={'Access Amazon Bedrock model permissions'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/fd06c0aa-4bd3-4f4e-bf2b-38374dfe775d'} />
|
46
34
|
|
47
|
-
- Open model access permissions based on your needs
|
35
|
+
- Open model access permissions based on your needs
|
48
36
|
|
49
|
-
<Image
|
50
|
-
alt={'Open model access permissions'}
|
51
|
-
inStep
|
52
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/b695f26a-5bcd-477c-af08-bf03adb717c2'}
|
53
|
-
/>
|
37
|
+
<Image alt={'Open model access permissions'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/b695f26a-5bcd-477c-af08-bf03adb717c2'} />
|
54
38
|
|
55
|
-
<Callout type={'info'}>Some models may require additional information from you</Callout>
|
39
|
+
<Callout type={'info'}>Some models may require additional information from you</Callout>
|
56
40
|
|
57
|
-
### Step 2: Obtain API Access Keys
|
41
|
+
### Step 2: Obtain API Access Keys
|
58
42
|
|
59
|
-
- Continue searching for IAM in the AWS console and enter the IAM service
|
43
|
+
- Continue searching for IAM in the AWS console and enter the IAM service
|
60
44
|
|
61
|
-
<Image
|
62
|
-
alt={'Enter IAM service'}
|
63
|
-
inStep
|
64
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/f9a5a394-c8f8-4567-9d51-cf84811418ca'}
|
65
|
-
/>
|
45
|
+
<Image alt={'Enter IAM service'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/f9a5a394-c8f8-4567-9d51-cf84811418ca'} />
|
66
46
|
|
67
|
-
- In the `Users` menu, create a new IAM user
|
47
|
+
- In the `Users` menu, create a new IAM user
|
68
48
|
|
69
|
-
<Image
|
70
|
-
alt={'Create a new IAM user'}
|
71
|
-
inStep
|
72
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/750b5cd1-f16a-4330-b899-c27b28b1e837'}
|
73
|
-
/>
|
49
|
+
<Image alt={'Create a new IAM user'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/750b5cd1-f16a-4330-b899-c27b28b1e837'} />
|
74
50
|
|
75
|
-
- Enter the user name in the pop-up dialog box
|
51
|
+
- Enter the user name in the pop-up dialog box
|
76
52
|
|
77
|
-
<Image
|
78
|
-
alt={'Enter user name'}
|
79
|
-
inStep
|
80
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/22ce5a72-bc46-41f3-b402-bda6dee90184'}
|
81
|
-
/>
|
53
|
+
<Image alt={'Enter user name'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/22ce5a72-bc46-41f3-b402-bda6dee90184'} />
|
82
54
|
|
83
|
-
- Add permissions for this user or join an existing user group to ensure access to Amazon Bedrock
|
55
|
+
- Add permissions for this user or join an existing user group to ensure access to Amazon Bedrock
|
84
56
|
|
85
|
-
<Image
|
86
|
-
alt={'Add permissions for the user'}
|
87
|
-
inStep
|
88
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/94836b32-7fc5-45ca-8556-7a23f53b15f9'}
|
89
|
-
/>
|
57
|
+
<Image alt={'Add permissions for the user'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/94836b32-7fc5-45ca-8556-7a23f53b15f9'} />
|
90
58
|
|
91
|
-
- Create an access key for the added user
|
59
|
+
- Create an access key for the added user
|
92
60
|
|
93
|
-
<Image
|
94
|
-
alt={'Create an access key'}
|
95
|
-
inStep
|
96
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/ac2ed716-d270-43f6-856b-3ff81265f4e6'}
|
97
|
-
/>
|
61
|
+
<Image alt={'Create an access key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/ac2ed716-d270-43f6-856b-3ff81265f4e6'} />
|
98
62
|
|
99
|
-
- Copy and securely store the access key and secret access key, as they will be needed later
|
63
|
+
- Copy and securely store the access key and secret access key, as they will be needed later
|
100
64
|
|
101
|
-
<Image
|
102
|
-
alt={'Enter IAM service'}
|
103
|
-
inStep
|
104
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/3c64b747-f6f1-4ed2-84bc-bfa8e5d90966'}
|
105
|
-
/>
|
65
|
+
<Image alt={'Enter IAM service'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/3c64b747-f6f1-4ed2-84bc-bfa8e5d90966'} />
|
106
66
|
|
107
|
-
<Callout type={'warning'}>
|
108
|
-
|
109
|
-
|
110
|
-
</Callout>
|
67
|
+
<Callout type={'warning'}>
|
68
|
+
Please securely store the keys as they will only be shown once. If you lose them accidentally, you
|
69
|
+
will need to create a new access key.
|
70
|
+
</Callout>
|
111
71
|
|
112
|
-
### Step 3: Configure Amazon Bedrock in LobeChat
|
72
|
+
### Step 3: Configure Amazon Bedrock in LobeChat
|
113
73
|
|
114
|
-
- Access the `Settings` interface in LobeChat
|
115
|
-
- Find the setting for `Amazon Bedrock` under `Language Models` and open it
|
74
|
+
- Access the `Settings` interface in LobeChat
|
75
|
+
- Find the setting for `Amazon Bedrock` under `Language Models` and open it
|
116
76
|
|
117
|
-
<Image
|
118
|
-
alt={'Enter Amazon Bedrock keys in LobeChat'}
|
119
|
-
inStep
|
120
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/7468594b-3355-4cb9-85bc-c9dace137653'}
|
121
|
-
/>
|
77
|
+
<Image alt={'Enter Amazon Bedrock keys in LobeChat'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/7468594b-3355-4cb9-85bc-c9dace137653'} />
|
122
78
|
|
123
|
-
- Open Amazon Bedrock and enter the obtained access key and secret access key
|
124
|
-
- Choose an Amazon Bedrock model for your assistant to start the conversation
|
79
|
+
- Open Amazon Bedrock and enter the obtained access key and secret access key
|
80
|
+
- Choose an Amazon Bedrock model for your assistant to start the conversation
|
125
81
|
|
126
|
-
<Image
|
127
|
-
alt={'Select and use Amazon Bedrock model'}
|
128
|
-
inStep
|
129
|
-
src={'https://github.com/lobehub/lobe-chat/assets/34400653/164b34b5-671e-418d-b34a-3b70f1156d06'}
|
130
|
-
/>
|
131
|
-
|
132
|
-
<Callout type={'warning'}>
|
133
|
-
You may incur charges while using the API service, please refer to Amazon Bedrock's pricing
|
134
|
-
policy.
|
135
|
-
</Callout>
|
82
|
+
<Image alt={'Select and use Amazon Bedrock model'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/164b34b5-671e-418d-b34a-3b70f1156d06'} />
|
136
83
|
|
84
|
+
<Callout type={'warning'}>
|
85
|
+
You may incur charges while using the API service, please refer to Amazon Bedrock's pricing
|
86
|
+
policy.
|
87
|
+
</Callout>
|
137
88
|
</Steps>
|
138
89
|
|
139
90
|
You can now engage in conversations using the models provided by Amazon Bedrock in LobeChat.
|