Skip to content

Commit 0cf3bcc

Browse files
authored
♻️ refactor: Remove doubao Provider (lobehub#7573)
* 🗑️ refactor: 移除 Doubao 相关模型和配置 * Update siliconcloud.ts * del * fix
1 parent 75b639b commit 0cf3bcc

File tree

19 files changed

+120
-220
lines changed

19 files changed

+120
-220
lines changed

src/app/[variants]/(main)/settings/provider/(detail)/doubao/page.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/config/aiModels/doubao.ts

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/config/aiModels/hunyuan.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const hunyuanChatModels: AIChatModelCard[] = [
231231
input: 0.8,
232232
output: 2,
233233
},
234-
releasedAt: '2025-03-13',
234+
releasedAt: '2025-04-16',
235235
settings: {
236236
searchImpl: 'params',
237237
},
@@ -349,12 +349,12 @@ const hunyuanChatModels: AIChatModelCard[] = [
349349
abilities: {
350350
vision: true,
351351
},
352-
contextWindowTokens: 12_000,
352+
contextWindowTokens: 32_000,
353353
description: '混元最新多模态模型,支持图片+文本输入生成文本内容。',
354354
displayName: 'Hunyuan Vision',
355355
enabled: true,
356356
id: 'hunyuan-vision',
357-
maxOutput: 6000,
357+
maxOutput: 16_000,
358358
pricing: {
359359
currency: 'CNY',
360360
input: 18,
@@ -393,7 +393,7 @@ const hunyuanChatModels: AIChatModelCard[] = [
393393
input: 4,
394394
output: 8,
395395
},
396-
releasedAt: '2024-11-15',
396+
releasedAt: '2025-04-22',
397397
type: 'chat',
398398
},
399399
{

src/config/aiModels/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { default as bedrock } from './bedrock';
1010
import { default as cloudflare } from './cloudflare';
1111
import { default as cohere } from './cohere';
1212
import { default as deepseek } from './deepseek';
13-
import { default as doubao } from './doubao';
1413
import { default as fireworksai } from './fireworksai';
1514
import { default as giteeai } from './giteeai';
1615
import { default as github } from './github';
@@ -83,7 +82,6 @@ export const LOBE_DEFAULT_MODEL_LIST = buildDefaultModelList({
8382
cloudflare,
8483
cohere,
8584
deepseek,
86-
doubao,
8785
fireworksai,
8886
giteeai,
8987
github,
@@ -137,7 +135,6 @@ export { default as bedrock } from './bedrock';
137135
export { default as cloudflare } from './cloudflare';
138136
export { default as cohere } from './cohere';
139137
export { default as deepseek } from './deepseek';
140-
export { default as doubao } from './doubao';
141138
export { default as fireworksai } from './fireworksai';
142139
export { default as giteeai } from './giteeai';
143140
export { default as github } from './github';

src/config/aiModels/novita.ts

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const novitaChatModels: AIChatModelCard[] = [
279279
},
280280
{
281281
contextWindowTokens: 32_000,
282-
displayName: 'Qwen 2.5 72B Instruct',
282+
displayName: 'Qwen2.5 72B Instruct',
283283
id: 'qwen/qwen-2.5-72b-instruct',
284284
pricing: {
285285
input: 0.38,
@@ -332,7 +332,7 @@ const novitaChatModels: AIChatModelCard[] = [
332332
vision: true,
333333
},
334334
contextWindowTokens: 96_000,
335-
displayName: 'Qwen 2.5 VL 72B Instruct',
335+
displayName: 'Qwen2.5 VL 72B Instruct',
336336
enabled: true,
337337
id: 'qwen/qwen2.5-vl-72b-instruct',
338338
pricing: {
@@ -345,9 +345,9 @@ const novitaChatModels: AIChatModelCard[] = [
345345
contextWindowTokens: 131_000,
346346
displayName: 'Llama 3.2 1B Instruct',
347347
id: 'meta-llama/llama-3.2-1b-instruct',
348-
pricing: {
349-
input: 0.02,
350-
output: 0.02,
348+
pricing: {
349+
input: 0,
350+
output: 0
351351
},
352352
type: 'chat',
353353
},
@@ -405,8 +405,68 @@ const novitaChatModels: AIChatModelCard[] = [
405405
},
406406
type: 'chat',
407407
},
408+
{
409+
contextWindowTokens: 32_000,
410+
displayName: 'Qwen2.5 7B Instruct',
411+
id: 'qwen/qwen2.5-7b-instruct',
412+
pricing: {
413+
input: 0,
414+
output: 0,
415+
},
416+
type: 'chat',
417+
},
418+
{
419+
contextWindowTokens: 32_000,
420+
displayName: 'GLM 4 9B 0414',
421+
id: 'thudm/glm-4-9b-0414',
422+
pricing: {
423+
input: 0,
424+
output: 0
425+
},
426+
type: 'chat',
427+
},
428+
{
429+
contextWindowTokens: 32_000,
430+
displayName: 'GLM Z1 9B 0414',
431+
id: 'thudm/glm-z1-9b-0414',
432+
pricing: {
433+
input: 0,
434+
output: 0
435+
},
436+
type: 'chat',
437+
},
438+
{
439+
contextWindowTokens: 32_000,
440+
displayName: 'GLM Z1 32B 0414',
441+
id: 'thudm/glm-z1-32b-0414',
442+
pricing: {
443+
input: 0.24,
444+
output: 0.24
445+
},
446+
type: 'chat',
447+
},
448+
{
449+
contextWindowTokens: 32_000,
450+
displayName: 'GLM 4 32B 0414',
451+
id: 'thudm/glm-4-32b-0414',
452+
pricing: {
453+
input: 0.24,
454+
output: 0.24
455+
},
456+
type: 'chat',
457+
},
458+
{
459+
contextWindowTokens: 32_000,
460+
displayName: 'GLM Z1 Rumination 32B 0414',
461+
id: 'thudm/glm-z1-rumination-32b-0414',
462+
pricing: {
463+
input: 0.24,
464+
output: 0.24
465+
},
466+
type: 'chat',
467+
},
408468
];
409469

410470
export const allModels = [...novitaChatModels];
411471

412-
export default allModels;
472+
export default allModels;

src/config/aiModels/qwen.ts

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ const qwenChatModels: AIChatModelCard[] = [
270270
functionCall: true,
271271
search: true,
272272
},
273-
contextWindowTokens: 32_768,
273+
contextWindowTokens: 131_072,
274274
description:
275275
'通义千问千亿级别超大规模语言模型,支持中文、英文等不同语言输入,当前通义千问2.5产品版本背后的API模型。',
276276
displayName: 'Qwen Max',
@@ -292,13 +292,13 @@ const qwenChatModels: AIChatModelCard[] = [
292292
abilities: {
293293
functionCall: true,
294294
},
295-
contextWindowTokens: 1_000_000,
295+
contextWindowTokens: 10_000_000,
296296
description:
297297
'通义千问超大规模语言模型,支持长文本上下文,以及基于长文档、多文档等多个场景的对话功能。',
298298
displayName: 'Qwen Long',
299299
enabled: true,
300300
id: 'qwen-long',
301-
maxOutput: 6000,
301+
maxOutput: 8192,
302302
organization: 'Qwen',
303303
pricing: {
304304
currency: 'CNY',
@@ -337,23 +337,23 @@ const qwenChatModels: AIChatModelCard[] = [
337337
id: 'qwen2.5-omni-7b',
338338
maxOutput: 2048,
339339
organization: 'Qwen',
340-
// pricing: {
341-
// currency: 'CNY',
342-
// input: 0,
343-
// output: 0,
344-
// },
340+
pricing: {
341+
currency: 'CNY',
342+
input: 0.6,
343+
output: 6,
344+
},
345345
type: 'chat',
346346
},
347347
{
348348
abilities: {
349349
vision: true,
350350
},
351-
contextWindowTokens: 32_000,
351+
contextWindowTokens: 131_072,
352352
description:
353353
'通义千问大规模视觉语言模型增强版。大幅提升细节识别能力和文字识别能力,支持超百万像素分辨率和任意长宽比规格的图像。',
354354
displayName: 'Qwen VL Plus',
355355
id: 'qwen-vl-plus-latest',
356-
maxOutput: 2048,
356+
maxOutput: 8192,
357357
organization: 'Qwen',
358358
pricing: {
359359
currency: 'CNY',
@@ -366,13 +366,13 @@ const qwenChatModels: AIChatModelCard[] = [
366366
abilities: {
367367
vision: true,
368368
},
369-
contextWindowTokens: 32_768,
369+
contextWindowTokens: 131_072,
370370
description:
371371
'通义千问超大规模视觉语言模型。相比增强版,再次提升视觉推理能力和指令遵循能力,提供更高的视觉感知和认知水平。',
372372
displayName: 'Qwen VL Max',
373373
enabled: true,
374374
id: 'qwen-vl-max-latest',
375-
maxOutput: 2048,
375+
maxOutput: 8192,
376376
organization: 'Qwen',
377377
pricing: {
378378
currency: 'CNY',
@@ -505,7 +505,7 @@ const qwenChatModels: AIChatModelCard[] = [
505505
description:
506506
'通义千问QVQ视觉推理模型,支持视觉输入及思维链输出,在数学、编程、视觉分析、创作以及通用任务上都表现了更强的能力。',
507507
displayName: 'QVQ Max',
508-
id: 'qvq-max', // Unsupported model `qvq-max-latest` for OpenAI compatibility mode
508+
id: 'qvq-max-latest',
509509
maxOutput: 8192,
510510
organization: 'Qwen',
511511
pricing: {
@@ -582,8 +582,8 @@ const qwenChatModels: AIChatModelCard[] = [
582582
organization: 'Qwen',
583583
pricing: {
584584
currency: 'CNY',
585-
input: 3.5,
586-
output: 7,
585+
input: 2,
586+
output: 6,
587587
},
588588
type: 'chat',
589589
},
@@ -673,8 +673,8 @@ const qwenChatModels: AIChatModelCard[] = [
673673
organization: 'Qwen',
674674
pricing: {
675675
currency: 'CNY',
676-
input: 3.5,
677-
output: 7,
676+
input: 2,
677+
output: 6,
678678
},
679679
type: 'chat',
680680
},
@@ -686,6 +686,7 @@ const qwenChatModels: AIChatModelCard[] = [
686686
description: '以 Qwen-7B 语言模型初始化,添加图像模型,图像输入分辨率为448的预训练模型。',
687687
displayName: 'Qwen VL',
688688
id: 'qwen-vl-v1',
689+
maxOutput: 1500,
689690
organization: 'Qwen',
690691
pricing: {
691692
currency: 'CNY',
@@ -702,6 +703,7 @@ const qwenChatModels: AIChatModelCard[] = [
702703
description: '通义千问VL支持灵活的交互方式,包括多图、多轮问答、创作等能力的模型。',
703704
displayName: 'Qwen VL Chat',
704705
id: 'qwen-vl-chat-v1',
706+
maxOutput: 1500,
705707
organization: 'Qwen',
706708
pricing: {
707709
currency: 'CNY',

0 commit comments

Comments
 (0)