forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzeroone.ts
154 lines (152 loc) · 4.22 KB
/
zeroone.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import { ModelProviderCard } from '@/types/llm';
// ref: https://platform.lingyiwanwu.com/docs#%E6%A8%A1%E5%9E%8B%E4%B8%8E%E8%AE%A1%E8%B4%B9
const ZeroOne: ModelProviderCard = {
chatModels: [
{
contextWindowTokens: 16_384,
description: '最新高性能模型,保证高质量输出同时,推理速度大幅提升。',
displayName: 'Yi Lightning',
enabled: true,
id: 'yi-lightning',
pricing: {
currency: 'CNY',
input: 0.99,
output: 0.99,
},
},
{
contextWindowTokens: 16_384,
description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',
displayName: 'Yi Spark',
enabled: true,
id: 'yi-spark',
pricing: {
currency: 'CNY',
input: 1,
output: 1,
},
},
{
contextWindowTokens: 16_384,
description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
displayName: 'Yi Medium',
enabled: true,
id: 'yi-medium',
pricing: {
currency: 'CNY',
input: 2.5,
output: 2.5,
},
},
{
contextWindowTokens: 200_000,
description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',
displayName: 'Yi Medium 200K',
enabled: true,
id: 'yi-medium-200k',
pricing: {
currency: 'CNY',
input: 12,
output: 12,
},
},
{
contextWindowTokens: 16_384,
description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
displayName: 'Yi Large Turbo',
enabled: true,
id: 'yi-large-turbo',
pricing: {
currency: 'CNY',
input: 12,
output: 12,
},
},
{
contextWindowTokens: 16_384,
description:
'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
displayName: 'Yi Large RAG',
enabled: true,
id: 'yi-large-rag',
pricing: {
currency: 'CNY',
input: 25,
output: 25,
},
},
{
contextWindowTokens: 32_768,
description:
'在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
displayName: 'Yi Large FC',
enabled: true,
functionCall: true,
id: 'yi-large-fc',
pricing: {
currency: 'CNY',
input: 20,
output: 20,
},
},
{
contextWindowTokens: 32_768,
description: '全新千亿参数模型,提供超强问答及文本生成能力。',
displayName: 'Yi Large',
id: 'yi-large',
pricing: {
currency: 'CNY',
input: 20,
output: 20,
},
},
{
contextWindowTokens: 16_384,
description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',
displayName: 'Yi Vision',
enabled: true,
id: 'yi-vision',
pricing: {
currency: 'CNY',
input: 6,
output: 6,
},
vision: true,
},
{
contextWindowTokens: 16_384,
description: '初期版本,推荐使用 yi-large(新版本)。',
displayName: 'Yi Large Preview',
id: 'yi-large-preview',
pricing: {
currency: 'CNY',
input: 20,
output: 20,
},
},
{
contextWindowTokens: 16_384,
description: '轻量化版本,推荐使用 yi-lightning。',
displayName: 'Yi Lightning Lite',
id: 'yi-lightning-lite',
pricing: {
currency: 'CNY',
input: 0.99,
output: 0.99,
},
},
],
checkModel: 'yi-lightning',
description:
'零一万物致力于推动以人为本的AI 2.0技术革命,旨在通过大语言模型创造巨大的经济和社会价值,并开创新的AI生态与商业模式。',
id: 'zeroone',
modelList: { showModelFetcher: true },
modelsUrl: 'https://platform.lingyiwanwu.com/docs#模型与计费',
name: '01.AI',
settings: {
sdkType: 'openai',
showModelFetcher: true,
},
url: 'https://www.lingyiwanwu.com/',
};
export default ZeroOne;