@lobehub/chat 1.80.3 → 1.80.5
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 +50 -0
- package/changelog/v1.json +18 -0
- package/package.json +1 -1
- package/src/config/aiModels/ai21.ts +10 -6
- package/src/config/aiModels/ai360.ts +36 -2
- package/src/config/aiModels/azure.ts +52 -8
- package/src/config/aiModels/azureai.ts +40 -1
- package/src/config/aiModels/cohere.ts +17 -20
- package/src/config/aiModels/github.ts +131 -16
- package/src/config/aiModels/groq.ts +17 -101
- package/src/config/aiModels/openai.ts +47 -8
- package/src/config/aiModels/openrouter.ts +163 -25
- package/src/config/aiModels/stepfun.ts +1 -0
- package/src/config/aiModels/taichu.ts +61 -0
- package/src/config/aiModels/volcengine.ts +90 -3
- package/src/config/modelProviders/ai21.ts +1 -1
- package/src/database/repositories/aiInfra/index.test.ts +3 -3
@@ -4,6 +4,51 @@ import { AIChatModelCard } from '@/types/aiModel';
|
|
4
4
|
// pricing https://console.volcengine.com/ark/region:ark+cn-beijing/openManagement
|
5
5
|
|
6
6
|
const doubaoChatModels: AIChatModelCard[] = [
|
7
|
+
{
|
8
|
+
abilities: {
|
9
|
+
functionCall: true,
|
10
|
+
reasoning: true,
|
11
|
+
},
|
12
|
+
config: {
|
13
|
+
deploymentName: 'doubao-1-5-thinking-pro-250415',
|
14
|
+
},
|
15
|
+
contextWindowTokens: 128_000,
|
16
|
+
description:
|
17
|
+
'Doubao-1.5全新深度思考模型,在数学、编程、科学推理等专业领域及创意写作等通用任务中表现突出,在AIME 2024、Codeforces、GPQA等多项权威基准上达到或接近业界第一梯队水平。支持128k上下文窗口,16k输出。',
|
18
|
+
displayName: 'Doubao 1.5 Thinking Pro',
|
19
|
+
enabled: true,
|
20
|
+
id: 'Doubao-1.5-thinking-pro',
|
21
|
+
maxOutput: 16_000,
|
22
|
+
pricing: {
|
23
|
+
currency: 'CNY',
|
24
|
+
input: 4,
|
25
|
+
output: 16,
|
26
|
+
},
|
27
|
+
type: 'chat',
|
28
|
+
},
|
29
|
+
{
|
30
|
+
abilities: {
|
31
|
+
functionCall: true,
|
32
|
+
reasoning: true,
|
33
|
+
vision: true,
|
34
|
+
},
|
35
|
+
config: {
|
36
|
+
deploymentName: 'doubao-1-5-thinking-pro-vision-250415',
|
37
|
+
},
|
38
|
+
contextWindowTokens: 128_000,
|
39
|
+
description:
|
40
|
+
'Doubao-1.5全新深度思考模型,在数学、编程、科学推理等专业领域及创意写作等通用任务中表现突出,在AIME 2024、Codeforces、GPQA等多项权威基准上达到或接近业界第一梯队水平。支持128k上下文窗口,16k输出。',
|
41
|
+
displayName: 'Doubao 1.5 Thinking Pro Vision',
|
42
|
+
enabled: true,
|
43
|
+
id: 'Doubao-1.5-thinking-pro-vision',
|
44
|
+
maxOutput: 16_000,
|
45
|
+
pricing: {
|
46
|
+
currency: 'CNY',
|
47
|
+
input: 4,
|
48
|
+
output: 16,
|
49
|
+
},
|
50
|
+
type: 'chat',
|
51
|
+
},
|
7
52
|
{
|
8
53
|
abilities: {
|
9
54
|
functionCall: true,
|
@@ -16,7 +61,6 @@ const doubaoChatModels: AIChatModelCard[] = [
|
|
16
61
|
description:
|
17
62
|
'DeepSeek-R1 在后训练阶段大规模使用了强化学习技术,在仅有极少标注数据的情况下,极大提升了模型推理能力。在数学、代码、自然语言推理等任务上,性能比肩 OpenAI o1 正式版。',
|
18
63
|
displayName: 'DeepSeek R1',
|
19
|
-
enabled: true,
|
20
64
|
id: 'deepseek-r1',
|
21
65
|
maxOutput: 16_384,
|
22
66
|
pricing: {
|
@@ -113,7 +157,7 @@ const doubaoChatModels: AIChatModelCard[] = [
|
|
113
157
|
config: {
|
114
158
|
deploymentName: 'doubao-1-5-pro-256k-250115',
|
115
159
|
},
|
116
|
-
contextWindowTokens:
|
160
|
+
contextWindowTokens: 256_000,
|
117
161
|
description:
|
118
162
|
'Doubao-1.5-pro-256k 基于 Doubao-1.5-Pro 全面升级版,整体效果大幅提升 10%。支持 256k 上下文窗口的推理,输出长度支持最大 12k tokens。更高性能、更大窗口、超高性价比,适用于更广泛的应用场景。',
|
119
163
|
displayName: 'Doubao 1.5 Pro 256k',
|
@@ -159,7 +203,6 @@ const doubaoChatModels: AIChatModelCard[] = [
|
|
159
203
|
description:
|
160
204
|
'Doubao-1.5-vision-pro 全新升级的多模态大模型,支持任意分辨率和极端长宽比图像识别,增强视觉推理、文档识别、细节信息理解和指令遵循能力。',
|
161
205
|
displayName: 'Doubao 1.5 Vision Pro 32k',
|
162
|
-
enabled: true,
|
163
206
|
id: 'Doubao-1.5-vision-pro-32k',
|
164
207
|
maxOutput: 12_288,
|
165
208
|
pricing: {
|
@@ -170,6 +213,50 @@ const doubaoChatModels: AIChatModelCard[] = [
|
|
170
213
|
releasedAt: '2025-01-15',
|
171
214
|
type: 'chat',
|
172
215
|
},
|
216
|
+
{
|
217
|
+
abilities: {
|
218
|
+
functionCall: true,
|
219
|
+
vision: true,
|
220
|
+
},
|
221
|
+
config: {
|
222
|
+
deploymentName: 'doubao-1-5-vision-pro-250328',
|
223
|
+
},
|
224
|
+
contextWindowTokens: 128_000,
|
225
|
+
description:
|
226
|
+
'Doubao-1.5-vision-pro 全新升级的多模态大模型,支持任意分辨率和极端长宽比图像识别,增强视觉推理、文档识别、细节信息理解和指令遵循能力。',
|
227
|
+
displayName: 'Doubao 1.5 Vision Pro',
|
228
|
+
id: 'Doubao-1.5-vision-pro',
|
229
|
+
maxOutput: 16_384,
|
230
|
+
pricing: {
|
231
|
+
currency: 'CNY',
|
232
|
+
input: 3,
|
233
|
+
output: 9,
|
234
|
+
},
|
235
|
+
releasedAt: '2025-03-28',
|
236
|
+
type: 'chat',
|
237
|
+
},
|
238
|
+
{
|
239
|
+
abilities: {
|
240
|
+
functionCall: true,
|
241
|
+
vision: true,
|
242
|
+
},
|
243
|
+
config: {
|
244
|
+
deploymentName: 'doubao-1-5-vision-lite-250315',
|
245
|
+
},
|
246
|
+
contextWindowTokens: 128_000,
|
247
|
+
description:
|
248
|
+
'Doubao-1.5-vision-lite 全新升级的多模态大模型,支持任意分辨率和极端长宽比图像识别,增强视觉推理、文档识别、细节信息理解和指令遵循能力。支持 128k 上下文窗口,输出长度支持最大 16k tokens。',
|
249
|
+
displayName: 'Doubao 1.5 Vision Lite',
|
250
|
+
id: 'doubao-1.5-vision-lite',
|
251
|
+
maxOutput: 16_384,
|
252
|
+
pricing: {
|
253
|
+
currency: 'CNY',
|
254
|
+
input: 1.5,
|
255
|
+
output: 4.5,
|
256
|
+
},
|
257
|
+
releasedAt: '2025-03-15',
|
258
|
+
type: 'chat',
|
259
|
+
},
|
173
260
|
{
|
174
261
|
abilities: {
|
175
262
|
vision: true,
|
@@ -300,7 +300,7 @@ describe('AiInfraRepos', () => {
|
|
300
300
|
});
|
301
301
|
|
302
302
|
it('should use builtin models', async () => {
|
303
|
-
const providerId = '
|
303
|
+
const providerId = 'ai21';
|
304
304
|
|
305
305
|
vi.spyOn(repo.aiModelModel, 'getModelListByProviderId').mockResolvedValue([]);
|
306
306
|
|
@@ -309,8 +309,8 @@ describe('AiInfraRepos', () => {
|
|
309
309
|
expect(result).toHaveLength(2);
|
310
310
|
expect(result).toEqual(
|
311
311
|
expect.arrayContaining([
|
312
|
-
expect.objectContaining({ id: '
|
313
|
-
expect.objectContaining({ id: '
|
312
|
+
expect.objectContaining({ id: 'jamba-mini' }),
|
313
|
+
expect.objectContaining({ id: 'jamba-large' }),
|
314
314
|
]),
|
315
315
|
);
|
316
316
|
});
|