@lobehub/chat 1.21.13 → 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 +25 -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/docs/usage/providers/{01ai.zh-CN.mdx → zeroone.zh-CN.mdx} +0 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.21.14](https://github.com/lobehub/lobe-chat/compare/v1.21.13...v1.21.14)
|
6
|
+
|
7
|
+
<sup>Released on **2024-10-12**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Fix artifacts render markdown.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Fix artifacts render markdown, closes [#4327](https://github.com/lobehub/lobe-chat/issues/4327) ([6bb6ea6](https://github.com/lobehub/lobe-chat/commit/6bb6ea6))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.21.13](https://github.com/lobehub/lobe-chat/compare/v1.21.12...v1.21.13)
|
6
31
|
|
7
32
|
<sup>Released on **2024-10-11**</sup>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
title: Using AI21 Labs in LobeChat
|
3
|
+
description: Learn how to integrate and utilize AI21 Labs's language model APIs in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- AI21 Labs
|
7
|
+
- API Key
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
# Using AI21 Labs in LobeChat
|
11
|
+
|
12
|
+
<Image
|
13
|
+
cover
|
14
|
+
src={
|
15
|
+
'https://github.com/user-attachments/assets/ae03eab5-a319-4d2a-a5f6-1683ab7739ee'
|
16
|
+
}
|
17
|
+
/>
|
18
|
+
|
19
|
+
[AI21 Labs](https://www.ai21.com/) is a company focused on artificial intelligence, offering advanced language models and API services designed to help developers and businesses leverage natural language processing technology. Their flagship product, the "Jamba" series of models, can perform complex language understanding and generation tasks, widely utilized in fields such as content creation and conversational systems.
|
20
|
+
|
21
|
+
This article will guide you on how to use AI21 Labs within LobeChat.
|
22
|
+
|
23
|
+
<Steps>
|
24
|
+
### Step 1: Obtain the AI21 Labs API Key
|
25
|
+
|
26
|
+
- Register and log in to [AI21 Studio](https://studio.ai21.com)
|
27
|
+
- Click on the `User Avatar` menu, then select `API Key`
|
28
|
+
- Copy and save the generated API key
|
29
|
+
|
30
|
+
<Image
|
31
|
+
alt={'Copy API Key'}
|
32
|
+
inStep
|
33
|
+
src={'https://github.com/user-attachments/assets/a42ba52b-491e-4993-8e2f-217aa1776e0f'}
|
34
|
+
/>
|
35
|
+
|
36
|
+
### Step 2: Configure AI21 Labs in LobeChat
|
37
|
+
|
38
|
+
- Go to the `Settings` page in LobeChat
|
39
|
+
- Under `Language Model`, find the setting for `AI21 Labs`
|
40
|
+
|
41
|
+
<Image
|
42
|
+
alt={'Enter API Key'}
|
43
|
+
inStep
|
44
|
+
src={'https://github.com/user-attachments/assets/9336d6c5-2a83-4aa9-854e-75e245b665cb'}
|
45
|
+
/>
|
46
|
+
|
47
|
+
- Enter the API key you obtained
|
48
|
+
- Choose an AI21 Labs model for your AI assistant to begin the conversation
|
49
|
+
|
50
|
+
<Image
|
51
|
+
alt={'Select AI21 Labs Model and Start Conversation'}
|
52
|
+
inStep
|
53
|
+
src={'https://github.com/user-attachments/assets/63e5ced7-1d23-44e1-b933-cc3b5df47eab'}
|
54
|
+
/>
|
55
|
+
|
56
|
+
<Callout type={'warning'}>
|
57
|
+
During use, you may need to pay the API service provider; please refer to the relevant fee policy of AI21 Labs.
|
58
|
+
</Callout>
|
59
|
+
|
60
|
+
</Steps>
|
61
|
+
|
62
|
+
Now you are ready to engage in conversations using the models provided by AI21 Labs in LobeChat.
|
63
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用 AI21 Labs
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 AI21 Labs 的API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- AI21 Labs
|
7
|
+
- API密钥
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
|
11
|
+
# 在 LobeChat 中使用 AI21 Labs
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/ae03eab5-a319-4d2a-a5f6-1683ab7739ee'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[AI21 Labs](https://www.ai21.com/) 是一家专注于人工智能的公司,提供先进的语言模型和API服务,旨在帮助开发者和企业利用自然语言处理技术。其旗舰产品 "Jamba" 系列模型能够进行复杂的语言理解和生成任务,广泛应用于内容创作、对话系统等领域。
|
21
|
+
|
22
|
+
本文将指导你如何在 LobeChat 中使用 AI21 Labs。
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### 步骤一:获得 AI21 Labs 的 API Key
|
26
|
+
|
27
|
+
- 注册并登录 [AI21 Studio](https://studio.ai21.com)
|
28
|
+
- 点击 `用户头像` 菜单,点击 `API Key`
|
29
|
+
- 复制并保存生成的 API 密钥
|
30
|
+
|
31
|
+
<Image
|
32
|
+
alt={'复制 API 密钥'}
|
33
|
+
inStep
|
34
|
+
src={'https://github.com/user-attachments/assets/a42ba52b-491e-4993-8e2f-217aa1776e0f'}
|
35
|
+
/>
|
36
|
+
|
37
|
+
### 步骤二:在 LobeChat 中配置 AI21 Labs
|
38
|
+
|
39
|
+
- 访问 LobeChat 的`设置`界面
|
40
|
+
- 在`语言模型`下找到 `AI21labs` 的设置项
|
41
|
+
|
42
|
+
<Image
|
43
|
+
alt={'填入 API 密钥'}
|
44
|
+
inStep
|
45
|
+
src={'https://github.com/user-attachments/assets/9336d6c5-2a83-4aa9-854e-75e245b665cb'}
|
46
|
+
/>
|
47
|
+
|
48
|
+
- 填入获得的 API 密钥
|
49
|
+
- 为你的 AI 助手选择一个 AI21 Labs 的模型即可开始对话
|
50
|
+
|
51
|
+
<Image
|
52
|
+
alt={'选择 AI21 Labs 模型并开始对话'}
|
53
|
+
inStep
|
54
|
+
src={'https://github.com/user-attachments/assets/63e5ced7-1d23-44e1-b933-cc3b5df47eab'}
|
55
|
+
/>
|
56
|
+
|
57
|
+
<Callout type={'warning'}>
|
58
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 AI21 Labs 的相关费用政策。
|
59
|
+
</Callout>
|
60
|
+
|
61
|
+
</Steps>
|
62
|
+
|
63
|
+
至此你已经可以在 LobeChat 中使用 AI21 Labs 提供的模型进行对话了。
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
title: Using the 360AI in LobeChat
|
3
|
+
description: Learn how to integrate and utilize 360AI's language model APIs in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- 360AI
|
7
|
+
- API Key
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
# Using the 360AI in LobeChat
|
11
|
+
|
12
|
+
<Image
|
13
|
+
cover
|
14
|
+
src={
|
15
|
+
'https://github.com/user-attachments/assets/e617def1-ce50-4acc-974b-12f5ed592a0e'
|
16
|
+
}
|
17
|
+
/>
|
18
|
+
|
19
|
+
The [360AI](https://ai.360.com/) is a cognitive general model independently developed by 360 Company, aimed at providing powerful natural language processing capabilities for enterprises and developers. This model has been upgraded to version 4.0 and supports various application scenarios, including conversational services, image generation, vector database services, and more.
|
20
|
+
|
21
|
+
This article will guide you on how to use the 360AI in LobeChat.
|
22
|
+
|
23
|
+
<Steps>
|
24
|
+
### Step 1: Obtain the 360AI API Key
|
25
|
+
|
26
|
+
- Register and log in to the [360AI API Open Platform](https://ai.360.com/platform/keys)
|
27
|
+
- Click on the `API Keys` menu on the left
|
28
|
+
- Create an API key and copy it
|
29
|
+
|
30
|
+
<Image
|
31
|
+
alt={'Create API Key'}
|
32
|
+
inStep
|
33
|
+
src={'https://github.com/user-attachments/assets/72da7af1-e180-4759-84a5-a6f6ca28392e'}
|
34
|
+
/>
|
35
|
+
|
36
|
+
### Step 2: Configure 360AI in LobeChat
|
37
|
+
|
38
|
+
- Access the `Settings` interface in LobeChat
|
39
|
+
- Under `Language Models`, find the option for `360`
|
40
|
+
|
41
|
+
<Image
|
42
|
+
alt={'Enter API Key'}
|
43
|
+
inStep
|
44
|
+
src={'https://github.com/user-attachments/assets/a53deb11-2c14-441a-8a5c-a0f3a74e2a63'}
|
45
|
+
/>
|
46
|
+
|
47
|
+
- Enter the API key you obtained
|
48
|
+
- Choose a 360AI model for your AI assistant to start chatting
|
49
|
+
|
50
|
+
<Image
|
51
|
+
alt={'Select 360 Model and Start Chatting'}
|
52
|
+
inStep
|
53
|
+
src={'https://github.com/user-attachments/assets/452d0b48-5ff7-4f42-a46e-68a62b87632b'}
|
54
|
+
/>
|
55
|
+
|
56
|
+
<Callout type={'warning'}>
|
57
|
+
Please note that you may need to pay the API service provider during use, refer to the relevant pricing policy of the 360AI.
|
58
|
+
</Callout>
|
59
|
+
|
60
|
+
</Steps>
|
61
|
+
|
62
|
+
You can now use the models provided by the 360AI for conversations in LobeChat.
|
63
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用360智脑
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用360智脑的API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- 360智脑
|
7
|
+
- API密钥
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
|
11
|
+
# 在 LobeChat 中使用360智脑
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/e617def1-ce50-4acc-974b-12f5ed592a0e'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[360智脑](https://ai.360.com/)是360公司自主研发的认知型通用大模型,旨在为企业和开发者提供强大的自然语言处理能力。该模型已升级至4.0版本,能够支持多种应用场景,包括对话服务、图片生成、向量数据库服务等。
|
21
|
+
|
22
|
+
本文将指导你如何在 LobeChat 中使用360智脑。
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### 步骤一:获得360智脑的 API Key
|
26
|
+
|
27
|
+
- 注册并登录 [360智脑 API 开放平台](https://ai.360.com/platform/keys)
|
28
|
+
- 点击左侧 `API Keys` 菜单
|
29
|
+
- 创建一个 API 密钥并复制
|
30
|
+
|
31
|
+
<Image
|
32
|
+
alt={'创建API密钥'}
|
33
|
+
inStep
|
34
|
+
src={'https://github.com/user-attachments/assets/72da7af1-e180-4759-84a5-a6f6ca28392e'}
|
35
|
+
/>
|
36
|
+
|
37
|
+
### 步骤二:在 LobeChat 中配置360智脑
|
38
|
+
|
39
|
+
- 访问 LobeChat 的`设置`界面
|
40
|
+
- 在`语言模型`下找到 `360` 的设置项
|
41
|
+
|
42
|
+
<Image
|
43
|
+
alt={'填入 API 密钥'}
|
44
|
+
inStep
|
45
|
+
src={'https://github.com/user-attachments/assets/a53deb11-2c14-441a-8a5c-a0f3a74e2a63'}
|
46
|
+
/>
|
47
|
+
|
48
|
+
- 填入获得的 API 密钥
|
49
|
+
- 为你的 AI 助手选择一个360智脑的模型即可开始对话
|
50
|
+
|
51
|
+
<Image
|
52
|
+
alt={'选择360模型并开始对话'}
|
53
|
+
inStep
|
54
|
+
src={'https://github.com/user-attachments/assets/452d0b48-5ff7-4f42-a46e-68a62b87632b'}
|
55
|
+
/>
|
56
|
+
|
57
|
+
<Callout type={'warning'}>
|
58
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考360智脑的相关费用政策。
|
59
|
+
</Callout>
|
60
|
+
|
61
|
+
</Steps>
|
62
|
+
|
63
|
+
至此你已经可以在 LobeChat 中使用360智脑提供的模型进行对话了。
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
title: Using Fireworks AI in LobeChat
|
3
|
+
description: Learn how to integrate and utilize Fireworks AI's language model APIs in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- Fireworks AI
|
7
|
+
- API Key
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
# Using Fireworks AI in LobeChat
|
11
|
+
|
12
|
+
<Image
|
13
|
+
cover
|
14
|
+
src={
|
15
|
+
'https://github.com/user-attachments/assets/facdc83c-e789-4649-8060-7f7a10a1b1dd'
|
16
|
+
}
|
17
|
+
/>
|
18
|
+
|
19
|
+
[Fireworks.ai](https://fireworks.ai/) is a high-performance generative AI model inference platform that allows users to access and utilize various models through its API. The platform supports multiple modalities, including text and visual language models, and offers features like function calls and JSON schemas to enhance the flexibility of application development.
|
20
|
+
|
21
|
+
This article will guide you on how to use Fireworks AI in LobeChat.
|
22
|
+
|
23
|
+
<Steps>
|
24
|
+
### Step 1: Obtain an API Key for Fireworks AI
|
25
|
+
|
26
|
+
- Log in to the [Fireworks.ai Console](https://fireworks.ai/account/api-keys)
|
27
|
+
- Navigate to the `User` page and click on `API Keys`
|
28
|
+
- Create a new API key
|
29
|
+
|
30
|
+
<Image
|
31
|
+
alt={'Create API Key'}
|
32
|
+
inStep
|
33
|
+
src={'https://github.com/user-attachments/assets/eb027093-5ceb-4a9d-8850-b791fbf69a71'}
|
34
|
+
/>
|
35
|
+
|
36
|
+
- Copy and securely save the generated API key
|
37
|
+
|
38
|
+
<Image
|
39
|
+
alt={'Save API Key'}
|
40
|
+
inStep
|
41
|
+
src={'https://github.com/user-attachments/assets/28590f7f-bfee-4215-b50b-8feddbf72366'}
|
42
|
+
/>
|
43
|
+
|
44
|
+
<Callout type={'warning'}>
|
45
|
+
Please store the key securely, as it will appear only once. If you accidentally lose it, you will need to create a new key.
|
46
|
+
</Callout>
|
47
|
+
|
48
|
+
### Step 2: Configure Fireworks AI in LobeChat
|
49
|
+
|
50
|
+
- Access the `Settings` interface in LobeChat
|
51
|
+
- Under `Language Model`, locate the settings for `Fireworks AI`
|
52
|
+
|
53
|
+
<Image
|
54
|
+
alt={'Enter API Key'}
|
55
|
+
inStep
|
56
|
+
src={'https://github.com/user-attachments/assets/12c1957d-f050-4235-95da-d55ddedfa6c9'}
|
57
|
+
/>
|
58
|
+
|
59
|
+
- Enter the obtained API key
|
60
|
+
- Select a Fireworks AI model for your AI assistant to start a conversation
|
61
|
+
|
62
|
+
<Image
|
63
|
+
alt={'Select Fireworks AI Model and Start Conversation'}
|
64
|
+
inStep
|
65
|
+
src={'https://github.com/user-attachments/assets/378df8df-8ec4-436e-8451-fbc52705faee'}
|
66
|
+
/>
|
67
|
+
|
68
|
+
<Callout type={'warning'}>
|
69
|
+
Please note that you may need to pay fees to the API service provider during use; refer to Fireworks AI's pricing policy for details.
|
70
|
+
</Callout>
|
71
|
+
|
72
|
+
</Steps>
|
73
|
+
|
74
|
+
You are now ready to use the models provided by Fireworks AI for conversations in LobeChat.
|
75
|
+
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用 Fireworks AI
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 Fireworks AI 的API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- Fireworks AI
|
7
|
+
- API密钥
|
8
|
+
- Web UI
|
9
|
+
---
|
10
|
+
|
11
|
+
# 在 LobeChat 中使用 Fireworks AI
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/facdc83c-e789-4649-8060-7f7a10a1b1dd'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[Fireworks.ai](https://fireworks.ai/) 是一个高性能的生成式 AI 模型推理平台,允许用户通过其 API 访问和使用各种模型。该平台支持多种模态,包括文本和视觉语言模型,并提供函数调用和 JSON 模式等功能,以增强应用开发的灵活性。
|
21
|
+
|
22
|
+
本文将指导你如何在 LobeChat 中使用 Fireworks AI。
|
23
|
+
|
24
|
+
<Steps>
|
25
|
+
### 步骤一:获得 Fireworks AI 的 API Key
|
26
|
+
|
27
|
+
- 登录 [Fireworks.ai 控制台](https://fireworks.ai/account/api-keys)
|
28
|
+
- 进入 `User` 页面,点击 `API Keys`
|
29
|
+
- 创建一个新的 API 密钥
|
30
|
+
|
31
|
+
<Image
|
32
|
+
alt={'创建 API 密钥'}
|
33
|
+
inStep
|
34
|
+
src={'https://github.com/user-attachments/assets/eb027093-5ceb-4a9d-8850-b791fbf69a71'}
|
35
|
+
/>
|
36
|
+
|
37
|
+
- 复制并保存生成的 API 密钥
|
38
|
+
|
39
|
+
<Image
|
40
|
+
alt={'保存 API 密钥'}
|
41
|
+
inStep
|
42
|
+
src={'https://github.com/user-attachments/assets/28590f7f-bfee-4215-b50b-8feddbf72366'}
|
43
|
+
/>
|
44
|
+
|
45
|
+
<Callout type={'warning'}>
|
46
|
+
请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新密钥。
|
47
|
+
</Callout>
|
48
|
+
|
49
|
+
### 步骤二:在 LobeChat 中配置 Fireworks AI
|
50
|
+
|
51
|
+
- 访问 LobeChat 的`设置`界面
|
52
|
+
- 在`语言模型`下找到 `Fireworks AI` 的设置项
|
53
|
+
|
54
|
+
<Image
|
55
|
+
alt={'填入 API 密钥'}
|
56
|
+
inStep
|
57
|
+
src={'https://github.com/user-attachments/assets/12c1957d-f050-4235-95da-d55ddedfa6c9'}
|
58
|
+
/>
|
59
|
+
|
60
|
+
- 填入获得的 API 密钥
|
61
|
+
- 为你的 AI 助手选择一个 Fireworks AI 的模型即可开始对话
|
62
|
+
|
63
|
+
<Image
|
64
|
+
alt={'选择 Fireworks AI 模型并开始对话'}
|
65
|
+
inStep
|
66
|
+
src={'https://github.com/user-attachments/assets/378df8df-8ec4-436e-8451-fbc52705faee'}
|
67
|
+
/>
|
68
|
+
|
69
|
+
<Callout type={'warning'}>
|
70
|
+
在使用过程中你可能需要向 API 服务提供商付费,请参考 Fireworks AI 的相关费用政策。
|
71
|
+
</Callout>
|
72
|
+
|
73
|
+
</Steps>
|
74
|
+
|
75
|
+
至此你已经可以在 LobeChat 中使用 Fireworks AI 提供的模型进行对话了。
|
@@ -0,0 +1,92 @@
|
|
1
|
+
---
|
2
|
+
title: Using GitHub Models in LobeChat
|
3
|
+
description: Learn how to integrate and utilize GitHub Models in LobeChat.
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- GitHub
|
7
|
+
- GitHub Models
|
8
|
+
- API Key
|
9
|
+
- Web UI
|
10
|
+
---
|
11
|
+
# Using GitHub Models in LobeChat
|
12
|
+
|
13
|
+
<Image
|
14
|
+
cover
|
15
|
+
src={
|
16
|
+
'https://github.com/user-attachments/assets/3050839a-cb16-485d-8bae-1bc2f9ade632'
|
17
|
+
}
|
18
|
+
/>
|
19
|
+
|
20
|
+
[GitHub Models](https://github.com/marketplace/models) is a new feature recently launched by GitHub, designed to provide developers with a free platform to access and experiment with various AI models. GitHub Models offers an interactive sandbox environment where users can test different model parameters and prompts, and observe the responses of the models. The platform supports advanced language models, including OpenAI's GPT-4o, Meta's Llama 3.1, and Mistral's Large 2, covering a wide range of applications from large-scale language models to task-specific models.
|
21
|
+
|
22
|
+
This article will guide you on how to use GitHub Models in LobeChat.
|
23
|
+
|
24
|
+
## Rate Limits for GitHub Models
|
25
|
+
|
26
|
+
Currently, the usage of the Playground and free API is subject to limits on the number of requests per minute, the number of requests per day, the number of tokens per request, and the number of concurrent requests. If you hit the rate limit, you will need to wait for the limit to reset before making further requests. The rate limits vary for different models (low, high, and embedding models). For model type information, please refer to the GitHub Marketplace.
|
27
|
+
|
28
|
+
<Image
|
29
|
+
alt={'GitHub Models Rate Limits'}
|
30
|
+
inStep
|
31
|
+
src={'https://github.com/user-attachments/assets/21c52e2a-b2f8-4de8-a5d4-cf3444608db7'}
|
32
|
+
/>
|
33
|
+
|
34
|
+
<Callout type="note">
|
35
|
+
These limits are subject to change at any time. For specific information, please refer to the [GitHub Official Documentation](https://docs.github.com/en/github-models/prototyping-with-ai-models#rate-limits).
|
36
|
+
</Callout>
|
37
|
+
|
38
|
+
---
|
39
|
+
|
40
|
+
## Configuration Guide for GitHub Models
|
41
|
+
|
42
|
+
<Steps>
|
43
|
+
### Step 1: Obtain a GitHub Access Token
|
44
|
+
|
45
|
+
- Log in to GitHub and open the [Access Tokens](https://github.com/settings/tokens) page.
|
46
|
+
- Create and configure a new access token.
|
47
|
+
|
48
|
+
<Image
|
49
|
+
alt={'Creating Access Token'}
|
50
|
+
inStep
|
51
|
+
src={'https://github.com/user-attachments/assets/8570db14-dac6-4279-ab71-04a072c15490'}
|
52
|
+
/>
|
53
|
+
|
54
|
+
- Copy and save the generated token from the results returned.
|
55
|
+
|
56
|
+
<Image
|
57
|
+
alt={'Saving Access Token'}
|
58
|
+
inStep
|
59
|
+
src={'https://github.com/user-attachments/assets/3c1a492d-a3d4-4570-9e74-785c2942ca41'}
|
60
|
+
/>
|
61
|
+
|
62
|
+
<Callout type={"warning"}>
|
63
|
+
|
64
|
+
- During the testing phase of GitHub Models, users must apply to join the [waitlist](https://github.com/marketplace/models/waitlist/join) in order to gain access.
|
65
|
+
|
66
|
+
- Please store the access token securely, as it will only be displayed once. If you accidentally lose it, you will need to create a new token.
|
67
|
+
</Callout>
|
68
|
+
|
69
|
+
### Step 2: Configure GitHub Models in LobeChat
|
70
|
+
|
71
|
+
- Navigate to the `Settings` interface in LobeChat.
|
72
|
+
- Under `Language Models`, find the GitHub settings.
|
73
|
+
|
74
|
+
<Image
|
75
|
+
alt={'Entering Access Token'}
|
76
|
+
inStep
|
77
|
+
src={'https://github.com/user-attachments/assets/a00f06cc-da7c-41e8-a4d5-d4b675a22673'}
|
78
|
+
/>
|
79
|
+
|
80
|
+
- Enter the access token you obtained.
|
81
|
+
- Select a GitHub model for your AI assistant to start the conversation.
|
82
|
+
|
83
|
+
<Image
|
84
|
+
alt={'Selecting GitHub Model and Starting Conversation'}
|
85
|
+
inStep
|
86
|
+
src={'https://github.com/user-attachments/assets/aead3c6c-891e-47c3-9f34-bdc33875e0c2'}
|
87
|
+
/>
|
88
|
+
|
89
|
+
</Steps>
|
90
|
+
|
91
|
+
You are now ready to use the models provided by GitHub for conversations within LobeChat.
|
92
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用 GitHub Models
|
3
|
+
description: 学习如何在 LobeChat 中配置和使用 GitHub 的 API Key,以便开始对话和交互。
|
4
|
+
tags:
|
5
|
+
- LobeChat
|
6
|
+
- GitHub
|
7
|
+
- GitHub Models
|
8
|
+
- API密钥
|
9
|
+
- Web UI
|
10
|
+
---
|
11
|
+
|
12
|
+
# 在 LobeChat 中使用 GitHub Models
|
13
|
+
|
14
|
+
<Image
|
15
|
+
cover
|
16
|
+
src={
|
17
|
+
'https://github.com/user-attachments/assets/3050839a-cb16-485d-8bae-1bc2f9ade632'
|
18
|
+
}
|
19
|
+
/>
|
20
|
+
|
21
|
+
[GitHub Models](https://github.com/marketplace/models) 是 GitHub 最近推出的一项新功能,旨在为开发者提供一个免费的平台来访问和实验多种 AI 模型。GitHub Models 提供了一个互动沙盒环境,用户可以在此测试不同的模型参数和提示语,观察模型的响应。该平台支持多种先进的语言模型,包括 OpenAI 的 GPT-4o、Meta 的 Llama 3.1 和 Mistral 的 Large 2 等,覆盖了从大规模语言模型到特定任务模型的广泛应用。
|
22
|
+
|
23
|
+
本文将指导你如何在 LobeChat 中使用 GitHub Models。
|
24
|
+
|
25
|
+
## GitHub Models 速率限制
|
26
|
+
|
27
|
+
当前 Playground 和免费 API 的使用受到每分钟请求数、每日请求数、每个请求的令牌数以及并发请求数的限制。若达到速率限制,则需等待限制重置后方可继续发出请求。不同模型(低、高及嵌入模型)的速率限制有所不同。 模型类型信息请参阅 GitHub Marketplace。
|
28
|
+
|
29
|
+
<Image
|
30
|
+
alt={'GitHub Models 速率限制'}
|
31
|
+
inStep
|
32
|
+
src={'https://github.com/user-attachments/assets/21c52e2a-b2f8-4de8-a5d4-cf3444608db7'}
|
33
|
+
/>
|
34
|
+
|
35
|
+
<Callout type="note">
|
36
|
+
这些限制可能随时更改,具体信息请参考 [GitHub 官方文档](https://docs.github.com/en/github-models/prototyping-with-ai-models#rate-limits)。
|
37
|
+
</Callout>
|
38
|
+
|
39
|
+
---
|
40
|
+
|
41
|
+
## GitHub Models 配置指南
|
42
|
+
|
43
|
+
<Steps>
|
44
|
+
### 步骤一:获得 GitHub 的访问令牌
|
45
|
+
|
46
|
+
- 登录 GitHub 并打开 [访问令牌](https://github.com/settings/tokens) 页面
|
47
|
+
- 创建并设置一个新的访问令牌
|
48
|
+
|
49
|
+
<Image
|
50
|
+
alt={'创建访问令牌'}
|
51
|
+
inStep
|
52
|
+
src={'https://github.com/user-attachments/assets/8570db14-dac6-4279-ab71-04a072c15490'}
|
53
|
+
/>
|
54
|
+
|
55
|
+
- 在返回的结果中复制并保存生成的令牌
|
56
|
+
|
57
|
+
<Image
|
58
|
+
alt={'保存访问令牌'}
|
59
|
+
inStep
|
60
|
+
src={'https://github.com/user-attachments/assets/3c1a492d-a3d4-4570-9e74-785c2942ca41'}
|
61
|
+
/>
|
62
|
+
|
63
|
+
<Callout type={"warning"}>
|
64
|
+
- GitHub Models 测试期间,要使用 GitHub Models,用户需要申请加入[等待名单(waitlist)](https://github.com/marketplace/models/waitlist/join) 通过后才能获得访问权限。
|
65
|
+
|
66
|
+
- 请安全地存储访问令牌,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新令牌。
|
67
|
+
</Callout>
|
68
|
+
|
69
|
+
### 步骤二:在 LobeChat 中配置 GitHub Models
|
70
|
+
|
71
|
+
- 访问 LobeChat 的`设置`界面
|
72
|
+
- 在`语言模型`下找到 `GitHub` 的设置项
|
73
|
+
|
74
|
+
<Image
|
75
|
+
alt={'填入访问令牌'}
|
76
|
+
inStep
|
77
|
+
src={'https://github.com/user-attachments/assets/a00f06cc-da7c-41e8-a4d5-d4b675a22673'}
|
78
|
+
/>
|
79
|
+
|
80
|
+
- 填入获得的访问令牌
|
81
|
+
- 为你的 AI 助手选择一个 GitHub 的模型即可开始对话
|
82
|
+
|
83
|
+
<Image
|
84
|
+
alt={'选择 GitHub 模型并开始对话'}
|
85
|
+
inStep
|
86
|
+
src={'https://github.com/user-attachments/assets/aead3c6c-891e-47c3-9f34-bdc33875e0c2'}
|
87
|
+
/>
|
88
|
+
|
89
|
+
</Steps>
|
90
|
+
|
91
|
+
至此你已经可以在 LobeChat 中使用 GitHub 提供的模型进行对话了。
|
@@ -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
|
+
|