@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.
@@ -1,39 +1,38 @@
1
1
  ---
2
- title: Using Zero One AI API Key in LobeChat
2
+ title: Using 01 AI API Key in LobeChat
3
3
  description: >-
4
- Learn how to integrate and use Zero One AI in LobeChat with step-by-step
5
- instructions. Obtain an API key, configure Zero One AI, and start
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 Zero One AI in LobeChat
14
+ # Using 01 AI in LobeChat
16
15
 
17
16
  <Image
18
- alt={'Using Zero One AI in LobeChat'}
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
- [Zero One 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.
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 Zero One AI in LobeChat:
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 Zero One AI API Key
28
+ ### Step 1: Obtain 01 AI API Key
30
29
 
31
- - Register and log in to the [Zero One AI Large Model Open Platform](https://platform.lingyiwanwu.com/)
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 Zero One AI API Key'}
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 Zero One AI in LobeChat
57
+ ### Step 2: Configure 01 AI in LobeChat
59
58
 
60
59
  - Access the `Settings` interface in LobeChat
61
- - Find the setting for `Zero One AI` under `Language Model`
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 Zero One AI and enter the obtained API key
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 Zero One AI's relevant
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 Zero One AI for conversations in LobeChat.
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.13",
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
  }