@lobehub/chat 1.62.11 → 1.63.0

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/changelog/v1.json +12 -0
  3. package/locales/ar/chat.json +26 -0
  4. package/locales/ar/models.json +21 -0
  5. package/locales/bg-BG/chat.json +26 -0
  6. package/locales/bg-BG/models.json +21 -0
  7. package/locales/de-DE/chat.json +26 -0
  8. package/locales/de-DE/models.json +21 -0
  9. package/locales/en-US/chat.json +26 -0
  10. package/locales/en-US/models.json +21 -0
  11. package/locales/es-ES/chat.json +26 -0
  12. package/locales/es-ES/models.json +21 -0
  13. package/locales/fa-IR/chat.json +26 -0
  14. package/locales/fa-IR/models.json +21 -0
  15. package/locales/fr-FR/chat.json +26 -0
  16. package/locales/fr-FR/models.json +21 -0
  17. package/locales/it-IT/chat.json +26 -0
  18. package/locales/it-IT/models.json +21 -0
  19. package/locales/ja-JP/chat.json +26 -0
  20. package/locales/ja-JP/models.json +21 -0
  21. package/locales/ko-KR/chat.json +26 -0
  22. package/locales/ko-KR/models.json +21 -0
  23. package/locales/nl-NL/chat.json +26 -0
  24. package/locales/nl-NL/models.json +21 -0
  25. package/locales/pl-PL/chat.json +26 -0
  26. package/locales/pl-PL/models.json +21 -0
  27. package/locales/pt-BR/chat.json +26 -0
  28. package/locales/pt-BR/models.json +21 -0
  29. package/locales/ru-RU/chat.json +26 -0
  30. package/locales/ru-RU/models.json +21 -0
  31. package/locales/tr-TR/chat.json +26 -0
  32. package/locales/tr-TR/models.json +21 -0
  33. package/locales/vi-VN/chat.json +26 -0
  34. package/locales/vi-VN/models.json +21 -0
  35. package/locales/zh-CN/chat.json +27 -1
  36. package/locales/zh-CN/models.json +25 -4
  37. package/locales/zh-TW/chat.json +26 -0
  38. package/locales/zh-TW/models.json +21 -0
  39. package/package.json +1 -1
  40. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/index.tsx +1 -0
  41. package/src/config/aiModels/google.ts +8 -0
  42. package/src/config/aiModels/groq.ts +111 -95
  43. package/src/config/aiModels/hunyuan.ts +36 -4
  44. package/src/config/aiModels/internlm.ts +4 -5
  45. package/src/config/aiModels/jina.ts +3 -0
  46. package/src/config/aiModels/mistral.ts +35 -21
  47. package/src/config/aiModels/novita.ts +293 -32
  48. package/src/config/aiModels/perplexity.ts +14 -2
  49. package/src/config/aiModels/qwen.ts +91 -37
  50. package/src/config/aiModels/sensenova.ts +70 -17
  51. package/src/config/aiModels/siliconcloud.ts +5 -3
  52. package/src/config/aiModels/stepfun.ts +19 -0
  53. package/src/config/aiModels/taichu.ts +4 -2
  54. package/src/config/aiModels/upstage.ts +24 -11
  55. package/src/config/modelProviders/openrouter.ts +1 -0
  56. package/src/config/modelProviders/qwen.ts +2 -1
  57. package/src/const/settings/agent.ts +1 -0
  58. package/src/database/repositories/aiInfra/index.test.ts +2 -5
  59. package/src/database/repositories/aiInfra/index.ts +6 -2
  60. package/src/database/schemas/message.ts +2 -1
  61. package/src/database/server/models/aiModel.ts +1 -1
  62. package/src/database/server/models/aiProvider.ts +6 -1
  63. package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +38 -0
  64. package/src/features/ChatInput/ActionBar/Model/ExtendControls.tsx +40 -0
  65. package/src/features/ChatInput/ActionBar/Model/index.tsx +132 -0
  66. package/src/features/ChatInput/ActionBar/Params/index.tsx +2 -2
  67. package/src/features/ChatInput/ActionBar/Search/ExaIcon.tsx +15 -0
  68. package/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx +68 -0
  69. package/src/features/ChatInput/ActionBar/Search/SwitchPanel.tsx +167 -0
  70. package/src/features/ChatInput/ActionBar/Search/index.tsx +76 -0
  71. package/src/features/ChatInput/ActionBar/config.ts +4 -2
  72. package/src/features/Conversation/Messages/Assistant/SearchGrounding.tsx +153 -0
  73. package/src/features/Conversation/Messages/Assistant/index.tsx +7 -1
  74. package/src/features/ModelSelect/index.tsx +1 -1
  75. package/src/features/ModelSwitchPanel/index.tsx +2 -3
  76. package/src/hooks/useEnabledChatModels.ts +1 -1
  77. package/src/libs/agent-runtime/google/index.test.ts +142 -36
  78. package/src/libs/agent-runtime/google/index.ts +26 -51
  79. package/src/libs/agent-runtime/novita/__snapshots__/index.test.ts.snap +3 -3
  80. package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +3 -3
  81. package/src/libs/agent-runtime/openrouter/index.ts +20 -20
  82. package/src/libs/agent-runtime/perplexity/index.test.ts +2 -2
  83. package/src/libs/agent-runtime/qwen/index.ts +38 -55
  84. package/src/libs/agent-runtime/types/chat.ts +6 -2
  85. package/src/libs/agent-runtime/utils/streams/google-ai.ts +29 -4
  86. package/src/libs/agent-runtime/utils/streams/openai.ts +1 -1
  87. package/src/libs/agent-runtime/utils/streams/protocol.ts +1 -1
  88. package/src/locales/default/chat.ts +28 -0
  89. package/src/services/chat.ts +10 -0
  90. package/src/store/agent/slices/chat/__snapshots__/selectors.test.ts.snap +1 -0
  91. package/src/store/agent/slices/chat/selectors.ts +6 -0
  92. package/src/store/aiInfra/slices/aiModel/selectors.ts +36 -0
  93. package/src/store/aiInfra/slices/aiProvider/initialState.ts +2 -2
  94. package/src/store/aiInfra/slices/aiProvider/selectors.ts +14 -0
  95. package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +15 -5
  96. package/src/store/chat/slices/message/action.ts +1 -1
  97. package/src/store/user/slices/modelList/selectors/modelProvider.ts +1 -1
  98. package/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap +1 -0
  99. package/src/types/agent/index.ts +4 -0
  100. package/src/types/aiModel.ts +35 -8
  101. package/src/types/aiProvider.ts +7 -10
  102. package/src/types/message/base.ts +2 -5
  103. package/src/types/message/chat.ts +5 -3
  104. package/src/types/openai/chat.ts +5 -0
  105. package/src/types/search.ts +29 -0
  106. package/src/utils/fetch/fetchSSE.ts +11 -11
  107. package/src/features/ChatInput/ActionBar/ModelSwitch.tsx +0 -20
@@ -1,9 +1,12 @@
1
1
  import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
+ // https://help.aliyun.com/zh/model-studio/developer-reference/use-qwen-by-calling-api#e1fada1a719u7
4
+
3
5
  const qwenChatModels: AIChatModelCard[] = [
4
6
  {
5
7
  abilities: {
6
8
  functionCall: true,
9
+ search: true,
7
10
  },
8
11
  contextWindowTokens: 1_000_000,
9
12
  description: '通义千问超大规模语言模型,支持中文、英文等不同语言输入。',
@@ -11,16 +14,21 @@ const qwenChatModels: AIChatModelCard[] = [
11
14
  enabled: true,
12
15
  id: 'qwen-turbo-latest',
13
16
  maxOutput: 8192,
17
+ organization: 'Qwen',
14
18
  pricing: {
15
19
  currency: 'CNY',
16
20
  input: 0.3,
17
21
  output: 0.6,
18
22
  },
23
+ settings: {
24
+ searchImpl: 'params',
25
+ },
19
26
  type: 'chat',
20
27
  },
21
28
  {
22
29
  abilities: {
23
30
  functionCall: true,
31
+ search: true,
24
32
  },
25
33
  contextWindowTokens: 131_072,
26
34
  description: '通义千问超大规模语言模型增强版,支持中文、英文等不同语言输入。',
@@ -28,16 +36,21 @@ const qwenChatModels: AIChatModelCard[] = [
28
36
  enabled: true,
29
37
  id: 'qwen-plus-latest',
30
38
  maxOutput: 8192,
39
+ organization: 'Qwen',
31
40
  pricing: {
32
41
  currency: 'CNY',
33
42
  input: 0.8,
34
43
  output: 2,
35
44
  },
45
+ settings: {
46
+ searchImpl: 'params',
47
+ },
36
48
  type: 'chat',
37
49
  },
38
50
  {
39
51
  abilities: {
40
52
  functionCall: true,
53
+ search: true,
41
54
  },
42
55
  contextWindowTokens: 32_768,
43
56
  description:
@@ -46,11 +59,15 @@ const qwenChatModels: AIChatModelCard[] = [
46
59
  enabled: true,
47
60
  id: 'qwen-max-latest',
48
61
  maxOutput: 8192,
62
+ organization: 'Qwen',
49
63
  pricing: {
50
64
  currency: 'CNY',
51
65
  input: 20,
52
66
  output: 60,
53
67
  },
68
+ settings: {
69
+ searchImpl: 'params',
70
+ },
54
71
  type: 'chat',
55
72
  },
56
73
  {
@@ -60,6 +77,7 @@ const qwenChatModels: AIChatModelCard[] = [
60
77
  displayName: 'Qwen Long',
61
78
  id: 'qwen-long',
62
79
  maxOutput: 6000,
80
+ organization: 'Qwen',
63
81
  pricing: {
64
82
  currency: 'CNY',
65
83
  input: 0.5,
@@ -78,6 +96,7 @@ const qwenChatModels: AIChatModelCard[] = [
78
96
  enabled: true,
79
97
  id: 'qwen-vl-plus-latest',
80
98
  maxOutput: 2048,
99
+ organization: 'Qwen',
81
100
  pricing: {
82
101
  currency: 'CNY',
83
102
  input: 1.5,
@@ -96,6 +115,7 @@ const qwenChatModels: AIChatModelCard[] = [
96
115
  enabled: true,
97
116
  id: 'qwen-vl-max-latest',
98
117
  maxOutput: 2048,
118
+ organization: 'Qwen',
99
119
  pricing: {
100
120
  currency: 'CNY',
101
121
  input: 3,
@@ -113,6 +133,7 @@ const qwenChatModels: AIChatModelCard[] = [
113
133
  displayName: 'Qwen VL OCR',
114
134
  id: 'qwen-vl-ocr-latest',
115
135
  maxOutput: 4096,
136
+ organization: 'Qwen',
116
137
  pricing: {
117
138
  currency: 'CNY',
118
139
  input: 5,
@@ -126,6 +147,7 @@ const qwenChatModels: AIChatModelCard[] = [
126
147
  displayName: 'Qwen Math Turbo',
127
148
  id: 'qwen-math-turbo-latest',
128
149
  maxOutput: 3072,
150
+ organization: 'Qwen',
129
151
  pricing: {
130
152
  currency: 'CNY',
131
153
  input: 2,
@@ -139,6 +161,7 @@ const qwenChatModels: AIChatModelCard[] = [
139
161
  displayName: 'Qwen Math Plus',
140
162
  id: 'qwen-math-plus-latest',
141
163
  maxOutput: 3072,
164
+ organization: 'Qwen',
142
165
  pricing: {
143
166
  currency: 'CNY',
144
167
  input: 4,
@@ -152,6 +175,7 @@ const qwenChatModels: AIChatModelCard[] = [
152
175
  displayName: 'Qwen Coder Turbo',
153
176
  id: 'qwen-coder-turbo-latest',
154
177
  maxOutput: 8192,
178
+ organization: 'Qwen',
155
179
  pricing: {
156
180
  currency: 'CNY',
157
181
  input: 2,
@@ -165,6 +189,7 @@ const qwenChatModels: AIChatModelCard[] = [
165
189
  displayName: 'Qwen Coder Plus',
166
190
  id: 'qwen-coder-plus-latest',
167
191
  maxOutput: 8192,
192
+ organization: 'Qwen',
168
193
  pricing: {
169
194
  currency: 'CNY',
170
195
  input: 3.5,
@@ -182,6 +207,7 @@ const qwenChatModels: AIChatModelCard[] = [
182
207
  displayName: 'QwQ 32B Preview',
183
208
  id: 'qwq-32b-preview',
184
209
  maxOutput: 16_384,
210
+ organization: 'Qwen',
185
211
  pricing: {
186
212
  currency: 'CNY',
187
213
  input: 3.5,
@@ -196,10 +222,12 @@ const qwenChatModels: AIChatModelCard[] = [
196
222
  vision: true,
197
223
  },
198
224
  contextWindowTokens: 32_768,
199
- description: 'QVQ模型是由 Qwen 团队开发的实验性研究模型,专注于提升视觉推理能力,尤其在数学推理领域。',
225
+ description:
226
+ 'QVQ模型是由 Qwen 团队开发的实验性研究模型,专注于提升视觉推理能力,尤其在数学推理领域。',
200
227
  displayName: 'QVQ 72B Preview',
201
228
  id: 'qvq-72b-preview',
202
229
  maxOutput: 16_384,
230
+ organization: 'Qwen',
203
231
  pricing: {
204
232
  currency: 'CNY',
205
233
  input: 12,
@@ -217,6 +245,7 @@ const qwenChatModels: AIChatModelCard[] = [
217
245
  displayName: 'Qwen2.5 7B',
218
246
  id: 'qwen2.5-7b-instruct',
219
247
  maxOutput: 8192,
248
+ organization: 'Qwen',
220
249
  pricing: {
221
250
  currency: 'CNY',
222
251
  input: 0.5,
@@ -233,6 +262,7 @@ const qwenChatModels: AIChatModelCard[] = [
233
262
  displayName: 'Qwen2.5 14B',
234
263
  id: 'qwen2.5-14b-instruct',
235
264
  maxOutput: 8192,
265
+ organization: 'Qwen',
236
266
  pricing: {
237
267
  currency: 'CNY',
238
268
  input: 1,
@@ -249,6 +279,7 @@ const qwenChatModels: AIChatModelCard[] = [
249
279
  displayName: 'Qwen2.5 32B',
250
280
  id: 'qwen2.5-32b-instruct',
251
281
  maxOutput: 8192,
282
+ organization: 'Qwen',
252
283
  pricing: {
253
284
  currency: 'CNY',
254
285
  input: 3.5,
@@ -265,6 +296,7 @@ const qwenChatModels: AIChatModelCard[] = [
265
296
  displayName: 'Qwen2.5 72B',
266
297
  id: 'qwen2.5-72b-instruct',
267
298
  maxOutput: 8192,
299
+ organization: 'Qwen',
268
300
  pricing: {
269
301
  currency: 'CNY',
270
302
  input: 4,
@@ -281,6 +313,7 @@ const qwenChatModels: AIChatModelCard[] = [
281
313
  displayName: 'Qwen2.5 14B 1M',
282
314
  id: 'qwen2.5-14b-instruct-1m',
283
315
  maxOutput: 8192,
316
+ organization: 'Qwen',
284
317
  pricing: {
285
318
  currency: 'CNY',
286
319
  input: 1,
@@ -295,6 +328,7 @@ const qwenChatModels: AIChatModelCard[] = [
295
328
  displayName: 'Qwen2.5 Math 7B',
296
329
  id: 'qwen2.5-math-7b-instruct',
297
330
  maxOutput: 3072,
331
+ organization: 'Qwen',
298
332
  pricing: {
299
333
  currency: 'CNY',
300
334
  input: 1,
@@ -308,6 +342,7 @@ const qwenChatModels: AIChatModelCard[] = [
308
342
  displayName: 'Qwen2.5 Math 72B',
309
343
  id: 'qwen2.5-math-72b-instruct',
310
344
  maxOutput: 3072,
345
+ organization: 'Qwen',
311
346
  pricing: {
312
347
  currency: 'CNY',
313
348
  input: 4,
@@ -321,6 +356,7 @@ const qwenChatModels: AIChatModelCard[] = [
321
356
  displayName: 'Qwen2.5 Coder 7B',
322
357
  id: 'qwen2.5-coder-7b-instruct',
323
358
  maxOutput: 8192,
359
+ organization: 'Qwen',
324
360
  pricing: {
325
361
  currency: 'CNY',
326
362
  input: 1,
@@ -334,6 +370,7 @@ const qwenChatModels: AIChatModelCard[] = [
334
370
  displayName: 'Qwen2.5 Coder 32B',
335
371
  id: 'qwen2.5-coder-32b-instruct',
336
372
  maxOutput: 8192,
373
+ organization: 'Qwen',
337
374
  pricing: {
338
375
  currency: 'CNY',
339
376
  input: 3.5,
@@ -349,6 +386,7 @@ const qwenChatModels: AIChatModelCard[] = [
349
386
  description: '以 Qwen-7B 语言模型初始化,添加图像模型,图像输入分辨率为448的预训练模型。',
350
387
  displayName: 'Qwen VL',
351
388
  id: 'qwen-vl-v1',
389
+ organization: 'Qwen',
352
390
  pricing: {
353
391
  currency: 'CNY',
354
392
  input: 0,
@@ -364,6 +402,7 @@ const qwenChatModels: AIChatModelCard[] = [
364
402
  description: '通义千问VL支持灵活的交互方式,包括多图、多轮问答、创作等能力的模型。',
365
403
  displayName: 'Qwen VL Chat',
366
404
  id: 'qwen-vl-chat-v1',
405
+ organization: 'Qwen',
367
406
  pricing: {
368
407
  currency: 'CNY',
369
408
  input: 0,
@@ -381,6 +420,7 @@ const qwenChatModels: AIChatModelCard[] = [
381
420
  displayName: 'Qwen2.5 VL 72B',
382
421
  id: 'qwen2.5-vl-72b-instruct',
383
422
  maxOutput: 2048,
423
+ organization: 'Qwen',
384
424
  pricing: {
385
425
  currency: 'CNY',
386
426
  input: 16,
@@ -399,6 +439,7 @@ const qwenChatModels: AIChatModelCard[] = [
399
439
  displayName: 'Qwen2.5 VL 7B',
400
440
  id: 'qwen2.5-vl-7b-instruct',
401
441
  maxOutput: 2048,
442
+ organization: 'Qwen',
402
443
  pricing: {
403
444
  currency: 'CNY',
404
445
  input: 2,
@@ -418,6 +459,7 @@ const qwenChatModels: AIChatModelCard[] = [
418
459
  enabled: true,
419
460
  id: 'deepseek-r1',
420
461
  maxOutput: 8192,
462
+ organization: 'DeepSeek',
421
463
  pricing: {
422
464
  currency: 'CNY',
423
465
  input: 0,
@@ -437,6 +479,7 @@ const qwenChatModels: AIChatModelCard[] = [
437
479
  enabled: true,
438
480
  id: 'deepseek-v3',
439
481
  maxOutput: 8192,
482
+ organization: 'DeepSeek',
440
483
  pricing: {
441
484
  currency: 'CNY',
442
485
  input: 0,
@@ -455,6 +498,7 @@ const qwenChatModels: AIChatModelCard[] = [
455
498
  displayName: 'DeepSeek R1 Distill Qwen 1.5B',
456
499
  id: 'deepseek-r1-distill-qwen-1.5b',
457
500
  maxOutput: 8192,
501
+ organization: 'DeepSeek',
458
502
  pricing: {
459
503
  currency: 'CNY',
460
504
  input: 0,
@@ -464,84 +508,94 @@ const qwenChatModels: AIChatModelCard[] = [
464
508
  },
465
509
  {
466
510
  abilities: {
467
- reasoning: true
511
+ reasoning: true,
468
512
  },
469
513
  contextWindowTokens: 131_072,
470
- description: "DeepSeek-R1-Distill-Qwen-7B 是一个基于 Qwen2.5-Math-7B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。",
471
- displayName: "DeepSeek R1 Distill Qwen 7B",
472
- id: "deepseek-r1-distill-qwen-7b",
514
+ description:
515
+ 'DeepSeek-R1-Distill-Qwen-7B 是一个基于 Qwen2.5-Math-7B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',
516
+ displayName: 'DeepSeek R1 Distill Qwen 7B',
517
+ id: 'deepseek-r1-distill-qwen-7b',
473
518
  maxOutput: 8192,
519
+ organization: 'DeepSeek',
474
520
  pricing: {
475
- currency: "CNY",
521
+ currency: 'CNY',
476
522
  input: 0,
477
- output: 0
523
+ output: 0,
478
524
  },
479
- type: "chat"
525
+ type: 'chat',
480
526
  },
481
527
  {
482
528
  abilities: {
483
- reasoning: true
529
+ reasoning: true,
484
530
  },
485
531
  contextWindowTokens: 131_072,
486
- description: "DeepSeek-R1-Distill-Qwen-14B 是一个基于 Qwen2.5-14B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。",
487
- displayName: "DeepSeek R1 Distill Qwen 14B",
488
- id: "deepseek-r1-distill-qwen-14b",
532
+ description:
533
+ 'DeepSeek-R1-Distill-Qwen-14B 是一个基于 Qwen2.5-14B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',
534
+ displayName: 'DeepSeek R1 Distill Qwen 14B',
535
+ id: 'deepseek-r1-distill-qwen-14b',
489
536
  maxOutput: 8192,
537
+ organization: 'DeepSeek',
490
538
  pricing: {
491
- currency: "CNY",
539
+ currency: 'CNY',
492
540
  input: 0,
493
- output: 0
541
+ output: 0,
494
542
  },
495
- type: "chat"
543
+ type: 'chat',
496
544
  },
497
545
  {
498
546
  abilities: {
499
- reasoning: true
547
+ reasoning: true,
500
548
  },
501
549
  contextWindowTokens: 131_072,
502
- description: "DeepSeek-R1-Distill-Qwen-32B 是一个基于 Qwen2.5-32B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。",
503
- displayName: "DeepSeek R1 Distill Qwen 32B",
504
- id: "deepseek-r1-distill-qwen-32b",
550
+ description:
551
+ 'DeepSeek-R1-Distill-Qwen-32B 是一个基于 Qwen2.5-32B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',
552
+ displayName: 'DeepSeek R1 Distill Qwen 32B',
553
+ id: 'deepseek-r1-distill-qwen-32b',
505
554
  maxOutput: 8192,
555
+ organization: 'DeepSeek',
506
556
  pricing: {
507
- currency: "CNY",
557
+ currency: 'CNY',
508
558
  input: 0,
509
- output: 0
559
+ output: 0,
510
560
  },
511
- type: "chat"
561
+ type: 'chat',
512
562
  },
513
563
  {
514
564
  abilities: {
515
- reasoning: true
565
+ reasoning: true,
516
566
  },
517
567
  contextWindowTokens: 131_072,
518
- description: "DeepSeek-R1-Distill-Llama-8B 是一个基于 Llama-3.1-8B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。",
519
- displayName: "DeepSeek R1 Distill Llama 8B",
520
- id: "deepseek-r1-distill-llama-8b",
568
+ description:
569
+ 'DeepSeek-R1-Distill-Llama-8B 是一个基于 Llama-3.1-8B 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',
570
+ displayName: 'DeepSeek R1 Distill Llama 8B',
571
+ id: 'deepseek-r1-distill-llama-8b',
521
572
  maxOutput: 8192,
573
+ organization: 'DeepSeek',
522
574
  pricing: {
523
- currency: "CNY",
575
+ currency: 'CNY',
524
576
  input: 0,
525
- output: 0
577
+ output: 0,
526
578
  },
527
- type: "chat"
579
+ type: 'chat',
528
580
  },
529
581
  {
530
582
  abilities: {
531
- reasoning: true
583
+ reasoning: true,
532
584
  },
533
585
  contextWindowTokens: 131_072,
534
- description: "DeepSeek-R1-Distill-Llama-70B 是一个基于 Llama-3.3-70B-Instruct 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。",
535
- displayName: "DeepSeek R1 Distill Llama 70B",
536
- id: "deepseek-r1-distill-llama-70b",
586
+ description:
587
+ 'DeepSeek-R1-Distill-Llama-70B 是一个基于 Llama-3.3-70B-Instruct 的蒸馏大型语言模型,使用了 DeepSeek R1 的输出。',
588
+ displayName: 'DeepSeek R1 Distill Llama 70B',
589
+ id: 'deepseek-r1-distill-llama-70b',
537
590
  maxOutput: 8192,
591
+ organization: 'DeepSeek',
538
592
  pricing: {
539
- currency: "CNY",
593
+ currency: 'CNY',
540
594
  input: 0,
541
- output: 0
595
+ output: 0,
542
596
  },
543
- type: "chat"
544
- }
597
+ type: 'chat',
598
+ },
545
599
  ];
546
600
 
547
601
  export const allModels = [...qwenChatModels];
@@ -1,5 +1,8 @@
1
1
  import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
+ // https://platform.sensenova.cn/pricing
4
+ // https://www.sensecore.cn/help/docs/model-as-a-service/nova/release
5
+
3
6
  const sensenovaChatModels: AIChatModelCard[] = [
4
7
  {
5
8
  abilities: {
@@ -7,7 +10,43 @@ const sensenovaChatModels: AIChatModelCard[] = [
7
10
  },
8
11
  contextWindowTokens: 131_072,
9
12
  description:
10
- '最新版本模型 (V5.5),128K上下文长度,在数学推理、英文对话、指令跟随以及长文本理解等领域能力显著提升,比肩GPT-4o',
13
+ '是基于V5.5的最新版本,较上版本在中英文基础能力,聊天,理科知识, 文科知识,写作,数理逻辑,字数控制 等几个维度的表现有显著提升。',
14
+ displayName: 'SenseChat 5.5 1202',
15
+ enabled: true,
16
+ id: 'SenseChat-5-1202',
17
+ pricing: {
18
+ currency: 'CNY',
19
+ input: 8,
20
+ output: 20,
21
+ },
22
+ releasedAt: '2024-12-30',
23
+ type: 'chat',
24
+ },
25
+ {
26
+ abilities: {
27
+ functionCall: true,
28
+ },
29
+ contextWindowTokens: 32_768,
30
+ description:
31
+ '是最新的轻量版本模型,达到全量模型90%以上能力,显著降低推理成本。',
32
+ displayName: 'SenseChat Turbo 1202',
33
+ enabled: true,
34
+ id: 'SenseChat-Turbo-1202',
35
+ pricing: {
36
+ currency: 'CNY',
37
+ input: 0.3,
38
+ output: 0.6,
39
+ },
40
+ releasedAt: '2024-12-30',
41
+ type: 'chat',
42
+ },
43
+ {
44
+ abilities: {
45
+ functionCall: true,
46
+ },
47
+ contextWindowTokens: 131_072,
48
+ description:
49
+ '最新版本模型 (V5.5),128K上下文长度,在数学推理、英文对话、指令跟随以及长文本理解等领域能力显著提升,比肩GPT-4o。',
11
50
  displayName: 'SenseChat 5.5',
12
51
  enabled: true,
13
52
  id: 'SenseChat-5',
@@ -20,27 +59,31 @@ const sensenovaChatModels: AIChatModelCard[] = [
20
59
  },
21
60
  {
22
61
  contextWindowTokens: 32_768,
23
- description: '适用于快速问答、模型微调场景',
24
- displayName: 'SenseChat 5.0 Turbo',
62
+ description: '最新版本模型 (V5.5),支持多图的输入,全面实现模型基础能力优化,在对象属性识别、空间关系、动作事件识别、场景理解、情感识别、逻辑常识推理和文本理解生成上都实现了较大提升。',
63
+ displayName: 'SenseChat 5.5 Vision',
25
64
  enabled: true,
26
- id: 'SenseChat-Turbo',
65
+ id: 'SenseChat-Vision',
27
66
  pricing: {
28
67
  currency: 'CNY',
29
- input: 2,
30
- output: 5,
68
+ input: 10, // 限时优惠
69
+ output: 60,
31
70
  },
71
+ releasedAt: '2024-09-12',
32
72
  type: 'chat',
33
73
  },
34
74
  {
75
+ abilities: {
76
+ functionCall: true,
77
+ },
35
78
  contextWindowTokens: 32_768,
36
- description:
37
- '32K上下文长度,在粤语的对话理解上超越了GPT-4,在知识、推理、数学及代码编写等多个领域均能与GPT-4 Turbo相媲美',
38
- displayName: 'SenseChat 5.0 Cantonese',
39
- id: 'SenseChat-5-Cantonese',
79
+ description: '适用于快速问答、模型微调场景',
80
+ displayName: 'SenseChat 5.0 Turbo',
81
+ enabled: true,
82
+ id: 'SenseChat-Turbo',
40
83
  pricing: {
41
84
  currency: 'CNY',
42
- input: 27,
43
- output: 27,
85
+ input: 2,
86
+ output: 5,
44
87
  },
45
88
  type: 'chat',
46
89
  },
@@ -48,7 +91,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
48
91
  contextWindowTokens: 131_072,
49
92
  description: '基础版本模型 (V4),128K上下文长度,在长文本理解及生成等任务中表现出色',
50
93
  displayName: 'SenseChat 4.0 128K',
51
- enabled: true,
52
94
  id: 'SenseChat-128K',
53
95
  pricing: {
54
96
  currency: 'CNY',
@@ -61,7 +103,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
61
103
  contextWindowTokens: 32_768,
62
104
  description: '基础版本模型 (V4),32K上下文长度,灵活应用于各类场景',
63
105
  displayName: 'SenseChat 4.0 32K',
64
- enabled: true,
65
106
  id: 'SenseChat-32K',
66
107
  pricing: {
67
108
  currency: 'CNY',
@@ -74,7 +115,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
74
115
  contextWindowTokens: 4096,
75
116
  description: '基础版本模型 (V4),4K上下文长度,通用能力强大',
76
117
  displayName: 'SenseChat 4.0 4K',
77
- enabled: true,
78
118
  id: 'SenseChat',
79
119
  pricing: {
80
120
  currency: 'CNY',
@@ -83,9 +123,22 @@ const sensenovaChatModels: AIChatModelCard[] = [
83
123
  },
84
124
  type: 'chat',
85
125
  },
126
+ {
127
+ contextWindowTokens: 32_768,
128
+ description:
129
+ '专门为适应香港地区的对话习惯、俚语及本地知识而设计,在粤语的对话理解上超越了GPT-4,在知识、推理、数学及代码编写等多个领域均能与GPT-4 Turbo相媲美。',
130
+ displayName: 'SenseChat 5.0 Cantonese',
131
+ id: 'SenseChat-5-Cantonese',
132
+ pricing: {
133
+ currency: 'CNY',
134
+ input: 27,
135
+ output: 27,
136
+ },
137
+ type: 'chat',
138
+ },
86
139
  {
87
140
  contextWindowTokens: 8192,
88
- description: '标准版模型,8K上下文长度,高响应速度',
141
+ description: '拟人对话标准版模型,8K上下文长度,高响应速度',
89
142
  displayName: 'SenseChat Character',
90
143
  id: 'SenseChat-Character',
91
144
  pricing: {
@@ -97,7 +150,7 @@ const sensenovaChatModels: AIChatModelCard[] = [
97
150
  },
98
151
  {
99
152
  contextWindowTokens: 32_768,
100
- description: '高级版模型,32K上下文长度,能力全面提升,支持中/英文对话',
153
+ description: '拟人对话高级版模型,32K上下文长度,能力全面提升,支持中/英文对话',
101
154
  displayName: 'SenseChat Character Pro',
102
155
  id: 'SenseChat-Character-Pro',
103
156
  pricing: {
@@ -1,5 +1,7 @@
1
1
  import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
+ // https://siliconflow.cn/zh-cn/models
4
+
3
5
  const siliconcloudChatModels: AIChatModelCard[] = [
4
6
  {
5
7
  abilities: {
@@ -28,10 +30,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
28
30
  displayName: 'DeepSeek V3',
29
31
  enabled: true,
30
32
  id: 'deepseek-ai/DeepSeek-V3',
31
- pricing: { // 2.9 涨价
33
+ pricing: {
32
34
  currency: 'CNY',
33
- input: 1,
34
- output: 2,
35
+ input: 2,
36
+ output: 8,
35
37
  },
36
38
  type: 'chat',
37
39
  },
@@ -1,5 +1,7 @@
1
1
  import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
+ // https://platform.stepfun.com/docs/pricing/details
4
+
3
5
  const stepfunChatModels: AIChatModelCard[] = [
4
6
  {
5
7
  abilities: {
@@ -198,6 +200,23 @@ const stepfunChatModels: AIChatModelCard[] = [
198
200
  },
199
201
  type: 'chat',
200
202
  },
203
+ {
204
+ abilities: {
205
+ vision: true,
206
+ },
207
+ contextWindowTokens: 32_000,
208
+ description: '该模型拥有强大的图像理解能力,在数理、代码领域强于1o。模型比1o更小,输出速度更快。',
209
+ displayName: 'Step 1o Turbo Vision',
210
+ enabled: true,
211
+ id: 'step-1o-turbo-vision',
212
+ pricing: {
213
+ currency: 'CNY',
214
+ input: 8,
215
+ output: 35,
216
+ },
217
+ releasedAt: '2025-02-14',
218
+ type: 'chat',
219
+ },
201
220
  ];
202
221
 
203
222
  export const allModels = [...stepfunChatModels];
@@ -1,5 +1,7 @@
1
1
  import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
+ // https://docs.wair.ac.cn/maas/jiage.html
4
+
3
5
  const taichuChatModels: AIChatModelCard[] = [
4
6
  {
5
7
  abilities: {
@@ -23,9 +25,9 @@ const taichuChatModels: AIChatModelCard[] = [
23
25
  },
24
26
  contextWindowTokens: 4096,
25
27
  description: '融合了图像理解、知识迁移、逻辑归因等能力,在图文问答领域表现突出',
26
- displayName: 'Taichu 2.0V',
28
+ displayName: 'Taichu 2.0 VL',
27
29
  enabled: true,
28
- id: 'taichu2_mm',
30
+ id: 'taichu_vl',
29
31
  pricing: {
30
32
  currency: 'CNY',
31
33
  input: 5,
@@ -1,6 +1,22 @@
1
1
  import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
+ // https://console.upstage.ai/docs/capabilities/chat
4
+
3
5
  const upstageChatModels: AIChatModelCard[] = [
6
+ {
7
+ contextWindowTokens: 32_768,
8
+ description:
9
+ 'Solar Pro 是 Upstage 推出的一款高智能LLM,专注于单GPU的指令跟随能力,IFEval得分80以上。目前支持英语,正式版本计划于2024年11月推出,将扩展语言支持和上下文长度。',
10
+ displayName: 'Solar Pro',
11
+ enabled: true,
12
+ id: 'solar-pro',
13
+ pricing: {
14
+ input: 0.25,
15
+ output: 0.25,
16
+ },
17
+ releasedAt: '2024-11-26',
18
+ type: 'chat',
19
+ },
4
20
  {
5
21
  abilities: {
6
22
  functionCall: true,
@@ -10,7 +26,12 @@ const upstageChatModels: AIChatModelCard[] = [
10
26
  'Solar Mini 是一种紧凑型 LLM,性能优于 GPT-3.5,具备强大的多语言能力,支持英语和韩语,提供高效小巧的解决方案。',
11
27
  displayName: 'Solar Mini',
12
28
  enabled: true,
13
- id: 'solar-1-mini-chat',
29
+ id: 'solar-mini',
30
+ pricing: {
31
+ input: 0.15,
32
+ output: 0.15,
33
+ },
34
+ releasedAt: '2025-01-23',
14
35
  type: 'chat',
15
36
  },
16
37
  {
@@ -18,16 +39,8 @@ const upstageChatModels: AIChatModelCard[] = [
18
39
  description:
19
40
  'Solar Mini (Ja) 扩展了 Solar Mini 的能力,专注于日语,同时在英语和韩语的使用中保持高效和卓越性能。',
20
41
  displayName: 'Solar Mini (Ja)',
21
- id: 'solar-1-mini-chat-ja',
22
- type: 'chat',
23
- },
24
- {
25
- contextWindowTokens: 32_768,
26
- description:
27
- 'Solar Pro 是 Upstage 推出的一款高智能LLM,专注于单GPU的指令跟随能力,IFEval得分80以上。目前支持英语,正式版本计划于2024年11月推出,将扩展语言支持和上下文长度。',
28
- displayName: 'Solar Pro',
29
- enabled: true,
30
- id: 'solar-pro',
42
+ id: 'solar-mini-ja', // deprecated on 2025-04-10
43
+ releasedAt: '2025-01-23',
31
44
  type: 'chat',
32
45
  },
33
46
  ];