@lobehub/chat 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +16 -14
- package/README.zh-CN.md +16 -14
- package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +2 -1
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +1 -0
- package/docs/self-hosting/advanced/server-database.mdx +4 -3
- package/docs/self-hosting/advanced/server-database.zh-CN.mdx +1 -0
- package/docs/self-hosting/advanced/settings-url-share.mdx +5 -4
- package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +5 -4
- package/docs/self-hosting/advanced/sso-providers/zitadel.mdx +3 -3
- package/docs/self-hosting/advanced/sso-providers/zitadel.zh-CN.mdx +2 -1
- package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +10 -10
- package/docs/self-hosting/examples/ollama.mdx +23 -23
- package/docs/self-hosting/examples/ollama.zh-CN.mdx +23 -24
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +2 -3
- package/docs/self-hosting/platform/vercel.mdx +2 -2
- package/docs/self-hosting/platform/vercel.zh-CN.mdx +2 -1
- package/docs/self-hosting/platform/zeabur.mdx +6 -7
- package/docs/self-hosting/platform/zeabur.zh-CN.mdx +6 -7
- package/docs/usage/agents/prompt.mdx +1 -1
- package/docs/usage/agents/prompt.zh-CN.mdx +1 -1
- package/docs/usage/features/auth.mdx +13 -8
- package/docs/usage/features/auth.zh-CN.mdx +5 -3
- package/docs/usage/features/database.mdx +20 -14
- package/docs/usage/features/database.zh-CN.mdx +1 -1
- package/docs/usage/features/local-llm.mdx +5 -0
- package/docs/usage/features/local-llm.zh-CN.mdx +5 -0
- package/docs/usage/features/multi-ai-providers.mdx +5 -0
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +5 -0
- package/docs/usage/features/plugin-system.zh-CN.mdx +2 -1
- package/docs/usage/features/pwa.mdx +3 -2
- package/docs/usage/features/pwa.zh-CN.mdx +3 -2
- package/docs/usage/providers/01ai.mdx +86 -0
- package/docs/usage/providers/01ai.zh-CN.mdx +85 -0
- package/docs/usage/providers/anthropic.mdx +79 -0
- package/docs/usage/providers/anthropic.zh-CN.mdx +74 -0
- package/docs/usage/providers/azure.mdx +89 -0
- package/docs/usage/providers/azure.zh-CN.mdx +82 -0
- package/docs/usage/providers/bedrock.mdx +140 -0
- package/docs/usage/providers/bedrock.zh-CN.mdx +135 -0
- package/docs/usage/providers/deepseek.mdx +91 -0
- package/docs/usage/providers/deepseek.zh-CN.mdx +86 -0
- package/docs/usage/providers/gemini.mdx +83 -0
- package/docs/usage/providers/gemini.zh-CN.mdx +80 -0
- package/docs/usage/providers/groq.mdx +1 -3
- package/docs/usage/providers/groq.zh-CN.mdx +1 -1
- package/docs/usage/providers/minimax.mdx +89 -0
- package/docs/usage/providers/minimax.zh-CN.mdx +85 -0
- package/docs/usage/providers/mistral.mdx +71 -0
- package/docs/usage/providers/mistral.zh-CN.mdx +66 -0
- package/docs/usage/providers/moonshot.mdx +70 -0
- package/docs/usage/providers/moonshot.zh-CN.mdx +66 -0
- package/docs/usage/providers/ollama/gemma.mdx +1 -1
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +1 -1
- package/docs/usage/providers/ollama/qwen.mdx +1 -1
- package/docs/usage/providers/ollama/qwen.zh-CN.mdx +1 -1
- package/docs/usage/providers/ollama.mdx +1 -1
- package/docs/usage/providers/ollama.zh-CN.mdx +1 -1
- package/docs/usage/providers/openai.mdx +95 -0
- package/docs/usage/providers/openai.zh-CN.mdx +87 -0
- package/docs/usage/providers/openrouter.mdx +111 -0
- package/docs/usage/providers/openrouter.zh-CN.mdx +109 -0
- package/docs/usage/providers/perplexity.mdx +64 -0
- package/docs/usage/providers/perplexity.zh-CN.mdx +61 -0
- package/docs/usage/providers/qwen.mdx +93 -0
- package/docs/usage/providers/qwen.zh-CN.mdx +86 -0
- package/docs/usage/providers/stepfun.mdx +69 -0
- package/docs/usage/providers/stepfun.zh-CN.mdx +64 -0
- package/docs/usage/providers/togetherai.mdx +74 -0
- package/docs/usage/providers/togetherai.zh-CN.mdx +71 -0
- package/docs/usage/providers/zhipu.mdx +69 -0
- package/docs/usage/providers/zhipu.zh-CN.mdx +64 -0
- package/docs/usage/providers.mdx +36 -0
- package/docs/usage/providers.zh-CN.mdx +34 -0
- package/docs/usage/start.mdx +2 -0
- package/docs/usage/start.zh-CN.mdx +2 -0
- package/locales/ar/setting.json +1 -0
- package/locales/bg-BG/setting.json +1 -0
- package/locales/de-DE/setting.json +1 -0
- package/locales/en-US/setting.json +1 -0
- package/locales/es-ES/setting.json +1 -0
- package/locales/fr-FR/setting.json +1 -0
- package/locales/it-IT/setting.json +1 -0
- package/locales/ja-JP/setting.json +1 -0
- package/locales/ko-KR/setting.json +1 -0
- package/locales/nl-NL/setting.json +1 -0
- package/locales/pl-PL/setting.json +1 -0
- package/locales/pt-BR/setting.json +1 -0
- package/locales/ru-RU/setting.json +1 -0
- package/locales/tr-TR/setting.json +1 -0
- package/locales/vi-VN/setting.json +1 -0
- package/locales/zh-CN/setting.json +1 -0
- package/locales/zh-TW/setting.json +1 -0
- package/package.json +6 -5
- package/src/app/(main)/settings/llm/ProviderList/providers.tsx +33 -4
- package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +41 -11
- package/src/app/(main)/settings/llm/index.tsx +1 -2
- package/src/features/ChatInput/useSend.ts +2 -1
- package/src/features/Conversation/Messages/Assistant/ToolCalls/index.tsx +1 -1
- package/src/features/Conversation/Messages/components/Arguments.tsx +5 -3
- package/src/features/Conversation/Messages/hooks/useYamlArguments.ts +5 -2
- package/src/locales/default/setting.ts +1 -0
- package/src/store/chat/slices/plugin/action.test.ts +5 -5
- package/src/store/chat/slices/plugin/action.ts +6 -2
- package/src/store/tool/slices/builtin/action.test.ts +8 -11
- package/src/store/tool/slices/builtin/action.ts +9 -9
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Using Azure OpenAI in LobeChat - A Step-by-Step Guide
|
|
3
|
+
description: >-
|
|
4
|
+
Learn how to integrate and configure Azure OpenAI in LobeChat to enhance your
|
|
5
|
+
AI assistant capabilities. Follow these steps to obtain the API key, configure
|
|
6
|
+
the settings, and start engaging in conversations.
|
|
7
|
+
tags:
|
|
8
|
+
- Azure OpenAI
|
|
9
|
+
- LobeChat
|
|
10
|
+
- AI assistant
|
|
11
|
+
- API key
|
|
12
|
+
- Configuration
|
|
13
|
+
- Conversation models
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Using Azure OpenAI in LobeChat
|
|
17
|
+
|
|
18
|
+
<Image
|
|
19
|
+
alt={'Azure OpenAI in LobeChat'}
|
|
20
|
+
cover
|
|
21
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'}
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
This document will guide you on how to use [Azure OpenAI](https://oai.azure.com/) in LobeChat:
|
|
25
|
+
|
|
26
|
+
<Steps>
|
|
27
|
+
|
|
28
|
+
### Step 1: Obtain Azure OpenAI API Key
|
|
29
|
+
|
|
30
|
+
- If you haven't registered yet, you need to create an [Azure OpenAI account](https://oai.azure.com/).
|
|
31
|
+
|
|
32
|
+
<Image
|
|
33
|
+
alt={'Create an Azure OpenAI account'}
|
|
34
|
+
inStep
|
|
35
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'}
|
|
36
|
+
/>
|
|
37
|
+
|
|
38
|
+
- After registration, go to the `Deployments` page and create a new deployment with your selected model.
|
|
39
|
+
|
|
40
|
+

|
|
41
|
+
|
|
42
|
+
<Image
|
|
43
|
+
alt={'Create a new deployment with your selected model'}
|
|
44
|
+
inStep
|
|
45
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
- Navigate to the `Chat` page and click on `View Code` to obtain your endpoint and key.
|
|
49
|
+
|
|
50
|
+
<Image
|
|
51
|
+
alt={'Go to the Chat page'}
|
|
52
|
+
inStep
|
|
53
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'}
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
<Image
|
|
57
|
+
alt={'Get the endpoint and key'}
|
|
58
|
+
inStep
|
|
59
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'}
|
|
60
|
+
/>
|
|
61
|
+
|
|
62
|
+
### Step 2: Configure Azure OpenAI in LobeChat
|
|
63
|
+
|
|
64
|
+
- Access the `Settings` interface in LobeChat.
|
|
65
|
+
- Find the setting for `Azure OpenAI` under `Language Model`.
|
|
66
|
+
|
|
67
|
+
<Image
|
|
68
|
+
alt={'Enter the API key'}
|
|
69
|
+
inStep
|
|
70
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'}
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
- Enter the API key you obtained.
|
|
74
|
+
- Choose an Azure OpenAI model for your AI assistant to start the conversation.
|
|
75
|
+
|
|
76
|
+
<Image
|
|
77
|
+
alt={'Select Azure OpenAI model and start the conversation'}
|
|
78
|
+
inStep
|
|
79
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'}
|
|
80
|
+
/>
|
|
81
|
+
|
|
82
|
+
<Callout type={'warning'}>
|
|
83
|
+
During usage, you may need to pay the API service provider. Please refer to Azure OpenAI's
|
|
84
|
+
relevant pricing policies.
|
|
85
|
+
</Callout>
|
|
86
|
+
|
|
87
|
+
</Steps>
|
|
88
|
+
|
|
89
|
+
Now you can engage in conversations using the models provided by Azure OpenAI in LobeChat.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 在 LobeChat 中使用 Azure OpenAI
|
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 Azure OpenAI 模型进行对话,包括获取 API 密钥和选择模型。
|
|
4
|
+
tags:
|
|
5
|
+
- LobeChat
|
|
6
|
+
- Azure OpenAI
|
|
7
|
+
- API 密钥
|
|
8
|
+
- 语言模型
|
|
9
|
+
- AI 助手
|
|
10
|
+
- 对话模型
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 在 LobeChat 中使用 Azure OpenAI
|
|
14
|
+
|
|
15
|
+
<Image
|
|
16
|
+
alt={'在 LobeChat 中使用 Azure OpenAI'}
|
|
17
|
+
cover
|
|
18
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'}
|
|
19
|
+
/>
|
|
20
|
+
|
|
21
|
+
本文档将指导你如何在 LobeChat 中使用 [Azure OpenAI](https://oai.azure.com/):
|
|
22
|
+
|
|
23
|
+
<Steps>
|
|
24
|
+
|
|
25
|
+
### 步骤一:获取 Azure OpenAI API 密钥
|
|
26
|
+
|
|
27
|
+
- 如果尚未注册,则必须注册 [Azure OpenAI 帐户](https://oai.azure.com/)。
|
|
28
|
+
|
|
29
|
+
<Image
|
|
30
|
+
alt={'注册 Azure OpenAI 帐户'}
|
|
31
|
+
inStep
|
|
32
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'}
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
- 注册完毕后,转到 `Deployments` 页面,然后使用您选择的模型创建新部署。
|
|
36
|
+
|
|
37
|
+
<Image
|
|
38
|
+
alt={'选择的模型创建新部署'}
|
|
39
|
+
inStep
|
|
40
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'}
|
|
41
|
+
/>
|
|
42
|
+
|
|
43
|
+
- 转到 `Chat` 页面,然后单击 `View Code` 以获取您的终结点和密钥。
|
|
44
|
+
|
|
45
|
+
<Image
|
|
46
|
+
alt={'转到 Chat 页面'}
|
|
47
|
+
inStep
|
|
48
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'}
|
|
49
|
+
/>
|
|
50
|
+
<Image
|
|
51
|
+
alt={'获取终结点和密钥'}
|
|
52
|
+
inStep
|
|
53
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'}
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
### 步骤二:在 LobeChat 中配置 Azure OpenAI
|
|
57
|
+
|
|
58
|
+
- 访问 LobeChat 的`设置`界面
|
|
59
|
+
- 在`语言模型`下找到`Azure OpenAI`的设置项
|
|
60
|
+
|
|
61
|
+
<Image
|
|
62
|
+
alt={'填入 API 密钥'}
|
|
63
|
+
inStep
|
|
64
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'}
|
|
65
|
+
/>
|
|
66
|
+
|
|
67
|
+
- 填入获得的 API 密钥
|
|
68
|
+
- 为你的 AI 助手选择一个 Azure OpenAI 的模型即可开始对话
|
|
69
|
+
|
|
70
|
+
<Image
|
|
71
|
+
alt={'选择 Azure OpenAI 模型并开始对话'}
|
|
72
|
+
inStep
|
|
73
|
+
src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'}
|
|
74
|
+
/>
|
|
75
|
+
|
|
76
|
+
<Callout type={'warning'}>
|
|
77
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 Azure OpenAI 的相关费用政策。
|
|
78
|
+
</Callout>
|
|
79
|
+
|
|
80
|
+
</Steps>
|
|
81
|
+
|
|
82
|
+
至此你已经可以在 LobeChat 中使用 Azure OpenAI 提供的模型进行对话了。
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Using Amazon Bedrock in LobeChat
|
|
3
|
+
description: >-
|
|
4
|
+
Learn how to integrate Amazon Bedrock models into LobeChat for AI-powered
|
|
5
|
+
conversations. Follow these steps to grant access, obtain API keys, and
|
|
6
|
+
configure Amazon Bedrock.
|
|
7
|
+
tags:
|
|
8
|
+
- Amazon Bedrock
|
|
9
|
+
- LobeChat
|
|
10
|
+
- AI models
|
|
11
|
+
- AWS
|
|
12
|
+
- API keys
|
|
13
|
+
- Configuration
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Using Amazon Bedrock in LobeChat
|
|
17
|
+
|
|
18
|
+
<Image
|
|
19
|
+
alt={'Using Amazon Bedrock in LobeChat'}
|
|
20
|
+
cover
|
|
21
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/74768b36-28ca-4ec3-a42d-b32abe2c7057'}
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
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.
|
|
25
|
+
|
|
26
|
+
This document will guide you on how to use Amazon Bedrock in LobeChat:
|
|
27
|
+
|
|
28
|
+
<Steps>
|
|
29
|
+
### Step 1: Grant Access to Amazon Bedrock Models in AWS
|
|
30
|
+
|
|
31
|
+
- Access and log in to the [AWS Console](https://console.aws.amazon.com/)
|
|
32
|
+
- Search for `bedrock` and enter the `Amazon Bedrock` service
|
|
33
|
+
|
|
34
|
+
<Image
|
|
35
|
+
alt={'Enter Amazon Bedrock service'}
|
|
36
|
+
inStep
|
|
37
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e0e87d1-4970-45c5-a9ef-287098f6a198'}
|
|
38
|
+
/>
|
|
39
|
+
|
|
40
|
+
- Select `Models access` from the left menu
|
|
41
|
+
|
|
42
|
+
<Image
|
|
43
|
+
alt={'Access Amazon Bedrock model permissions'}
|
|
44
|
+
inStep
|
|
45
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/fd06c0aa-4bd3-4f4e-bf2b-38374dfe775d'}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
- Open model access permissions based on your needs
|
|
49
|
+
|
|
50
|
+
<Image
|
|
51
|
+
alt={'Open model access permissions'}
|
|
52
|
+
inStep
|
|
53
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/b695f26a-5bcd-477c-af08-bf03adb717c2'}
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
<Callout type={'info'}>Some models may require additional information from you</Callout>
|
|
57
|
+
|
|
58
|
+
### Step 2: Obtain API Access Keys
|
|
59
|
+
|
|
60
|
+
- Continue searching for IAM in the AWS console and enter the IAM service
|
|
61
|
+
|
|
62
|
+
<Image
|
|
63
|
+
alt={'Enter IAM service'}
|
|
64
|
+
inStep
|
|
65
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/f9a5a394-c8f8-4567-9d51-cf84811418ca'}
|
|
66
|
+
/>
|
|
67
|
+
|
|
68
|
+
- In the `Users` menu, create a new IAM user
|
|
69
|
+
|
|
70
|
+
<Image
|
|
71
|
+
alt={'Create a new IAM user'}
|
|
72
|
+
inStep
|
|
73
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/750b5cd1-f16a-4330-b899-c27b28b1e837'}
|
|
74
|
+
/>
|
|
75
|
+
|
|
76
|
+
- Enter the user name in the pop-up dialog box
|
|
77
|
+
|
|
78
|
+
<Image
|
|
79
|
+
alt={'Enter user name'}
|
|
80
|
+
inStep
|
|
81
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/22ce5a72-bc46-41f3-b402-bda6dee90184'}
|
|
82
|
+
/>
|
|
83
|
+
|
|
84
|
+
- Add permissions for this user or join an existing user group to ensure access to Amazon Bedrock
|
|
85
|
+
|
|
86
|
+
<Image
|
|
87
|
+
alt={'Add permissions for the user'}
|
|
88
|
+
inStep
|
|
89
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/94836b32-7fc5-45ca-8556-7a23f53b15f9'}
|
|
90
|
+
/>
|
|
91
|
+
|
|
92
|
+
- Create an access key for the added user
|
|
93
|
+
|
|
94
|
+
<Image
|
|
95
|
+
alt={'Create an access key'}
|
|
96
|
+
inStep
|
|
97
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/ac2ed716-d270-43f6-856b-3ff81265f4e6'}
|
|
98
|
+
/>
|
|
99
|
+
|
|
100
|
+
- Copy and securely store the access key and secret access key, as they will be needed later
|
|
101
|
+
|
|
102
|
+
<Image
|
|
103
|
+
alt={'Enter IAM service'}
|
|
104
|
+
inStep
|
|
105
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/3c64b747-f6f1-4ed2-84bc-bfa8e5d90966'}
|
|
106
|
+
/>
|
|
107
|
+
|
|
108
|
+
<Callout type={'warning'}>
|
|
109
|
+
Please securely store the keys as they will only be shown once. If you lose them accidentally, you
|
|
110
|
+
will need to create a new access key.
|
|
111
|
+
</Callout>
|
|
112
|
+
|
|
113
|
+
### Step 3: Configure Amazon Bedrock in LobeChat
|
|
114
|
+
|
|
115
|
+
- Access the `Settings` interface in LobeChat
|
|
116
|
+
- Find the setting for `Amazon Bedrock` under `Language Models` and open it
|
|
117
|
+
|
|
118
|
+
<Image
|
|
119
|
+
alt={'Enter Amazon Bedrock keys in LobeChat'}
|
|
120
|
+
inStep
|
|
121
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/7468594b-3355-4cb9-85bc-c9dace137653'}
|
|
122
|
+
/>
|
|
123
|
+
|
|
124
|
+
- Open Amazon Bedrock and enter the obtained access key and secret access key
|
|
125
|
+
- Choose an Amazon Bedrock model for your assistant to start the conversation
|
|
126
|
+
|
|
127
|
+
<Image
|
|
128
|
+
alt={'Select and use Amazon Bedrock model'}
|
|
129
|
+
inStep
|
|
130
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/164b34b5-671e-418d-b34a-3b70f1156d06'}
|
|
131
|
+
/>
|
|
132
|
+
|
|
133
|
+
<Callout type={'warning'}>
|
|
134
|
+
You may incur charges while using the API service, please refer to Amazon Bedrock's pricing
|
|
135
|
+
policy.
|
|
136
|
+
</Callout>
|
|
137
|
+
|
|
138
|
+
</Steps>
|
|
139
|
+
|
|
140
|
+
You can now engage in conversations using the models provided by Amazon Bedrock in LobeChat.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 在 LobeChat 中使用 Amazon Bedrock
|
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 Amazon Bedrock,一个完全托管的基础模型API服务,以便开始对话。
|
|
4
|
+
tags:
|
|
5
|
+
- LobeChat
|
|
6
|
+
- Amazon Bedrock
|
|
7
|
+
- AI模型API
|
|
8
|
+
- AWS
|
|
9
|
+
- IAM用户
|
|
10
|
+
- API访问密钥
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 在 LobeChat 中使用 Amazon Bedrock
|
|
14
|
+
|
|
15
|
+
<Image
|
|
16
|
+
alt={'在 LobeChat 中使用 Amazon Bedrock'}
|
|
17
|
+
cover
|
|
18
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/74768b36-28ca-4ec3-a42d-b32abe2c7057'}
|
|
19
|
+
/>
|
|
20
|
+
|
|
21
|
+
Amazon Bedrock 是一个完全托管的基础模型API服务,允许用户通过API访问来自领先AI公司(如AI21 Labs、Anthropic、Cohere、Meta、Stability AI)和Amazon自家的基础模型。
|
|
22
|
+
|
|
23
|
+
本文档将指导你如何在 LobeChat 中使用 Amazon Bedrock:
|
|
24
|
+
|
|
25
|
+
<Steps>
|
|
26
|
+
### 步骤一:在 AWS 中打开 Amazon Bedrock 模型的访问权限
|
|
27
|
+
|
|
28
|
+
- 访问并登录 [AWS Console](https://console.aws.amazon.com/)
|
|
29
|
+
- 搜索 beckrock 并进入 `Amazon Bedrock` 服务
|
|
30
|
+
|
|
31
|
+
<Image
|
|
32
|
+
alt={'进入 Amazon Bedrock 服务'}
|
|
33
|
+
inStep
|
|
34
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e0e87d1-4970-45c5-a9ef-287098f6a198'}
|
|
35
|
+
/>
|
|
36
|
+
|
|
37
|
+
- 在左侧菜单中选择 `Models acess`
|
|
38
|
+
|
|
39
|
+
<Image
|
|
40
|
+
alt={'进入 Amazon Bedrock 模型访问权限'}
|
|
41
|
+
inStep
|
|
42
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/fd06c0aa-4bd3-4f4e-bf2b-38374dfe775d'}
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
- 根据你所需要的模型,打开模型访问权限
|
|
46
|
+
|
|
47
|
+
<Image
|
|
48
|
+
alt={'打开模型访问权限'}
|
|
49
|
+
inStep
|
|
50
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/b695f26a-5bcd-477c-af08-bf03adb717c2'}
|
|
51
|
+
/>
|
|
52
|
+
|
|
53
|
+
<Callout type={'info'}>某些模型可能需要你提供额外的信息</Callout>
|
|
54
|
+
|
|
55
|
+
### 步骤二:获取 API 访问密钥
|
|
56
|
+
|
|
57
|
+
- 继续在 AWS console 中搜索 IAM,进入 IAM 服务
|
|
58
|
+
|
|
59
|
+
<Image
|
|
60
|
+
alt={'进入 IAM 服务'}
|
|
61
|
+
inStep
|
|
62
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/f9a5a394-c8f8-4567-9d51-cf84811418ca'}
|
|
63
|
+
/>
|
|
64
|
+
|
|
65
|
+
- 在 `用户` 菜单中,创建一个新的 IAM 用户
|
|
66
|
+
|
|
67
|
+
<Image
|
|
68
|
+
alt={'创建一个新的 IAM 用户'}
|
|
69
|
+
inStep
|
|
70
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/750b5cd1-f16a-4330-b899-c27b28b1e837'}
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
- 在弹出的对话框中,输入用户名称
|
|
74
|
+
|
|
75
|
+
<Image
|
|
76
|
+
alt={'输入用户名称'}
|
|
77
|
+
inStep
|
|
78
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/22ce5a72-bc46-41f3-b402-bda6dee90184'}
|
|
79
|
+
/>
|
|
80
|
+
|
|
81
|
+
- 为这个用户添加权限,或者加入一个已有的用户组,确保用户拥有 Amazon Bedrock 的访问权限
|
|
82
|
+
|
|
83
|
+
<Image
|
|
84
|
+
alt={'为用户添加权限'}
|
|
85
|
+
inStep
|
|
86
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/94836b32-7fc5-45ca-8556-7a23f53b15f9'}
|
|
87
|
+
/>
|
|
88
|
+
|
|
89
|
+
- 为已添加的用户创建访问密钥
|
|
90
|
+
|
|
91
|
+
<Image
|
|
92
|
+
alt={'创建访问密钥'}
|
|
93
|
+
inStep
|
|
94
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/ac2ed716-d270-43f6-856b-3ff81265f4e6'}
|
|
95
|
+
/>
|
|
96
|
+
|
|
97
|
+
- 复制并妥善保存访问密钥以及秘密访问密钥,后续将会用到
|
|
98
|
+
|
|
99
|
+
<Image
|
|
100
|
+
alt={'进入 IAM 服务'}
|
|
101
|
+
inStep
|
|
102
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/3c64b747-f6f1-4ed2-84bc-bfa8e5d90966'}
|
|
103
|
+
/>
|
|
104
|
+
|
|
105
|
+
<Callout type={'warning'}>
|
|
106
|
+
请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新访问密钥。
|
|
107
|
+
</Callout>
|
|
108
|
+
|
|
109
|
+
### 步骤三:在 LobeChat 中配置 Amazon Bedrock
|
|
110
|
+
|
|
111
|
+
- 访问LobeChat的`设置`界面
|
|
112
|
+
- 在`语言模型`下找到`Amazon Bedrock`的设置项并打开
|
|
113
|
+
|
|
114
|
+
<Image
|
|
115
|
+
alt={'LobeChat 中填写 Amazon Bedrock 密钥'}
|
|
116
|
+
inStep
|
|
117
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/7468594b-3355-4cb9-85bc-c9dace137653'}
|
|
118
|
+
/>
|
|
119
|
+
|
|
120
|
+
- 打开 Amazon Bedrock 并填入获得的访问密钥与秘密访问密钥
|
|
121
|
+
- 为你的助手选择一个 Amazone Bedrock 的模型即可开始对话
|
|
122
|
+
|
|
123
|
+
<Image
|
|
124
|
+
alt={' 选择并使用 Amazon Bedrock 模型 '}
|
|
125
|
+
inStep
|
|
126
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/164b34b5-671e-418d-b34a-3b70f1156d06'}
|
|
127
|
+
/>
|
|
128
|
+
|
|
129
|
+
<Callout type={'warning'}>
|
|
130
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 Amazon Bedrock 的费用政策。
|
|
131
|
+
</Callout>
|
|
132
|
+
|
|
133
|
+
</Steps>
|
|
134
|
+
|
|
135
|
+
至此你已经可以在 LobeChat 中使用 Amazone Bedrock 提供的模型进行对话了。
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Using DeepSeek in LobeChat
|
|
3
|
+
description: >-
|
|
4
|
+
Learn how to use DeepSeek-V2 in LobeChat, obtain API keys, configure DeepSeek
|
|
5
|
+
models, and start conversations. Get started with DeepSeek integration now!
|
|
6
|
+
tags:
|
|
7
|
+
- DeepSeek
|
|
8
|
+
- LobeChat
|
|
9
|
+
- DeepSeek-V2
|
|
10
|
+
- API Key
|
|
11
|
+
- Language Models
|
|
12
|
+
- Conversation Integration
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Using DeepSeek in LobeChat
|
|
16
|
+
|
|
17
|
+
<Image
|
|
18
|
+
alt={'Using DeepSeek in LobeChat'}
|
|
19
|
+
cover
|
|
20
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/b4d12904-9d5d-46de-bd66-901eeb9c8e52'}
|
|
21
|
+
/>
|
|
22
|
+
|
|
23
|
+
[DeepSeek](https://www.deepseek.com/) is an advanced open-source Large Language Model (LLM). The latest version, DeepSeek-V2, has made significant optimizations in architecture and performance, reducing training costs by 42.5% and inference costs by 93.3%.
|
|
24
|
+
|
|
25
|
+
This document will guide you on how to use DeepSeek in LobeChat:
|
|
26
|
+
|
|
27
|
+
<Steps>
|
|
28
|
+
|
|
29
|
+
### Step 1: Obtain DeepSeek API Key
|
|
30
|
+
|
|
31
|
+
- First, you need to register and log in to the [DeepSeek](https://platform.deepseek.com/) open platform.
|
|
32
|
+
|
|
33
|
+
<Callout type={'info'}>New users will receive a free quota of 500M Tokens</Callout>
|
|
34
|
+
|
|
35
|
+
- Go to the `API keys` menu and click on `Create API Key`.
|
|
36
|
+
|
|
37
|
+
<Image
|
|
38
|
+
alt={'Create Deepseek API Key'}
|
|
39
|
+
inStep
|
|
40
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/5707b392-1ee6-4db6-95cb-9d6c902747d2'}
|
|
41
|
+
/>
|
|
42
|
+
|
|
43
|
+
- Enter the API key name in the pop-up dialog box.
|
|
44
|
+
|
|
45
|
+
<Image
|
|
46
|
+
alt={'Enter Deepseek API Name'}
|
|
47
|
+
inStep
|
|
48
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/c1d1d816-6339-41a6-9bc9-e2c3b2762291'}
|
|
49
|
+
/>
|
|
50
|
+
|
|
51
|
+
- Copy the generated API key and save it securely.
|
|
52
|
+
|
|
53
|
+
<Image
|
|
54
|
+
alt={'Save Deepseek API Key'}
|
|
55
|
+
inStep
|
|
56
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/198217a6-84fa-441c-bcbe-8cded1106d6c'}
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
<Callout type={'warning'}>
|
|
60
|
+
Please store the key securely as it will only appear once. If you accidentally lose it, you will
|
|
61
|
+
need to create a new key.
|
|
62
|
+
</Callout>
|
|
63
|
+
|
|
64
|
+
### Step 2: Configure DeepSeek in LobeChat
|
|
65
|
+
|
|
66
|
+
- Access the `App Settings` interface in LobeChat.
|
|
67
|
+
- Find the setting for `DeepSeek` under `Language Models`.
|
|
68
|
+
|
|
69
|
+
<Image
|
|
70
|
+
alt={'Enter Deepseek API Key'}
|
|
71
|
+
inStep
|
|
72
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/bae262d6-0d49-47f3-bc9c-356cf6f3f34e'}
|
|
73
|
+
/>
|
|
74
|
+
|
|
75
|
+
- Open DeepSeek and enter the obtained API key.
|
|
76
|
+
- Choose a DeepSeek model for your assistant to start the conversation.
|
|
77
|
+
|
|
78
|
+
<Image
|
|
79
|
+
alt={'Select Deepseek Model'}
|
|
80
|
+
inStep
|
|
81
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/84568505-6efe-4518-8888-682ccdd92197'}
|
|
82
|
+
/>
|
|
83
|
+
|
|
84
|
+
<Callout type={'warning'}>
|
|
85
|
+
You may need to pay the API service provider during usage, please refer to DeepSeek's relevant
|
|
86
|
+
pricing policies.
|
|
87
|
+
</Callout>
|
|
88
|
+
|
|
89
|
+
</Steps>
|
|
90
|
+
|
|
91
|
+
You can now engage in conversations using the models provided by Deepseek in LobeChat.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 在 LobeChat 中使用 DeepSeek
|
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 DeepSeek 语言模型,获取 API 密钥并开始对话。
|
|
4
|
+
tags:
|
|
5
|
+
- LobeChat
|
|
6
|
+
- DeepSeek
|
|
7
|
+
- API密钥
|
|
8
|
+
- 语言模型
|
|
9
|
+
- 对话模型
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# 在 LobeChat 中使用 DeepSeek
|
|
13
|
+
|
|
14
|
+
<Image
|
|
15
|
+
alt={'在 LobeChat 中使用 DeepSeek'}
|
|
16
|
+
cover
|
|
17
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/b4d12904-9d5d-46de-bd66-901eeb9c8e52'}
|
|
18
|
+
/>
|
|
19
|
+
|
|
20
|
+
[DeepSeek](https://www.deepseek.com/) 是一款先进的开源大型语言模型(LLM)。最新版本 DeepSeek-V2 在架构和性能上进行了显著优化,同时训练成本降低了42.5%,推理成本降低了93.3%。
|
|
21
|
+
|
|
22
|
+
本文档将指导你如何在 LobeChat 中使用 DeepSeek:
|
|
23
|
+
|
|
24
|
+
<Steps>
|
|
25
|
+
|
|
26
|
+
### 步骤一:获取 DeepSeek API 密钥
|
|
27
|
+
|
|
28
|
+
- 首先,你需要注册并登录 [DeepSeek](https://platform.deepseek.com/) 开放平台
|
|
29
|
+
|
|
30
|
+
<Callout type={'info'}>当前新用户将会获赠 500M Tokens 的免费额度</Callout>
|
|
31
|
+
|
|
32
|
+
- 进入 `API keys` 菜单,并点击 `创建 API Key`
|
|
33
|
+
|
|
34
|
+
<Image
|
|
35
|
+
alt={'创建 Deepseek API 密钥'}
|
|
36
|
+
inStep
|
|
37
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/5707b392-1ee6-4db6-95cb-9d6c902747d2'}
|
|
38
|
+
/>
|
|
39
|
+
|
|
40
|
+
- 在弹出的对话框中输入 API 密钥名称
|
|
41
|
+
|
|
42
|
+
<Image
|
|
43
|
+
alt={'填写 Deepseek API 名称'}
|
|
44
|
+
inStep
|
|
45
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/c1d1d816-6339-41a6-9bc9-e2c3b2762291'}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
- 复制得到的 API 密钥并妥善保存
|
|
49
|
+
|
|
50
|
+
<Image
|
|
51
|
+
alt={'保存 Deepseek API 密钥'}
|
|
52
|
+
inStep
|
|
53
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/198217a6-84fa-441c-bcbe-8cded1106d6c'}
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
<Callout type={'warning'}>
|
|
57
|
+
请安全地存储密钥,因为它只会出现一次。如果你意外丢失它,您将需要创建一个新密钥。
|
|
58
|
+
</Callout>
|
|
59
|
+
|
|
60
|
+
### 步骤二:在 LobeChat 中配置 DeepSeek
|
|
61
|
+
|
|
62
|
+
- 访问 LobeChat 的 `应用设置`界面
|
|
63
|
+
- 在 `语言模型` 下找到 `DeepSeek` 的设置项
|
|
64
|
+
|
|
65
|
+
<Image
|
|
66
|
+
alt={'填写 Deepseek API 密钥'}
|
|
67
|
+
inStep
|
|
68
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/bae262d6-0d49-47f3-bc9c-356cf6f3f34e'}
|
|
69
|
+
/>
|
|
70
|
+
|
|
71
|
+
- 打开 DeepSeek 并填入获取的 API 密钥
|
|
72
|
+
- 为你的助手选择一个 DeepSeek 模型即可开始对话
|
|
73
|
+
|
|
74
|
+
<Image
|
|
75
|
+
alt={'选择 Deepseek 模型'}
|
|
76
|
+
inStep
|
|
77
|
+
src={'https://github.com/lobehub/lobe-chat/assets/34400653/84568505-6efe-4518-8888-682ccdd92197'}
|
|
78
|
+
/>
|
|
79
|
+
|
|
80
|
+
<Callout type={'warning'}>
|
|
81
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 DeepSeek 的相关费用政策。
|
|
82
|
+
</Callout>
|
|
83
|
+
|
|
84
|
+
</Steps>
|
|
85
|
+
|
|
86
|
+
至此你已经可以在 LobeChat 中使用 Deepseek 提供的模型进行对话了。
|