@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
@@ -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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.21.
|
3
|
+
"version": "1.21.14",
|
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
|
}
|
File without changes
|