@lobehub/chat 1.22.7 → 1.22.8
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/package.json +1 -1
- package/src/config/modelProviders/zeroone.ts +74 -6
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.22.8](https://github.com/lobehub/lobe-chat/compare/v1.22.7...v1.22.8)
|
6
|
+
|
7
|
+
<sup>Released on **2024-10-17**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Add Yi-Lightning model.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Add Yi-Lightning model, closes [#4390](https://github.com/lobehub/lobe-chat/issues/4390) ([9e9fb9a](https://github.com/lobehub/lobe-chat/commit/9e9fb9a))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.22.7](https://github.com/lobehub/lobe-chat/compare/v1.22.6...v1.22.7)
|
6
31
|
|
7
32
|
<sup>Released on **2024-10-17**</sup>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.22.
|
3
|
+
"version": "1.22.8",
|
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,13 +1,30 @@
|
|
1
1
|
import { ModelProviderCard } from '@/types/llm';
|
2
2
|
|
3
|
-
// ref
|
3
|
+
// ref: https://platform.lingyiwanwu.com/docs#%E6%A8%A1%E5%9E%8B%E4%B8%8E%E8%AE%A1%E8%B4%B9
|
4
4
|
const ZeroOne: ModelProviderCard = {
|
5
5
|
chatModels: [
|
6
|
+
{
|
7
|
+
description: '最新高性能模型,保证高质量输出同时,推理速度大幅提升。',
|
8
|
+
displayName: 'Yi Lightning',
|
9
|
+
enabled: true,
|
10
|
+
id: 'yi-lightning',
|
11
|
+
pricing: {
|
12
|
+
currency: 'CNY',
|
13
|
+
input: 0.99,
|
14
|
+
output: 0.99,
|
15
|
+
},
|
16
|
+
tokens: 16_384,
|
17
|
+
},
|
6
18
|
{
|
7
19
|
description: '全新千亿参数模型,提供超强问答及文本生成能力。',
|
8
20
|
displayName: 'Yi Large',
|
9
21
|
enabled: true,
|
10
22
|
id: 'yi-large',
|
23
|
+
pricing: {
|
24
|
+
currency: 'CNY',
|
25
|
+
input: 20,
|
26
|
+
output: 20,
|
27
|
+
},
|
11
28
|
tokens: 32_768,
|
12
29
|
},
|
13
30
|
{
|
@@ -17,6 +34,11 @@ const ZeroOne: ModelProviderCard = {
|
|
17
34
|
enabled: true,
|
18
35
|
functionCall: true,
|
19
36
|
id: 'yi-large-fc',
|
37
|
+
pricing: {
|
38
|
+
currency: 'CNY',
|
39
|
+
input: 20,
|
40
|
+
output: 20,
|
41
|
+
},
|
20
42
|
tokens: 32_768,
|
21
43
|
},
|
22
44
|
{
|
@@ -25,6 +47,11 @@ const ZeroOne: ModelProviderCard = {
|
|
25
47
|
displayName: 'Yi Large RAG',
|
26
48
|
enabled: true,
|
27
49
|
id: 'yi-large-rag',
|
50
|
+
pricing: {
|
51
|
+
currency: 'CNY',
|
52
|
+
input: 25,
|
53
|
+
output: 25,
|
54
|
+
},
|
28
55
|
tokens: 16_384,
|
29
56
|
},
|
30
57
|
{
|
@@ -32,6 +59,11 @@ const ZeroOne: ModelProviderCard = {
|
|
32
59
|
displayName: 'Yi Large Turbo',
|
33
60
|
enabled: true,
|
34
61
|
id: 'yi-large-turbo',
|
62
|
+
pricing: {
|
63
|
+
currency: 'CNY',
|
64
|
+
input: 12,
|
65
|
+
output: 12,
|
66
|
+
},
|
35
67
|
tokens: 16_384,
|
36
68
|
},
|
37
69
|
{
|
@@ -39,6 +71,11 @@ const ZeroOne: ModelProviderCard = {
|
|
39
71
|
displayName: 'Yi Medium',
|
40
72
|
enabled: true,
|
41
73
|
id: 'yi-medium',
|
74
|
+
pricing: {
|
75
|
+
currency: 'CNY',
|
76
|
+
input: 2.5,
|
77
|
+
output: 2.5,
|
78
|
+
},
|
42
79
|
tokens: 16_384,
|
43
80
|
},
|
44
81
|
{
|
@@ -46,6 +83,11 @@ const ZeroOne: ModelProviderCard = {
|
|
46
83
|
displayName: 'Yi Medium 200K',
|
47
84
|
enabled: true,
|
48
85
|
id: 'yi-medium-200k',
|
86
|
+
pricing: {
|
87
|
+
currency: 'CNY',
|
88
|
+
input: 12,
|
89
|
+
output: 12,
|
90
|
+
},
|
49
91
|
tokens: 200_000,
|
50
92
|
},
|
51
93
|
{
|
@@ -53,6 +95,11 @@ const ZeroOne: ModelProviderCard = {
|
|
53
95
|
displayName: 'Yi Spark',
|
54
96
|
enabled: true,
|
55
97
|
id: 'yi-spark',
|
98
|
+
pricing: {
|
99
|
+
currency: 'CNY',
|
100
|
+
input: 1,
|
101
|
+
output: 1,
|
102
|
+
},
|
56
103
|
tokens: 16_384,
|
57
104
|
},
|
58
105
|
{
|
@@ -60,23 +107,44 @@ const ZeroOne: ModelProviderCard = {
|
|
60
107
|
displayName: 'Yi Vision',
|
61
108
|
enabled: true,
|
62
109
|
id: 'yi-vision',
|
110
|
+
pricing: {
|
111
|
+
currency: 'CNY',
|
112
|
+
input: 6,
|
113
|
+
output: 6,
|
114
|
+
},
|
63
115
|
tokens: 16_384,
|
64
116
|
vision: true,
|
65
117
|
},
|
66
118
|
{
|
67
|
-
description: '初期版本,推荐使用 yi-large
|
119
|
+
description: '初期版本,推荐使用 yi-large(新版本)。',
|
68
120
|
displayName: 'Yi Large Preview',
|
69
121
|
id: 'yi-large-preview',
|
122
|
+
pricing: {
|
123
|
+
currency: 'CNY',
|
124
|
+
input: 20,
|
125
|
+
output: 20,
|
126
|
+
},
|
127
|
+
tokens: 16_384,
|
128
|
+
},
|
129
|
+
{
|
130
|
+
description: '轻量化版本,推荐使用 yi-lightning。',
|
131
|
+
displayName: 'Yi Lightning Lite',
|
132
|
+
id: 'yi-lightning-lite',
|
133
|
+
pricing: {
|
134
|
+
currency: 'CNY',
|
135
|
+
input: 0.99,
|
136
|
+
output: 0.99,
|
137
|
+
},
|
70
138
|
tokens: 16_384,
|
71
139
|
},
|
72
140
|
],
|
73
|
-
checkModel: 'yi-
|
141
|
+
checkModel: 'yi-lightning',
|
74
142
|
description:
|
75
|
-
'
|
143
|
+
'零一万物致力于推动以人为本的AI 2.0技术革命,旨在通过大语言模型创造巨大的经济和社会价值,并开创新的AI生态与商业模式。',
|
76
144
|
id: 'zeroone',
|
77
|
-
modelsUrl: 'https://platform.lingyiwanwu.com/docs',
|
145
|
+
modelsUrl: 'https://platform.lingyiwanwu.com/docs#模型与计费',
|
78
146
|
name: '01.AI',
|
79
|
-
url: 'https://
|
147
|
+
url: 'https://www.lingyiwanwu.com/',
|
80
148
|
};
|
81
149
|
|
82
150
|
export default ZeroOne;
|