@lobehub/chat 1.21.13 → 1.21.15
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 +42 -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/netlify.toml +1 -1
- package/package.json +1 -1
- package/src/app/(main)/chat/(workspace)/@portal/Artifacts/Body/Renderer/index.tsx +5 -0
- package/src/config/modelProviders/siliconcloud.ts +8 -0
- /package/docs/usage/providers/{01ai.zh-CN.mdx → zeroone.zh-CN.mdx} +0 -0
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用文心千帆
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用文心千帆的API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- 百度
|
7
|
+
- 文心千帆
|
8
|
+
- API密钥
|
9
|
+
- Web UI
|
10
|
+
---
|
11
|
+
|
12
|
+
# 在 LobeChat 中使用文心千帆
|
13
|
+
|
14
|
+
<Image
|
15
|
+
cover
|
16
|
+
src={
|
17
|
+
'https://github.com/user-attachments/assets/e43dacf6-313e-499c-8888-f1065c53e424'
|
18
|
+
}
|
19
|
+
/>
|
20
|
+
|
21
|
+
[文心千帆](https://qianfan.cloud.baidu.com/)是百度推出的一个人工智能大语言模型平台,支持多种应用场景,包括文学创作、商业文案生成、数理逻辑推算等。该平台具备跨模态、跨语言的深度语义理解与生成能力,广泛应用于搜索问答、内容创作和智能办公等领域。
|
22
|
+
|
23
|
+
本文将指导你如何在 LobeChat 中使用文心千帆。
|
24
|
+
|
25
|
+
<Steps>
|
26
|
+
### 步骤一:获得文心千帆的 API Key
|
27
|
+
|
28
|
+
- 注册并登录 [百度智能云控制台](https://console.bce.baidu.com/)
|
29
|
+
- 进入 `百度智能云千帆 ModelBuilder`
|
30
|
+
- 在左侧菜单中选择`应用接入`
|
31
|
+
- 创建一个应用
|
32
|
+
|
33
|
+
<Image
|
34
|
+
alt={'创建应用'}
|
35
|
+
inStep
|
36
|
+
src={'https://github.com/user-attachments/assets/927b1040-e23f-4919-92e2-80a400db8327'}
|
37
|
+
/>
|
38
|
+
|
39
|
+
- 创建成功后获取 `API Key` 和 `Secret Key`,并妥善保存
|
40
|
+
|
41
|
+
<Image
|
42
|
+
alt={'保存密钥'}
|
43
|
+
inStep
|
44
|
+
src={'https://github.com/user-attachments/assets/242c8134-8de0-4a02-b302-6bd8b19ced3e'}
|
45
|
+
/>
|
46
|
+
|
47
|
+
### 步骤二:在 LobeChat 中配置文心千帆
|
48
|
+
|
49
|
+
- 访问 LobeChat 的`设置`界面
|
50
|
+
- 在`语言模型`下找到 `文心千帆` 的设置项
|
51
|
+
|
52
|
+
<Image
|
53
|
+
alt={'填入 API 密钥'}
|
54
|
+
inStep
|
55
|
+
src={'https://github.com/user-attachments/assets/e3995de7-38d9-489b-80a2-434477018469'}
|
56
|
+
/>
|
57
|
+
|
58
|
+
- 填入获得的 `API Key` 和 `Secret Key`
|
59
|
+
- 为你的 AI 助手选择一个文心千帆的模型即可开始对话
|
60
|
+
|
61
|
+
<Image
|
62
|
+
alt={'选择文心千帆模型并开始对话'}
|
63
|
+
inStep
|
64
|
+
src={'https://github.com/user-attachments/assets/b6e6a3eb-13c6-46f0-9c7c-69a20deae30f'}
|
65
|
+
/>
|
66
|
+
|
67
|
+
<Callout type={'warning'}>
|
68
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考文心千帆的相关费用政策。
|
69
|
+
</Callout>
|
70
|
+
|
71
|
+
</Steps>
|
72
|
+
|
73
|
+
至此你已经可以在 LobeChat 中使用文心千帆提供的模型进行对话了。
|
@@ -1,39 +1,38 @@
|
|
1
1
|
---
|
2
|
-
title: Using
|
2
|
+
title: Using 01 AI API Key in LobeChat
|
3
3
|
description: >-
|
4
|
-
Learn how to integrate and use
|
5
|
-
instructions. Obtain an API key, configure
|
4
|
+
Learn how to integrate and use 01 AI in LobeChat with step-by-step
|
5
|
+
instructions. Obtain an API key, configure 01 AI, and start
|
6
6
|
conversations with AI models.
|
7
7
|
tags:
|
8
8
|
- 01.AI
|
9
|
-
- Zero One AI
|
10
9
|
- Web UI
|
11
10
|
- API key
|
12
11
|
- AI models
|
13
12
|
---
|
14
13
|
|
15
|
-
# Using
|
14
|
+
# Using 01 AI in LobeChat
|
16
15
|
|
17
16
|
<Image
|
18
|
-
alt={'Using
|
17
|
+
alt={'Using 01 AI in LobeChat'}
|
19
18
|
cover
|
20
19
|
src={'https://github.com/lobehub/lobe-chat/assets/34400653/4485fbc3-c309-4c4e-83ee-cb82392307a1'}
|
21
20
|
/>
|
22
21
|
|
23
|
-
[
|
22
|
+
[01 AI](https://www.01.ai/) is a global company dedicated to AI 2.0 large model technology and applications. Its billion-parameter Yi-Large closed-source model, when evaluated on Stanford University's English ranking AlpacaEval 2.0, is on par with GPT-4.
|
24
23
|
|
25
|
-
This document will guide you on how to use
|
24
|
+
This document will guide you on how to use 01 AI in LobeChat:
|
26
25
|
|
27
26
|
<Steps>
|
28
27
|
|
29
|
-
### Step 1: Obtain
|
28
|
+
### Step 1: Obtain 01 AI API Key
|
30
29
|
|
31
|
-
- Register and log in to the [
|
30
|
+
- Register and log in to the [01 AI Large Model Open Platform](https://platform.lingyiwanwu.com/)
|
32
31
|
- Go to the `Dashboard` and access the `API Key Management` menu
|
33
32
|
- A system-generated API key has been created for you automatically, or you can create a new one on this interface
|
34
33
|
|
35
34
|
<Image
|
36
|
-
alt={'Create
|
35
|
+
alt={'Create 01 AI API Key'}
|
37
36
|
inStep
|
38
37
|
src={'https://github.com/lobehub/lobe-chat/assets/34400653/72f165f4-d529-4f01-a3ac-163c66e5ea73'}
|
39
38
|
/>
|
@@ -55,10 +54,10 @@ This document will guide you on how to use Zero One AI in LobeChat:
|
|
55
54
|
src={'https://github.com/lobehub/lobe-chat/assets/34400653/f892fe64-c734-4944-91ff-9916a41bd1c9'}
|
56
55
|
/>
|
57
56
|
|
58
|
-
### Step 2: Configure
|
57
|
+
### Step 2: Configure 01 AI in LobeChat
|
59
58
|
|
60
59
|
- Access the `Settings` interface in LobeChat
|
61
|
-
- Find the setting for `
|
60
|
+
- Find the setting for `01 AI` under `Language Model`
|
62
61
|
|
63
62
|
<Image
|
64
63
|
alt={'Enter API Key'}
|
@@ -66,7 +65,7 @@ This document will guide you on how to use Zero One AI in LobeChat:
|
|
66
65
|
src={'https://github.com/lobehub/lobe-chat/assets/34400653/f539d104-6d64-4cc7-8781-3b36b00d32d0'}
|
67
66
|
/>
|
68
67
|
|
69
|
-
- Open
|
68
|
+
- Open 01 AI and enter the obtained API key
|
70
69
|
- Choose a 01.AI model for your AI assistant to start the conversation
|
71
70
|
|
72
71
|
<Image
|
@@ -76,10 +75,10 @@ This document will guide you on how to use Zero One AI in LobeChat:
|
|
76
75
|
/>
|
77
76
|
|
78
77
|
<Callout type={'warning'}>
|
79
|
-
During usage, you may need to pay the API service provider. Please refer to
|
78
|
+
During usage, you may need to pay the API service provider. Please refer to 01 AI's relevant
|
80
79
|
fee policies.
|
81
80
|
</Callout>
|
82
81
|
|
83
82
|
</Steps>
|
84
83
|
|
85
|
-
You can now use the models provided by
|
84
|
+
You can now use the models provided by 01 AI for conversations in LobeChat.
|
package/netlify.toml
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.21.
|
3
|
+
"version": "1.21.15",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
5
5
|
"keywords": [
|
6
6
|
"framework",
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Markdown } from '@lobehub/ui';
|
1
2
|
import dynamic from 'next/dynamic';
|
2
3
|
import { memo } from 'react';
|
3
4
|
|
@@ -16,6 +17,10 @@ const Renderer = memo<{ content: string; type?: string }>(({ content, type }) =>
|
|
16
17
|
return <SVGRender content={content} />;
|
17
18
|
}
|
18
19
|
|
20
|
+
case 'text/markdown': {
|
21
|
+
return <Markdown>{content}</Markdown>;
|
22
|
+
}
|
23
|
+
|
19
24
|
default: {
|
20
25
|
return <HTMLRenderer htmlContent={content} />;
|
21
26
|
}
|
@@ -7,6 +7,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
7
7
|
description: 'DeepSeek V2.5 集合了先前版本的优秀特征,增强了通用和编码能力。',
|
8
8
|
displayName: 'DeepSeek V2.5',
|
9
9
|
enabled: true,
|
10
|
+
functionCall: true,
|
10
11
|
id: 'deepseek-ai/DeepSeek-V2.5',
|
11
12
|
pricing: {
|
12
13
|
currency: 'CNY',
|
@@ -19,6 +20,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
19
20
|
description: 'Qwen2.5 是全新的大型语言模型系列,旨在优化指令式任务的处理。',
|
20
21
|
displayName: 'Qwen2.5 7B',
|
21
22
|
enabled: true,
|
23
|
+
functionCall: true,
|
22
24
|
id: 'Qwen/Qwen2.5-7B-Instruct',
|
23
25
|
pricing: {
|
24
26
|
currency: 'CNY',
|
@@ -30,6 +32,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
30
32
|
{
|
31
33
|
description: 'Qwen2.5 是全新的大型语言模型系列,旨在优化指令式任务的处理。',
|
32
34
|
displayName: 'Qwen2.5 14B',
|
35
|
+
functionCall: true,
|
33
36
|
id: 'Qwen/Qwen2.5-14B-Instruct',
|
34
37
|
pricing: {
|
35
38
|
currency: 'CNY',
|
@@ -41,6 +44,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
41
44
|
{
|
42
45
|
description: 'Qwen2.5 是全新的大型语言模型系列,旨在优化指令式任务的处理。',
|
43
46
|
displayName: 'Qwen2.5 32B',
|
47
|
+
functionCall: true,
|
44
48
|
id: 'Qwen/Qwen2.5-32B-Instruct',
|
45
49
|
pricing: {
|
46
50
|
currency: 'CNY',
|
@@ -53,6 +57,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
53
57
|
description: 'Qwen2.5 是全新的大型语言模型系列,具有更强的理解和生成能力。',
|
54
58
|
displayName: 'Qwen2.5 72B',
|
55
59
|
enabled: true,
|
60
|
+
functionCall: true,
|
56
61
|
id: 'Qwen/Qwen2.5-72B-Instruct',
|
57
62
|
pricing: {
|
58
63
|
currency: 'CNY',
|
@@ -88,6 +93,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
88
93
|
{
|
89
94
|
description: 'InternLM2.5 提供多场景下的智能对话解决方案。',
|
90
95
|
displayName: 'Internlm 2.5 7B',
|
96
|
+
functionCall: true,
|
91
97
|
id: 'internlm/internlm2_5-7b-chat',
|
92
98
|
pricing: {
|
93
99
|
currency: 'CNY',
|
@@ -99,6 +105,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
99
105
|
{
|
100
106
|
description: '创新的开源模型InternLM2.5,通过大规模的参数提高了对话智能。',
|
101
107
|
displayName: 'Internlm 2.5 20B',
|
108
|
+
functionCall: true,
|
102
109
|
id: 'internlm/internlm2_5-20b-chat',
|
103
110
|
pricing: {
|
104
111
|
currency: 'CNY',
|
@@ -110,6 +117,7 @@ const SiliconCloud: ModelProviderCard = {
|
|
110
117
|
{
|
111
118
|
description: 'GLM-4 9B 开放源码版本,为会话应用提供优化后的对话体验。',
|
112
119
|
displayName: 'GLM-4 9B',
|
120
|
+
functionCall: true,
|
113
121
|
id: 'THUDM/glm-4-9b-chat',
|
114
122
|
pricing: {
|
115
123
|
currency: 'CNY',
|
File without changes
|