@lobehub/chat 1.111.1 → 1.111.3

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 (131) hide show
  1. package/.cursor/rules/code-review.mdc +2 -19
  2. package/.cursor/rules/cursor-ux.mdc +0 -72
  3. package/.cursor/rules/project-introduce.mdc +5 -5
  4. package/.cursor/rules/react-component.mdc +92 -73
  5. package/.cursor/rules/rules-attach.mdc +28 -61
  6. package/.cursor/rules/system-role.mdc +8 -20
  7. package/.cursor/rules/typescript.mdc +55 -14
  8. package/CHANGELOG.md +52 -0
  9. package/changelog/v1.json +14 -0
  10. package/locales/ar/models.json +21 -3
  11. package/locales/bg-BG/models.json +21 -3
  12. package/locales/de-DE/models.json +21 -3
  13. package/locales/en-US/models.json +21 -3
  14. package/locales/es-ES/models.json +21 -3
  15. package/locales/fa-IR/models.json +21 -3
  16. package/locales/fr-FR/models.json +21 -3
  17. package/locales/it-IT/models.json +21 -3
  18. package/locales/ja-JP/models.json +21 -3
  19. package/locales/ko-KR/models.json +21 -3
  20. package/locales/nl-NL/models.json +21 -3
  21. package/locales/pl-PL/models.json +21 -3
  22. package/locales/pt-BR/models.json +21 -3
  23. package/locales/ru-RU/models.json +21 -3
  24. package/locales/tr-TR/models.json +21 -3
  25. package/locales/vi-VN/models.json +21 -3
  26. package/locales/zh-CN/models.json +21 -3
  27. package/locales/zh-TW/models.json +21 -3
  28. package/package.json +1 -1
  29. package/packages/types/src/aiModel.ts +67 -46
  30. package/packages/types/src/hotkey.ts +2 -0
  31. package/packages/types/src/llm.ts +3 -3
  32. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/PinList/index.tsx +3 -3
  33. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/TopActions.test.tsx +1 -0
  34. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/TopActions.tsx +11 -2
  35. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx +2 -2
  36. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +2 -2
  37. package/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsx +2 -2
  38. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Details/Overview/ProviderList/index.tsx +23 -12
  39. package/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/features/Details/Overview/ModelList/index.tsx +23 -10
  40. package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx +21 -12
  41. package/src/components/Thinking/index.tsx +53 -13
  42. package/src/config/aiModels/ai21.ts +8 -4
  43. package/src/config/aiModels/ai360.ts +28 -14
  44. package/src/config/aiModels/aihubmix.ts +174 -86
  45. package/src/config/aiModels/anthropic.ts +97 -38
  46. package/src/config/aiModels/azure.ts +54 -32
  47. package/src/config/aiModels/azureai.ts +63 -37
  48. package/src/config/aiModels/baichuan.ts +24 -12
  49. package/src/config/aiModels/bedrock.ts +60 -30
  50. package/src/config/aiModels/cohere.ts +60 -30
  51. package/src/config/aiModels/deepseek.ts +10 -6
  52. package/src/config/aiModels/fireworksai.ts +88 -44
  53. package/src/config/aiModels/giteeai.ts +1 -1
  54. package/src/config/aiModels/github.ts +44 -26
  55. package/src/config/aiModels/google.ts +119 -68
  56. package/src/config/aiModels/groq.ts +48 -24
  57. package/src/config/aiModels/higress.ts +617 -310
  58. package/src/config/aiModels/hunyuan.ts +105 -54
  59. package/src/config/aiModels/infiniai.ts +104 -52
  60. package/src/config/aiModels/internlm.ts +16 -8
  61. package/src/config/aiModels/jina.ts +4 -2
  62. package/src/config/aiModels/minimax.ts +11 -10
  63. package/src/config/aiModels/mistral.ts +40 -20
  64. package/src/config/aiModels/moonshot.ts +42 -22
  65. package/src/config/aiModels/novita.ts +196 -98
  66. package/src/config/aiModels/openai.ts +270 -137
  67. package/src/config/aiModels/openrouter.ts +205 -100
  68. package/src/config/aiModels/perplexity.ts +36 -6
  69. package/src/config/aiModels/ppio.ts +76 -38
  70. package/src/config/aiModels/qwen.ts +257 -133
  71. package/src/config/aiModels/sambanova.ts +56 -28
  72. package/src/config/aiModels/sensenova.ts +100 -50
  73. package/src/config/aiModels/siliconcloud.ts +224 -112
  74. package/src/config/aiModels/stepfun.ts +44 -22
  75. package/src/config/aiModels/taichu.ts +8 -4
  76. package/src/config/aiModels/tencentcloud.ts +12 -6
  77. package/src/config/aiModels/upstage.ts +8 -4
  78. package/src/config/aiModels/v0.ts +15 -12
  79. package/src/config/aiModels/vertexai.ts +49 -27
  80. package/src/config/aiModels/volcengine.ts +110 -51
  81. package/src/config/aiModels/wenxin.ts +179 -73
  82. package/src/config/aiModels/xai.ts +33 -19
  83. package/src/config/aiModels/zeroone.ts +48 -24
  84. package/src/config/aiModels/zhipu.ts +118 -69
  85. package/src/config/modelProviders/ai21.ts +0 -8
  86. package/src/config/modelProviders/ai360.ts +0 -20
  87. package/src/config/modelProviders/anthropic.ts +0 -56
  88. package/src/config/modelProviders/baichuan.ts +0 -30
  89. package/src/config/modelProviders/bedrock.ts +0 -74
  90. package/src/config/modelProviders/deepseek.ts +0 -13
  91. package/src/config/modelProviders/fireworksai.ts +0 -88
  92. package/src/config/modelProviders/google.ts +0 -59
  93. package/src/config/modelProviders/groq.ts +0 -48
  94. package/src/config/modelProviders/higress.ts +0 -727
  95. package/src/config/modelProviders/hunyuan.ts +0 -45
  96. package/src/config/modelProviders/infiniai.ts +0 -60
  97. package/src/config/modelProviders/internlm.ts +0 -8
  98. package/src/config/modelProviders/mistral.ts +0 -48
  99. package/src/config/modelProviders/modelscope.ts +2 -1
  100. package/src/config/modelProviders/openai.ts +5 -100
  101. package/src/config/modelProviders/openrouter.ts +0 -77
  102. package/src/config/modelProviders/ppio.ts +0 -95
  103. package/src/config/modelProviders/qwen.ts +0 -165
  104. package/src/config/modelProviders/sensenova.ts +0 -45
  105. package/src/config/modelProviders/siliconcloud.ts +0 -266
  106. package/src/config/modelProviders/stepfun.ts +0 -60
  107. package/src/config/modelProviders/taichu.ts +0 -10
  108. package/src/config/modelProviders/wenxin.ts +0 -90
  109. package/src/config/modelProviders/xai.ts +0 -16
  110. package/src/config/modelProviders/zeroone.ts +0 -60
  111. package/src/config/modelProviders/zhipu.ts +0 -80
  112. package/src/const/hotkeys.ts +6 -0
  113. package/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx +4 -3
  114. package/src/features/Conversation/Extras/Usage/UsageDetail/pricing.ts +25 -15
  115. package/src/features/Conversation/Extras/Usage/UsageDetail/tokens.test.ts +7 -5
  116. package/src/features/Conversation/Extras/Usage/UsageDetail/tokens.ts +6 -5
  117. package/src/hooks/useHotkeys/chatScope.ts +2 -2
  118. package/src/hooks/useHotkeys/globalScope.ts +16 -4
  119. package/src/hooks/usePinnedAgentState.ts +21 -0
  120. package/src/hooks/useSwitchSession.ts +1 -1
  121. package/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.ts +54 -8
  122. package/src/locales/default/hotkey.ts +4 -0
  123. package/src/server/routers/lambda/agent.ts +2 -2
  124. package/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap +0 -28
  125. package/src/server/services/discover/index.ts +7 -6
  126. package/src/server/services/user/index.ts +1 -2
  127. package/src/utils/__snapshots__/parseModels.test.ts.snap +28 -4
  128. package/src/utils/_deprecated/__snapshots__/parseModels.test.ts.snap +0 -8
  129. package/src/utils/parseModels.test.ts +60 -9
  130. package/src/utils/pricing.test.ts +183 -0
  131. package/src/utils/pricing.ts +90 -0
@@ -14,8 +14,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
14
14
  id: 'zai-org/GLM-4.5',
15
15
  pricing: {
16
16
  currency: 'CNY',
17
- input: 3.5,
18
- output: 14,
17
+ units: [
18
+ { name: 'textInput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },
19
+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
20
+ ],
19
21
  },
20
22
  releasedAt: '2025-07-28',
21
23
  type: 'chat',
@@ -32,8 +34,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
32
34
  id: 'zai-org/GLM-4.5-Air',
33
35
  pricing: {
34
36
  currency: 'CNY',
35
- input: 1,
36
- output: 6,
37
+ units: [
38
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
39
+ { name: 'textOutput', rate: 6, strategy: 'fixed', unit: 'millionTokens' },
40
+ ],
37
41
  },
38
42
  releasedAt: '2025-07-28',
39
43
  type: 'chat',
@@ -49,8 +53,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
49
53
  id: 'ascend-tribe/pangu-pro-moe',
50
54
  pricing: {
51
55
  currency: 'CNY',
52
- input: 1,
53
- output: 4,
56
+ units: [
57
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
58
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
59
+ ],
54
60
  },
55
61
  releasedAt: '2025-06-17',
56
62
  type: 'chat',
@@ -63,8 +69,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
63
69
  id: 'baidu/ERNIE-4.5-300B-A47B',
64
70
  pricing: {
65
71
  currency: 'CNY',
66
- input: 2,
67
- output: 8,
72
+ units: [
73
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
74
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
75
+ ],
68
76
  },
69
77
  releasedAt: '2025-06-30',
70
78
  type: 'chat',
@@ -77,8 +85,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
77
85
  id: 'moonshotai/Kimi-K2-Instruct',
78
86
  pricing: {
79
87
  currency: 'CNY',
80
- input: 4,
81
- output: 16,
88
+ units: [
89
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
90
+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
91
+ ],
82
92
  },
83
93
  releasedAt: '2025-07-11',
84
94
  type: 'chat',
@@ -91,8 +101,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
91
101
  id: 'Pro/moonshotai/Kimi-K2-Instruct',
92
102
  pricing: {
93
103
  currency: 'CNY',
94
- input: 4,
95
- output: 16,
104
+ units: [
105
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
106
+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
107
+ ],
96
108
  },
97
109
  releasedAt: '2025-07-11',
98
110
  type: 'chat',
@@ -108,8 +120,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
108
120
  id: 'moonshotai/Kimi-Dev-72B',
109
121
  pricing: {
110
122
  currency: 'CNY',
111
- input: 2,
112
- output: 8,
123
+ units: [
124
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
125
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
126
+ ],
113
127
  },
114
128
  releasedAt: '2025-06-17',
115
129
  type: 'chat',
@@ -125,8 +139,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
125
139
  id: 'tencent/Hunyuan-A13B-Instruct',
126
140
  pricing: {
127
141
  currency: 'CNY',
128
- input: 1,
129
- output: 4,
142
+ units: [
143
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
144
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
145
+ ],
130
146
  },
131
147
  releasedAt: '2025-06-27',
132
148
  type: 'chat',
@@ -142,8 +158,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
142
158
  id: 'MiniMaxAI/MiniMax-M1-80k',
143
159
  pricing: {
144
160
  currency: 'CNY',
145
- input: 4,
146
- output: 16,
161
+ units: [
162
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
163
+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
164
+ ],
147
165
  },
148
166
  releasedAt: '2025-06-16',
149
167
  type: 'chat',
@@ -159,8 +177,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
159
177
  id: 'Tongyi-Zhiwen/QwenLong-L1-32B',
160
178
  pricing: {
161
179
  currency: 'CNY',
162
- input: 1,
163
- output: 4,
180
+ units: [
181
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
182
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
183
+ ],
164
184
  },
165
185
  releasedAt: '2025-05-26',
166
186
  type: 'chat',
@@ -178,8 +198,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
178
198
  organization: 'Qwen',
179
199
  pricing: {
180
200
  currency: 'CNY',
181
- input: 2.5,
182
- output: 10,
201
+ units: [
202
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
203
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
204
+ ],
183
205
  },
184
206
  releasedAt: '2025-07-25',
185
207
  type: 'chat',
@@ -196,8 +218,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
196
218
  organization: 'Qwen',
197
219
  pricing: {
198
220
  currency: 'CNY',
199
- input: 2.5,
200
- output: 10,
221
+ units: [
222
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
223
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
224
+ ],
201
225
  },
202
226
  releasedAt: '2025-07-21',
203
227
  type: 'chat',
@@ -214,8 +238,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
214
238
  organization: 'Qwen',
215
239
  pricing: {
216
240
  currency: 'CNY',
217
- input: 0.7,
218
- output: 2.8,
241
+ units: [
242
+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
243
+ { name: 'textOutput', rate: 2.8, strategy: 'fixed', unit: 'millionTokens' },
244
+ ],
219
245
  },
220
246
  releasedAt: '2025-07-29',
221
247
  type: 'chat',
@@ -233,8 +259,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
233
259
  organization: 'Qwen',
234
260
  pricing: {
235
261
  currency: 'CNY',
236
- input: 2.5,
237
- output: 10,
262
+ units: [
263
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
264
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
265
+ ],
238
266
  },
239
267
  releasedAt: '2025-04-28',
240
268
  settings: {
@@ -255,8 +283,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
255
283
  organization: 'Qwen',
256
284
  pricing: {
257
285
  currency: 'CNY',
258
- input: 1,
259
- output: 4,
286
+ units: [
287
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
288
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
289
+ ],
260
290
  },
261
291
  releasedAt: '2025-04-28',
262
292
  settings: {
@@ -277,8 +307,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
277
307
  organization: 'Qwen',
278
308
  pricing: {
279
309
  currency: 'CNY',
280
- input: 0.7,
281
- output: 2.8,
310
+ units: [
311
+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
312
+ { name: 'textOutput', rate: 2.8, strategy: 'fixed', unit: 'millionTokens' },
313
+ ],
282
314
  },
283
315
  releasedAt: '2025-04-28',
284
316
  settings: {
@@ -299,8 +331,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
299
331
  organization: 'Qwen',
300
332
  pricing: {
301
333
  currency: 'CNY',
302
- input: 0.5,
303
- output: 2,
334
+ units: [
335
+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
336
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
337
+ ],
304
338
  },
305
339
  releasedAt: '2025-04-28',
306
340
  settings: {
@@ -322,8 +356,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
322
356
  organization: 'Qwen',
323
357
  pricing: {
324
358
  currency: 'CNY',
325
- input: 0,
326
- output: 0,
359
+ units: [
360
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
361
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
362
+ ],
327
363
  },
328
364
  releasedAt: '2025-04-28',
329
365
  settings: {
@@ -344,8 +380,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
344
380
  id: 'THUDM/GLM-4.1V-9B-Thinking',
345
381
  pricing: {
346
382
  currency: 'CNY',
347
- input: 0,
348
- output: 0,
383
+ units: [
384
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
385
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
386
+ ],
349
387
  },
350
388
  releasedAt: '2025-07-02',
351
389
  type: 'chat',
@@ -362,8 +400,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
362
400
  id: 'Pro/THUDM/GLM-4.1V-9B-Thinking',
363
401
  pricing: {
364
402
  currency: 'CNY',
365
- input: 0.25,
366
- output: 1,
403
+ units: [
404
+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
405
+ { name: 'textOutput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
406
+ ],
367
407
  },
368
408
  releasedAt: '2025-07-02',
369
409
  type: 'chat',
@@ -379,8 +419,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
379
419
  id: 'THUDM/GLM-Z1-Rumination-32B-0414',
380
420
  pricing: {
381
421
  currency: 'CNY',
382
- input: 1,
383
- output: 4,
422
+ units: [
423
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
424
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
425
+ ],
384
426
  },
385
427
  releasedAt: '2025-04-14',
386
428
  type: 'chat',
@@ -397,8 +439,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
397
439
  id: 'THUDM/GLM-Z1-32B-0414',
398
440
  pricing: {
399
441
  currency: 'CNY',
400
- input: 1,
401
- output: 4,
442
+ units: [
443
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
444
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
445
+ ],
402
446
  },
403
447
  releasedAt: '2025-04-14',
404
448
  type: 'chat',
@@ -415,8 +459,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
415
459
  id: 'THUDM/GLM-Z1-9B-0414',
416
460
  pricing: {
417
461
  currency: 'CNY',
418
- input: 0,
419
- output: 0,
462
+ units: [
463
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
464
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
465
+ ],
420
466
  },
421
467
  releasedAt: '2025-04-14',
422
468
  type: 'chat',
@@ -432,8 +478,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
432
478
  id: 'THUDM/GLM-4-32B-0414',
433
479
  pricing: {
434
480
  currency: 'CNY',
435
- input: 1.89,
436
- output: 1.89,
481
+ units: [
482
+ { name: 'textInput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },
483
+ { name: 'textOutput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },
484
+ ],
437
485
  },
438
486
  releasedAt: '2025-04-14',
439
487
  type: 'chat',
@@ -449,8 +497,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
449
497
  id: 'THUDM/GLM-4-9B-0414',
450
498
  pricing: {
451
499
  currency: 'CNY',
452
- input: 0,
453
- output: 0,
500
+ units: [
501
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
502
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
503
+ ],
454
504
  },
455
505
  releasedAt: '2025-04-14',
456
506
  type: 'chat',
@@ -466,8 +516,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
466
516
  id: 'THUDM/glm-4-9b-chat',
467
517
  pricing: {
468
518
  currency: 'CNY',
469
- input: 0,
470
- output: 0,
519
+ units: [
520
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
521
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
522
+ ],
471
523
  },
472
524
  releasedAt: '2024-06-04',
473
525
  type: 'chat',
@@ -483,8 +535,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
483
535
  id: 'Pro/THUDM/glm-4-9b-chat',
484
536
  pricing: {
485
537
  currency: 'CNY',
486
- input: 0.6,
487
- output: 0.6,
538
+ units: [
539
+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
540
+ { name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
541
+ ],
488
542
  },
489
543
  releasedAt: '2024-06-04',
490
544
  type: 'chat',
@@ -501,8 +555,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
501
555
  id: 'deepseek-ai/DeepSeek-R1-0528-Qwen3-8B',
502
556
  pricing: {
503
557
  currency: 'CNY',
504
- input: 0,
505
- output: 0,
558
+ units: [
559
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
560
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
561
+ ],
506
562
  },
507
563
  type: 'chat',
508
564
  },
@@ -518,8 +574,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
518
574
  id: 'deepseek-ai/DeepSeek-R1',
519
575
  pricing: {
520
576
  currency: 'CNY',
521
- input: 4,
522
- output: 16,
577
+ units: [
578
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
579
+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
580
+ ],
523
581
  },
524
582
  type: 'chat',
525
583
  },
@@ -534,8 +592,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
534
592
  id: 'deepseek-ai/DeepSeek-V3',
535
593
  pricing: {
536
594
  currency: 'CNY',
537
- input: 2,
538
- output: 8,
595
+ units: [
596
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
597
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
598
+ ],
539
599
  },
540
600
  type: 'chat',
541
601
  },
@@ -551,8 +611,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
551
611
  id: 'Pro/deepseek-ai/DeepSeek-R1',
552
612
  pricing: {
553
613
  currency: 'CNY',
554
- input: 4,
555
- output: 16,
614
+ units: [
615
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
616
+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
617
+ ],
556
618
  },
557
619
  type: 'chat',
558
620
  },
@@ -567,8 +629,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
567
629
  id: 'Pro/deepseek-ai/DeepSeek-V3',
568
630
  pricing: {
569
631
  currency: 'CNY',
570
- input: 2,
571
- output: 8,
632
+ units: [
633
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
634
+ { name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
635
+ ],
572
636
  },
573
637
  type: 'chat',
574
638
  },
@@ -584,8 +648,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
584
648
  id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',
585
649
  pricing: {
586
650
  currency: 'CNY',
587
- input: 1.26,
588
- output: 1.26,
651
+ units: [
652
+ { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },
653
+ { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },
654
+ ],
589
655
  },
590
656
  type: 'chat',
591
657
  },
@@ -601,8 +667,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
601
667
  id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-14B',
602
668
  pricing: {
603
669
  currency: 'CNY',
604
- input: 0.7,
605
- output: 0.7,
670
+ units: [
671
+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
672
+ { name: 'textOutput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
673
+ ],
606
674
  },
607
675
  type: 'chat',
608
676
  },
@@ -618,8 +686,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
618
686
  id: 'deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',
619
687
  pricing: {
620
688
  currency: 'CNY',
621
- input: 0,
622
- output: 0,
689
+ units: [
690
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
691
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
692
+ ],
623
693
  },
624
694
  type: 'chat',
625
695
  },
@@ -635,8 +705,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
635
705
  id: 'Pro/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B',
636
706
  pricing: {
637
707
  currency: 'CNY',
638
- input: 0.35,
639
- output: 0.35,
708
+ units: [
709
+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
710
+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
711
+ ],
640
712
  },
641
713
  type: 'chat',
642
714
  },
@@ -651,8 +723,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
651
723
  id: 'deepseek-ai/DeepSeek-V2.5',
652
724
  pricing: {
653
725
  currency: 'CNY',
654
- input: 1.33,
655
- output: 1.33,
726
+ units: [
727
+ { name: 'textInput', rate: 1.33, strategy: 'fixed', unit: 'millionTokens' },
728
+ { name: 'textOutput', rate: 1.33, strategy: 'fixed', unit: 'millionTokens' },
729
+ ],
656
730
  },
657
731
  type: 'chat',
658
732
  },
@@ -667,8 +741,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
667
741
  id: 'deepseek-ai/deepseek-vl2',
668
742
  pricing: {
669
743
  currency: 'CNY',
670
- input: 0.99,
671
- output: 0.99,
744
+ units: [
745
+ { name: 'textInput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },
746
+ { name: 'textOutput', rate: 0.99, strategy: 'fixed', unit: 'millionTokens' },
747
+ ],
672
748
  },
673
749
  type: 'chat',
674
750
  },
@@ -684,8 +760,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
684
760
  id: 'Qwen/QVQ-72B-Preview',
685
761
  pricing: {
686
762
  currency: 'CNY',
687
- input: 9.9,
688
- output: 9.9,
763
+ units: [
764
+ { name: 'textInput', rate: 9.9, strategy: 'fixed', unit: 'millionTokens' },
765
+ { name: 'textOutput', rate: 9.9, strategy: 'fixed', unit: 'millionTokens' },
766
+ ],
689
767
  },
690
768
  type: 'chat',
691
769
  },
@@ -701,8 +779,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
701
779
  id: 'Qwen/QwQ-32B',
702
780
  pricing: {
703
781
  currency: 'CNY',
704
- input: 1,
705
- output: 4,
782
+ units: [
783
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
784
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
785
+ ],
706
786
  },
707
787
  type: 'chat',
708
788
  },
@@ -717,8 +797,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
717
797
  id: 'Qwen/Qwen2.5-7B-Instruct',
718
798
  pricing: {
719
799
  currency: 'CNY',
720
- input: 0,
721
- output: 0,
800
+ units: [
801
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
802
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
803
+ ],
722
804
  },
723
805
  type: 'chat',
724
806
  },
@@ -733,8 +815,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
733
815
  id: 'Pro/Qwen/Qwen2.5-7B-Instruct',
734
816
  pricing: {
735
817
  currency: 'CNY',
736
- input: 0.35,
737
- output: 0.35,
818
+ units: [
819
+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
820
+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
821
+ ],
738
822
  },
739
823
  type: 'chat',
740
824
  },
@@ -749,8 +833,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
749
833
  id: 'Qwen/Qwen2.5-14B-Instruct',
750
834
  pricing: {
751
835
  currency: 'CNY',
752
- input: 0.7,
753
- output: 0.7,
836
+ units: [
837
+ { name: 'textInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
838
+ { name: 'textOutput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
839
+ ],
754
840
  },
755
841
  type: 'chat',
756
842
  },
@@ -765,8 +851,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
765
851
  id: 'Qwen/Qwen2.5-32B-Instruct',
766
852
  pricing: {
767
853
  currency: 'CNY',
768
- input: 1.26,
769
- output: 1.26,
854
+ units: [
855
+ { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },
856
+ { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },
857
+ ],
770
858
  },
771
859
  type: 'chat',
772
860
  },
@@ -781,8 +869,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
781
869
  id: 'Qwen/Qwen2.5-72B-Instruct',
782
870
  pricing: {
783
871
  currency: 'CNY',
784
- input: 4.13,
785
- output: 4.13,
872
+ units: [
873
+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
874
+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
875
+ ],
786
876
  },
787
877
  type: 'chat',
788
878
  },
@@ -797,8 +887,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
797
887
  id: 'Qwen/Qwen2.5-72B-Instruct-128K',
798
888
  pricing: {
799
889
  currency: 'CNY',
800
- input: 4.13,
801
- output: 4.13,
890
+ units: [
891
+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
892
+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
893
+ ],
802
894
  },
803
895
  type: 'chat',
804
896
  },
@@ -810,8 +902,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
810
902
  id: 'Qwen/Qwen2.5-Coder-7B-Instruct',
811
903
  pricing: {
812
904
  currency: 'CNY',
813
- input: 0,
814
- output: 0,
905
+ units: [
906
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
907
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
908
+ ],
815
909
  },
816
910
  type: 'chat',
817
911
  },
@@ -823,8 +917,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
823
917
  id: 'Pro/Qwen/Qwen2.5-Coder-7B-Instruct',
824
918
  pricing: {
825
919
  currency: 'CNY',
826
- input: 0.35,
827
- output: 0.35,
920
+ units: [
921
+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
922
+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
923
+ ],
828
924
  },
829
925
  type: 'chat',
830
926
  },
@@ -836,8 +932,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
836
932
  id: 'Qwen/Qwen2.5-Coder-32B-Instruct',
837
933
  pricing: {
838
934
  currency: 'CNY',
839
- input: 1.26,
840
- output: 1.26,
935
+ units: [
936
+ { name: 'textInput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },
937
+ { name: 'textOutput', rate: 1.26, strategy: 'fixed', unit: 'millionTokens' },
938
+ ],
841
939
  },
842
940
  type: 'chat',
843
941
  },
@@ -849,8 +947,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
849
947
  id: 'Qwen/Qwen2-7B-Instruct',
850
948
  pricing: {
851
949
  currency: 'CNY',
852
- input: 0,
853
- output: 0,
950
+ units: [
951
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
952
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
953
+ ],
854
954
  },
855
955
  type: 'chat',
856
956
  },
@@ -862,8 +962,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
862
962
  id: 'Pro/Qwen/Qwen2-7B-Instruct',
863
963
  pricing: {
864
964
  currency: 'CNY',
865
- input: 0.35,
866
- output: 0.35,
965
+ units: [
966
+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
967
+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
968
+ ],
867
969
  },
868
970
  type: 'chat',
869
971
  },
@@ -878,8 +980,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
878
980
  id: 'Qwen/Qwen2-VL-72B-Instruct',
879
981
  pricing: {
880
982
  currency: 'CNY',
881
- input: 4.13,
882
- output: 4.13,
983
+ units: [
984
+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
985
+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
986
+ ],
883
987
  },
884
988
  type: 'chat',
885
989
  },
@@ -894,8 +998,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
894
998
  id: 'Pro/Qwen/Qwen2.5-VL-7B-Instruct',
895
999
  pricing: {
896
1000
  currency: 'CNY',
897
- input: 0.35,
898
- output: 0.35,
1001
+ units: [
1002
+ { name: 'textInput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
1003
+ { name: 'textOutput', rate: 0.35, strategy: 'fixed', unit: 'millionTokens' },
1004
+ ],
899
1005
  },
900
1006
  type: 'chat',
901
1007
  },
@@ -910,8 +1016,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
910
1016
  id: 'Qwen/Qwen2.5-VL-32B-Instruct',
911
1017
  pricing: {
912
1018
  currency: 'CNY',
913
- input: 1.89,
914
- output: 1.89,
1019
+ units: [
1020
+ { name: 'textInput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },
1021
+ { name: 'textOutput', rate: 1.89, strategy: 'fixed', unit: 'millionTokens' },
1022
+ ],
915
1023
  },
916
1024
  type: 'chat',
917
1025
  },
@@ -926,8 +1034,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
926
1034
  id: 'Qwen/Qwen2.5-VL-72B-Instruct',
927
1035
  pricing: {
928
1036
  currency: 'CNY',
929
- input: 4.13,
930
- output: 4.13,
1037
+ units: [
1038
+ { name: 'textInput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
1039
+ { name: 'textOutput', rate: 4.13, strategy: 'fixed', unit: 'millionTokens' },
1040
+ ],
931
1041
  },
932
1042
  type: 'chat',
933
1043
  },
@@ -942,8 +1052,10 @@ const siliconcloudChatModels: AIChatModelCard[] = [
942
1052
  id: 'internlm/internlm2_5-7b-chat',
943
1053
  pricing: {
944
1054
  currency: 'CNY',
945
- input: 0,
946
- output: 0,
1055
+ units: [
1056
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
1057
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
1058
+ ],
947
1059
  },
948
1060
  type: 'chat',
949
1061
  },