@lobehub/chat 1.21.12 → 1.21.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 +50 -0
- package/docs/usage/providers/ai21.mdx +63 -0
- package/docs/usage/providers/ai21.zh-CN.mdx +63 -0
- package/docs/usage/providers/ai360.mdx +63 -0
- package/docs/usage/providers/ai360.zh-CN.mdx +63 -0
- package/docs/usage/providers/fireworksai.mdx +75 -0
- package/docs/usage/providers/fireworksai.zh-CN.mdx +75 -0
- package/docs/usage/providers/github.mdx +92 -0
- package/docs/usage/providers/github.zh-CN.mdx +91 -0
- package/docs/usage/providers/hunyuan.mdx +71 -0
- package/docs/usage/providers/hunyuan.zh-CN.mdx +71 -0
- package/docs/usage/providers/siliconcloud.mdx +37 -21
- package/docs/usage/providers/siliconcloud.zh-CN.mdx +36 -18
- package/docs/usage/providers/spark.mdx +72 -0
- package/docs/usage/providers/spark.zh-CN.mdx +71 -0
- package/docs/usage/providers/upstage.mdx +64 -0
- package/docs/usage/providers/upstage.zh-CN.mdx +64 -0
- package/docs/usage/providers/wenxin.mdx +73 -0
- package/docs/usage/providers/wenxin.zh-CN.mdx +73 -0
- package/docs/usage/providers/{01ai.mdx → zeroone.mdx} +15 -16
- package/package.json +1 -1
- package/src/app/(main)/chat/(workspace)/@portal/Artifacts/Body/Renderer/index.tsx +5 -0
- package/src/libs/agent-runtime/AgentRuntime.ts +1 -1
- package/src/libs/agent-runtime/google/index.ts +2 -2
- package/src/libs/agent-runtime/utils/streams/anthropic.ts +2 -8
- package/src/libs/agent-runtime/utils/streams/azureOpenai.ts +2 -8
- package/src/libs/agent-runtime/utils/streams/google-ai.ts +1 -12
- package/src/libs/agent-runtime/utils/streams/ollama.ts +2 -8
- package/src/libs/agent-runtime/utils/streams/openai.ts +2 -8
- package/src/libs/agent-runtime/utils/streams/protocol.ts +7 -0
- package/src/libs/agent-runtime/utils/streams/qwen.ts +2 -3
- package/src/libs/agent-runtime/utils/streams/wenxin.test.ts +7 -3
- package/src/libs/agent-runtime/utils/streams/wenxin.ts +0 -8
- package/src/libs/agent-runtime/wenxin/index.ts +3 -2
- package/src/libs/agent-runtime/zhipu/index.test.ts +7 -24
- package/src/libs/agent-runtime/zhipu/index.ts +21 -99
- /package/docs/usage/providers/{01ai.zh-CN.mdx → zeroone.zh-CN.mdx} +0 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
title: Using Tencent Hunyuan in LobeChat
|
3
|
+
description: Learn how to integrate and utilize Tencent Hunyuan's language model APIs in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- Tencent Hunyuan
|
7
|
+
- API Key
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
# Using Tencent Hunyuan in LobeChat
|
11
|
+
|
12
|
+
<Image
|
13
|
+
cover
|
14
|
+
src={
|
15
|
+
'https://github.com/user-attachments/assets/467bb431-ca0d-4bb4-ac17-e5e2b764a770'
|
16
|
+
}
|
17
|
+
/>
|
18
|
+
|
19
|
+
[Tencent Hunyuan](https://hunyuan.tencent.com/) is a large model launched by Tencent, designed to provide users with intelligent assistant services. It utilizes natural language processing technology to help users solve problems, offer suggestions, and generate content. By conversing with the model, users can quickly access the information they need, thereby enhancing work efficiency.
|
20
|
+
|
21
|
+
This article will guide you on how to use Tencent Hunyuan in LobeChat.
|
22
|
+
|
23
|
+
<Steps>
|
24
|
+
### Step 1: Obtain the Tencent Hunyuan API Key
|
25
|
+
|
26
|
+
- Register and log in to the [Tencent Cloud Console](https://console.cloud.tencent.com/hunyuan/api-key)
|
27
|
+
- Navigate to `Hunyuan Large Model` and click on `API KEY Management`
|
28
|
+
- Create an API key
|
29
|
+
|
30
|
+
<Image
|
31
|
+
alt={'Create API Key'}
|
32
|
+
inStep
|
33
|
+
src={'https://github.com/user-attachments/assets/5f344314-ecbc-41e6-9120-520a2d5352ff'}
|
34
|
+
/>
|
35
|
+
|
36
|
+
- Click `View`, and copy the API key from the pop-up panel, ensuring you save it securely
|
37
|
+
|
38
|
+
<Image
|
39
|
+
alt={'Save Key'}
|
40
|
+
inStep
|
41
|
+
src={'https://github.com/user-attachments/assets/659b5ac1-82f1-43bd-9d4b-a98491e05794'}
|
42
|
+
/>
|
43
|
+
|
44
|
+
### Step 2: Configure Tencent Hunyuan in LobeChat
|
45
|
+
|
46
|
+
- Go to the `Settings` page in LobeChat
|
47
|
+
- Find the `Tencent Hunyuan` settings under `Language Models`
|
48
|
+
|
49
|
+
<Image
|
50
|
+
alt={'Enter API Key'}
|
51
|
+
inStep
|
52
|
+
src={'https://github.com/user-attachments/assets/796c94af-9bad-4e3c-b1c7-dbb17c215c56'}
|
53
|
+
/>
|
54
|
+
|
55
|
+
- Enter the API key you obtained
|
56
|
+
- Select a Tencent Hunyuan model for your AI assistant to start the conversation
|
57
|
+
|
58
|
+
<Image
|
59
|
+
alt={'Select Tencent Hunyuan Model and Start Conversation'}
|
60
|
+
inStep
|
61
|
+
src={'https://github.com/user-attachments/assets/e3f44bc8-2fa5-441d-8934-943481472450'}
|
62
|
+
/>
|
63
|
+
|
64
|
+
<Callout type={'warning'}>
|
65
|
+
During usage, you may need to pay the API service provider, please refer to Tencent Hunyuan's relevant pricing policy.
|
66
|
+
</Callout>
|
67
|
+
|
68
|
+
</Steps>
|
69
|
+
|
70
|
+
You can now engage in conversations using the models provided by Tencent Hunyuan in LobeChat.
|
71
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用腾讯混元
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用腾讯混元的API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- 腾讯混元
|
7
|
+
- API密钥
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
|
11
|
+
# 在 LobeChat 中使用腾讯混元
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/467bb431-ca0d-4bb4-ac17-e5e2b764a770'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[腾讯混元](https://hunyuan.tencent.com/)是由腾讯推出的一款大模型,旨在为用户提供智能助手服务。它能够通过自然语言处理技术,帮助用户解决问题、提供建议以及进行内容生成等任务。用户可以通过与模型的对话,快速获取所需信息,从而提高工作效率。
|
21
|
+
|
22
|
+
本文将指导你如何在 LobeChat 中使用腾讯混元。
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### 步骤一:获得腾讯混元的 API Key
|
26
|
+
|
27
|
+
- 注册并登录 [腾讯云控制台](https://console.cloud.tencent.com/hunyuan/api-key)
|
28
|
+
- 进入 `混元大模型` 并点击 `API KEY 管理`
|
29
|
+
- 创建一个 API 密钥
|
30
|
+
|
31
|
+
<Image
|
32
|
+
alt={'创建 API 密钥'}
|
33
|
+
inStep
|
34
|
+
src={'https://github.com/user-attachments/assets/5f344314-ecbc-41e6-9120-520a2d5352ff'}
|
35
|
+
/>
|
36
|
+
|
37
|
+
- 点击`查看`,在弹出面板中复制 API 密钥,并妥善保存
|
38
|
+
|
39
|
+
<Image
|
40
|
+
alt={'保存密钥'}
|
41
|
+
inStep
|
42
|
+
src={'https://github.com/user-attachments/assets/659b5ac1-82f1-43bd-9d4b-a98491e05794'}
|
43
|
+
/>
|
44
|
+
|
45
|
+
### 步骤二:在 LobeChat 中配置腾讯混元
|
46
|
+
|
47
|
+
- 访问 LobeChat 的`设置`界面
|
48
|
+
- 在`语言模型`下找到 `腾讯混元` 的设置项
|
49
|
+
|
50
|
+
<Image
|
51
|
+
alt={'填入 API 密钥'}
|
52
|
+
inStep
|
53
|
+
src={'https://github.com/user-attachments/assets/796c94af-9bad-4e3c-b1c7-dbb17c215c56'}
|
54
|
+
/>
|
55
|
+
|
56
|
+
- 填入获得的 API 密钥
|
57
|
+
- 为你的 AI 助手选择一个腾讯混元的模型即可开始对话
|
58
|
+
|
59
|
+
<Image
|
60
|
+
alt={'选择腾讯混元模型并开始对话'}
|
61
|
+
inStep
|
62
|
+
src={'https://github.com/user-attachments/assets/e3f44bc8-2fa5-441d-8934-943481472450'}
|
63
|
+
/>
|
64
|
+
|
65
|
+
<Callout type={'warning'}>
|
66
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考腾讯混元的相关费用政策。
|
67
|
+
</Callout>
|
68
|
+
|
69
|
+
</Steps>
|
70
|
+
|
71
|
+
至此你已经可以在 LobeChat 中使用腾讯混元提供的模型进行对话了。
|
@@ -1,47 +1,63 @@
|
|
1
1
|
---
|
2
|
-
title: Using SiliconCloud
|
3
|
-
description:
|
4
|
-
Learn how to configure and use SiliconCloud's large language models in
|
5
|
-
LobeChat, get your API key, and start chatting.
|
2
|
+
title: Using SiliconCloud in LobeChat
|
3
|
+
description: Learn how to integrate and utilize SiliconCloud's language model APIs in LobeChat.
|
6
4
|
tags:
|
7
5
|
- LobeChat
|
8
6
|
- SiliconCloud
|
9
7
|
- API Key
|
10
8
|
- Web UI
|
11
9
|
---
|
12
|
-
|
13
10
|
# Using SiliconCloud in LobeChat
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
<Image
|
13
|
+
cover
|
14
|
+
src={
|
15
|
+
'https://github.com/user-attachments/assets/9a78bbb9-7c96-4f32-9b66-e57f92660410'
|
16
|
+
}
|
17
|
+
/>
|
20
18
|
|
21
|
-
|
19
|
+
[SiliconCloud](https://siliconflow.cn/) is an AI service platform based on open-source foundational models, offering a variety of generative AI (GenAI) services.
|
22
20
|
|
23
|
-
|
21
|
+
This article will guide you on how to use SiliconCloud in LobeChat.
|
24
22
|
|
25
|
-
<
|
23
|
+
<Steps>
|
24
|
+
### Step 1: Obtain the API Key from SiliconCloud
|
26
25
|
|
27
|
-
-
|
26
|
+
- Sign up and log in to [SiliconCloud](https://cloud.siliconflow.cn/account/ak)
|
27
|
+
- Click on the `API Keys` menu on the left side
|
28
|
+
- Create an API Key and copy it
|
28
29
|
|
29
|
-
|
30
|
+
<Image
|
31
|
+
alt={'Create API Key'}
|
32
|
+
inStep
|
33
|
+
src={'https://github.com/user-attachments/assets/872756dc-305e-4e63-9fb7-60550280fc12'}
|
34
|
+
/>
|
30
35
|
|
31
36
|
### Step 2: Configure SiliconCloud in LobeChat
|
32
37
|
|
33
|
-
-
|
38
|
+
- Go to the `Settings` page in LobeChat
|
39
|
+
- Under `Language Model`, find the setting for `SiliconFlow`
|
34
40
|
|
35
|
-
|
41
|
+
<Image
|
42
|
+
alt={'Enter API Key'}
|
43
|
+
inStep
|
44
|
+
src={'https://github.com/user-attachments/assets/4c792f62-5203-4f13-8f23-df228f70d67f'}
|
45
|
+
/>
|
36
46
|
|
37
|
-
-
|
47
|
+
- Enter the API Key you obtained
|
48
|
+
- Choose a SiliconCloud model for your AI assistant to start the conversation
|
38
49
|
|
39
|
-
|
50
|
+
<Image
|
51
|
+
alt={'Select SiliconCloud Model and Start Conversation'}
|
52
|
+
inStep
|
53
|
+
src={'https://github.com/user-attachments/assets/f4dbbadb-7461-4370-a836-09c487fdd206'}
|
54
|
+
/>
|
40
55
|
|
41
56
|
<Callout type={'warning'}>
|
42
|
-
|
57
|
+
During usage, you may need to pay the API service provider, so please refer to SiliconCloud's relevant pricing policy.
|
43
58
|
</Callout>
|
44
59
|
|
45
60
|
</Steps>
|
46
61
|
|
47
|
-
|
62
|
+
At this point, you can start chatting using the models provided by SiliconCloud in LobeChat.
|
63
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
|
-
title: 在 LobeChat 中使用 SiliconCloud
|
3
|
-
description: 学习如何在 LobeChat 中配置和使用 SiliconCloud
|
2
|
+
title: 在 LobeChat 中使用 SiliconCloud
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 SiliconCloud 的API Key,以便开始对话和交互。
|
4
4
|
tags:
|
5
5
|
- LobeChat
|
6
6
|
- SiliconCloud
|
@@ -8,33 +8,51 @@ tags:
|
|
8
8
|
- Web UI
|
9
9
|
---
|
10
10
|
|
11
|
-
# 在 LobeChat 中使用 SiliconCloud
|
11
|
+
# 在 LobeChat 中使用 SiliconCloud
|
12
12
|
|
13
|
-
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/9a78bbb9-7c96-4f32-9b66-e57f92660410'
|
17
|
+
}
|
18
|
+
/>
|
14
19
|
|
15
|
-
|
20
|
+
[SiliconCloud](https://siliconflow.cn/) 是一个基于开源基础模型的人工智能服务平台,提供多种生成式AI(GenAI)服务。
|
16
21
|
|
17
|
-
|
18
|
-
|
19
|
-
### 步骤一:获取 SiliconCloud API 密钥
|
22
|
+
本文将指导你如何在 LobeChat 中使用 SiliconCloud。
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
<Callout type={'info'}>当前新用户注册可获赠 14 元免费额度</Callout>
|
24
|
+
<Steps>
|
25
|
+
### 步骤一:获得 SiliconCloud 的 API Key
|
24
26
|
|
25
|
-
-
|
27
|
+
- 注册并登录 [SiliconCloud](https://cloud.siliconflow.cn/account/ak)
|
28
|
+
- 点击左侧 `API 密钥` 菜单
|
29
|
+
- 创建一个 API 密钥并复制
|
26
30
|
|
27
|
-
|
31
|
+
<Image
|
32
|
+
alt={'创建API密钥'}
|
33
|
+
inStep
|
34
|
+
src={'https://github.com/user-attachments/assets/872756dc-305e-4e63-9fb7-60550280fc12'}
|
35
|
+
/>
|
28
36
|
|
29
|
-
### 步骤二:在 LobeChat 中配置 SiliconCloud
|
37
|
+
### 步骤二:在 LobeChat 中配置 SiliconCloud
|
30
38
|
|
31
|
-
- 访问 LobeChat
|
39
|
+
- 访问 LobeChat 的`设置`界面
|
40
|
+
- 在`语言模型`下找到 `SiliconFlow` 的设置项
|
32
41
|
|
33
|
-
|
42
|
+
<Image
|
43
|
+
alt={'填入 API 密钥'}
|
44
|
+
inStep
|
45
|
+
src={'https://github.com/user-attachments/assets/4c792f62-5203-4f13-8f23-df228f70d67f'}
|
46
|
+
/>
|
34
47
|
|
35
|
-
-
|
48
|
+
- 填入获得的 API 密钥
|
49
|
+
- 为你的 AI 助手选择一个 SiliconCloud 的模型即可开始对话
|
36
50
|
|
37
|
-
|
51
|
+
<Image
|
52
|
+
alt={'选择 SiliconCloud 模型并开始对话'}
|
53
|
+
inStep
|
54
|
+
src={'https://github.com/user-attachments/assets/f4dbbadb-7461-4370-a836-09c487fdd206'}
|
55
|
+
/>
|
38
56
|
|
39
57
|
<Callout type={'warning'}>
|
40
58
|
在使用过程中你可能需要向 API 服务提供商付费,请参考 SiliconCloud 的相关费用政策。
|
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
title: Using iFLYTEK Spark in LobeChat
|
3
|
+
description: Learn how to integrate and utilize iFLYTEK's Spark model APIs in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- iFLYTEK
|
7
|
+
- Spark
|
8
|
+
- API Key
|
9
|
+
- Web UI
|
10
|
+
---
|
11
|
+
# Using iFLYTEK Spark in LobeChat
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/f3068287-8ade-4eca-9841-ea67d8ff1226'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[iFLYTEK Spark](https://xinghuo.xfyun.cn/) is a powerful AI model launched by iFLYTEK, equipped with cross-domain knowledge and language understanding capabilities, able to perform various tasks such as Q&A, conversations, and literary creation.
|
21
|
+
|
22
|
+
This guide will instruct you on how to use iFLYTEK Spark in LobeChat.
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### Step 1: Obtain the iFLYTEK Spark API Key
|
26
|
+
|
27
|
+
- Register and log in to the [iFLYTEK Open Platform](https://console.xfyun.cn/)
|
28
|
+
- Create an application
|
29
|
+
|
30
|
+
<Image
|
31
|
+
alt={'Create Application'}
|
32
|
+
inStep
|
33
|
+
src={'https://github.com/user-attachments/assets/1bf1a5f0-32ad-418c-a8d1-6c54740f50b9'}
|
34
|
+
/>
|
35
|
+
|
36
|
+
- Select a large model to view details
|
37
|
+
- Copy the `API Password` from the top right corner under the HTTP service interface authentication information
|
38
|
+
|
39
|
+
<Image
|
40
|
+
alt={'Copy API Key'}
|
41
|
+
inStep
|
42
|
+
src={'https://github.com/user-attachments/assets/7239d611-1989-414b-a51c-444e47096d75'}
|
43
|
+
/>
|
44
|
+
|
45
|
+
### Step 2: Configure iFLYTEK Spark in LobeChat
|
46
|
+
|
47
|
+
- Access the `Settings` menu in LobeChat
|
48
|
+
- Find the iFLYTEK Spark settings under `Language Model`
|
49
|
+
|
50
|
+
<Image
|
51
|
+
alt={'Enter API Key'}
|
52
|
+
inStep
|
53
|
+
src={'https://github.com/user-attachments/assets/d693be02-e08c-43ae-8bde-1294f180aaf6'}
|
54
|
+
/>
|
55
|
+
|
56
|
+
- Input the obtained API Key
|
57
|
+
- Choose an iFLYTEK Spark model for your AI assistant to start the conversation
|
58
|
+
|
59
|
+
<Image
|
60
|
+
alt={'Select iFLYTEK Spark Model and Start Conversation'}
|
61
|
+
inStep
|
62
|
+
src={'https://github.com/user-attachments/assets/8910186f-4609-4798-a588-2780dcf8db60'}
|
63
|
+
/>
|
64
|
+
|
65
|
+
<Callout type={'warning'}>
|
66
|
+
During usage, you may need to pay the API service provider, please refer to the relevant pricing policy of iFLYTEK Spark.
|
67
|
+
</Callout>
|
68
|
+
|
69
|
+
</Steps>
|
70
|
+
|
71
|
+
Now you can use the models provided by iFLYTEK Spark for conversations in LobeChat.
|
72
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用讯飞星火
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用讯飞星火的API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- 讯飞星火
|
7
|
+
- API密钥
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
|
11
|
+
# 在 LobeChat 中使用讯飞星火
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/f3068287-8ade-4eca-9841-ea67d8ff1226'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[讯飞星火](https://xinghuo.xfyun.cn/)是科大讯飞推出的一款强大的AI大模型,具备跨领域的知识和语言理解能力,能够执行问答、对话和文学创作等多种任务。
|
21
|
+
|
22
|
+
本文将指导你如何在 LobeChat 中使用讯飞星火。
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### 步骤一:获得讯飞星火的 API Key
|
26
|
+
|
27
|
+
- 注册并登录 [讯飞开放平台](https://console.xfyun.cn/)
|
28
|
+
- 创建一个应用
|
29
|
+
|
30
|
+
<Image
|
31
|
+
alt={'创建应用'}
|
32
|
+
inStep
|
33
|
+
src={'https://github.com/user-attachments/assets/1bf1a5f0-32ad-418c-a8d1-6c54740f50b9'}
|
34
|
+
/>
|
35
|
+
|
36
|
+
- 选择一个大模型查看详情
|
37
|
+
- 复制右上角 http 服务接口认证信息中的 `API Password`
|
38
|
+
|
39
|
+
<Image
|
40
|
+
alt={'复制 API 密钥'}
|
41
|
+
inStep
|
42
|
+
src={'https://github.com/user-attachments/assets/7239d611-1989-414b-a51c-444e47096d75'}
|
43
|
+
/>
|
44
|
+
|
45
|
+
### 步骤二:在 LobeChat 中配置讯飞星火
|
46
|
+
|
47
|
+
- 访问 LobeChat 的`设置`界面
|
48
|
+
- 在`语言模型`下找到 `讯飞星火` 的设置项
|
49
|
+
|
50
|
+
<Image
|
51
|
+
alt={'填入 API 密钥'}
|
52
|
+
inStep
|
53
|
+
src={'https://github.com/user-attachments/assets/d693be02-e08c-43ae-8bde-1294f180aaf6'}
|
54
|
+
/>
|
55
|
+
|
56
|
+
- 填入获得的 API 密钥
|
57
|
+
- 为你的 AI 助手选择一个讯飞星火的模型即可开始对话
|
58
|
+
|
59
|
+
<Image
|
60
|
+
alt={'选择讯飞星火模型并开始对话'}
|
61
|
+
inStep
|
62
|
+
src={'https://github.com/user-attachments/assets/8910186f-4609-4798-a588-2780dcf8db60'}
|
63
|
+
/>
|
64
|
+
|
65
|
+
<Callout type={'warning'}>
|
66
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考讯飞星火的相关费用政策。
|
67
|
+
</Callout>
|
68
|
+
|
69
|
+
</Steps>
|
70
|
+
|
71
|
+
至此你已经可以在 LobeChat 中使用讯飞星火提供的模型进行对话了。
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
title: Using Upstage in LobeChat
|
3
|
+
description: Learn how to integrate and utilize Upstage's language model APIs in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- Upstage
|
7
|
+
- API Key
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
# Using Upstage in LobeChat
|
11
|
+
|
12
|
+
<Image
|
13
|
+
cover
|
14
|
+
src={
|
15
|
+
'https://github.com/user-attachments/assets/14696698-03f7-4856-b36c-9a53997eb12c'
|
16
|
+
}
|
17
|
+
/>
|
18
|
+
|
19
|
+
[Upstage](https://www.upstage.ai/) is a platform that offers AI models and services, focusing on applications in natural language processing and machine learning. It allows developers to access its powerful AI capabilities through APIs, supporting various tasks such as text generation and conversational systems.
|
20
|
+
|
21
|
+
This article will guide you on how to use Upstage in LobeChat.
|
22
|
+
|
23
|
+
<Steps>
|
24
|
+
### Step 1: Obtain an Upstage API Key
|
25
|
+
|
26
|
+
- Register and log in to the [Upstage Console](https://console.upstage.ai/home)
|
27
|
+
- Navigate to the `API Keys` page
|
28
|
+
- Create a new API key
|
29
|
+
- Copy and save the generated API key
|
30
|
+
|
31
|
+
<Image
|
32
|
+
alt={'Save the API Key'}
|
33
|
+
inStep
|
34
|
+
src={'https://github.com/user-attachments/assets/8a0225e0-16ed-40ce-9cd5-553dda561679'}
|
35
|
+
/>
|
36
|
+
|
37
|
+
### Step 2: Configure Upstage in LobeChat
|
38
|
+
|
39
|
+
- Access the `Settings` interface in LobeChat
|
40
|
+
- Locate the `Upstage` settings under `Language Models`
|
41
|
+
|
42
|
+
<Image
|
43
|
+
alt={'Enter API Key'}
|
44
|
+
inStep
|
45
|
+
src={'https://github.com/user-attachments/assets/e89d2a56-4bf0-4bff-ac39-0d44789fa858'}
|
46
|
+
/>
|
47
|
+
|
48
|
+
- Enter the obtained API key
|
49
|
+
- Select an Upstage model for your AI assistant to start the conversation
|
50
|
+
|
51
|
+
<Image
|
52
|
+
alt={'Select Upstage Model and Start Conversation'}
|
53
|
+
inStep
|
54
|
+
src={'https://github.com/user-attachments/assets/88e14294-20a6-47c6-981e-fb65453b57cd'}
|
55
|
+
/>
|
56
|
+
|
57
|
+
<Callout type={'warning'}>
|
58
|
+
Please note that you may need to pay the API service provider for usage. Refer to Upstage's pricing policy for more information.
|
59
|
+
</Callout>
|
60
|
+
|
61
|
+
</Steps>
|
62
|
+
|
63
|
+
You can now use the models provided by Upstage for conversations in LobeChat.
|
64
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用 Upstage
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 Upstage 的API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- Upstage
|
7
|
+
- API密钥
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
|
11
|
+
# 在 LobeChat 中使用 Upstage
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/14696698-03f7-4856-b36c-9a53997eb12c'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[Upstage](https://www.upstage.ai/) 是一个提供 AI 模型和服务的平台,专注于自然语言处理和机器学习应用。它允许开发者通过 API 接入其强大的 AI 功能,支持多种任务,如文本生成、对话系统等。
|
21
|
+
|
22
|
+
本文将指导你如何在 LobeChat 中使用 Upstage。
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### 步骤一:获得 Upstage 的 API Key
|
26
|
+
|
27
|
+
- 注册并登录 [Upstage 控制台](https://console.upstage.ai/home)
|
28
|
+
- 进入 `API Keys` 页面
|
29
|
+
- 创建一个新的 API 密钥
|
30
|
+
- 复制并保存生成的 API 密钥
|
31
|
+
|
32
|
+
<Image
|
33
|
+
alt={'保存 API 密钥'}
|
34
|
+
inStep
|
35
|
+
src={'https://github.com/user-attachments/assets/8a0225e0-16ed-40ce-9cd5-553dda561679'}
|
36
|
+
/>
|
37
|
+
|
38
|
+
### 步骤二:在 LobeChat 中配置 Upstage
|
39
|
+
|
40
|
+
- 访问 LobeChat 的`设置`界面
|
41
|
+
- 在`语言模型`下找到 `Upstage` 的设置项
|
42
|
+
|
43
|
+
<Image
|
44
|
+
alt={'填入 API 密钥'}
|
45
|
+
inStep
|
46
|
+
src={'https://github.com/user-attachments/assets/e89d2a56-4bf0-4bff-ac39-0d44789fa858'}
|
47
|
+
/>
|
48
|
+
|
49
|
+
- 填入获得的 API 密钥
|
50
|
+
- 为你的 AI 助手选择一个 Upstage 的模型即可开始对话
|
51
|
+
|
52
|
+
<Image
|
53
|
+
alt={'选择 Upstage 模型并开始对话'}
|
54
|
+
inStep
|
55
|
+
src={'https://github.com/user-attachments/assets/88e14294-20a6-47c6-981e-fb65453b57cd'}
|
56
|
+
/>
|
57
|
+
|
58
|
+
<Callout type={'warning'}>
|
59
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 Upstage 的相关费用政策。
|
60
|
+
</Callout>
|
61
|
+
|
62
|
+
</Steps>
|
63
|
+
|
64
|
+
至此你已经可以在 LobeChat 中使用 Upstage 提供的模型进行对话了。
|
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
title: Using Wenxin Qianfan in LobeChat
|
3
|
+
description: Learn how to integrate and utilize Wenxin Qianfan's language model APIs in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- 百度
|
7
|
+
- 文心千帆
|
8
|
+
- API密钥
|
9
|
+
- Web UI
|
10
|
+
---
|
11
|
+
# Using Wenxin Qianfan in LobeChat
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/e43dacf6-313e-499c-8888-f1065c53e424'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[Wenxin Qianfan](https://qianfan.cloud.baidu.com/) is an artificial intelligence large language model platform launched by Baidu, supporting a variety of application scenarios, including literary creation, commercial copywriting, and mathematical logic reasoning. The platform features deep semantic understanding and generation capabilities across modalities and languages, and it is widely utilized in fields such as search Q&A, content creation, and smart office applications.
|
21
|
+
|
22
|
+
This article will guide you on how to use Wenxin Qianfan in LobeChat.
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### Step 1: Obtain the Wenxin Qianfan API Key
|
26
|
+
|
27
|
+
- Register and log in to the [Baidu Intelligent Cloud Console](https://console.bce.baidu.com/)
|
28
|
+
- Navigate to `Baidu Intelligent Cloud Qianfan ModelBuilder`
|
29
|
+
- Choose `Application Access` from the left-side menu
|
30
|
+
- Create an application
|
31
|
+
|
32
|
+
<Image
|
33
|
+
alt={'Create Application'}
|
34
|
+
inStep
|
35
|
+
src={'https://github.com/user-attachments/assets/927b1040-e23f-4919-92e2-80a400db8327'}
|
36
|
+
/>
|
37
|
+
|
38
|
+
- After creating the application, obtain your `API Key` and `Secret Key`, and store them safely
|
39
|
+
|
40
|
+
<Image
|
41
|
+
alt={'Save Keys'}
|
42
|
+
inStep
|
43
|
+
src={'https://github.com/user-attachments/assets/242c8134-8de0-4a02-b302-6bd8b19ced3e'}
|
44
|
+
/>
|
45
|
+
|
46
|
+
### Step 2: Configure Wenxin Qianfan in LobeChat
|
47
|
+
|
48
|
+
- Go to the `Settings` interface in LobeChat
|
49
|
+
- Locate the settings for `Wenxin Qianfan` under `Language Model`
|
50
|
+
|
51
|
+
<Image
|
52
|
+
alt={'Enter API Keys'}
|
53
|
+
inStep
|
54
|
+
src={'https://github.com/user-attachments/assets/e3995de7-38d9-489b-80a2-434477018469'}
|
55
|
+
/>
|
56
|
+
|
57
|
+
- Enter the obtained `API Key` and `Secret Key`
|
58
|
+
- Select a Wenxin Qianfan model for your AI assistant to start interacting
|
59
|
+
|
60
|
+
<Image
|
61
|
+
alt={'Select Wenxin Qianfan Model and Start Chat'}
|
62
|
+
inStep
|
63
|
+
src={'https://github.com/user-attachments/assets/b6e6a3eb-13c6-46f0-9c7c-69a20deae30f'}
|
64
|
+
/>
|
65
|
+
|
66
|
+
<Callout type={'warning'}>
|
67
|
+
During usage, you may need to pay the API service provider. Please refer to Wenxin Qianfan's relevant fee policy.
|
68
|
+
</Callout>
|
69
|
+
|
70
|
+
</Steps>
|
71
|
+
|
72
|
+
You can now use the models provided by Wenxin Qianfan for conversations in LobeChat.
|
73
|
+
|