From c54111f2f59aacd9dd6b60de2914c62af1454985 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 8 Jan 2025 15:23:04 +0800 Subject: [PATCH] Update openai.ts --- src/config/modelProviders/openai.ts | 120 ++++++---------------------- 1 file changed, 24 insertions(+), 96 deletions(-) diff --git a/src/config/modelProviders/openai.ts b/src/config/modelProviders/openai.ts index 5d80d3d48cf7..24ce9730d956 100644 --- a/src/config/modelProviders/openai.ts +++ b/src/config/modelProviders/openai.ts @@ -32,20 +32,6 @@ const OpenAI: ModelProviderCard = { releasedAt: '2024-12-17', vision: true, }, - { - contextWindowTokens: 128_000, - description: - 'o1是OpenAI新的推理模型,适用于需要广泛通用知识的复杂任务。该模型具有128K上下文和2023年10月的知识截止日期。', - displayName: 'OpenAI o1-preview', - enabled: true, - id: 'o1-preview', - maxOutput: 32_768, - pricing: { - input: 15, - output: 60, - }, - releasedAt: '2024-09-12', - }, { contextWindowTokens: 128_000, description: @@ -61,21 +47,6 @@ const OpenAI: ModelProviderCard = { }, vision: true, }, - { - contextWindowTokens: 128_000, - description: - 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', - displayName: 'GPT-4o 1120', - enabled: true, - functionCall: true, - id: 'gpt-4o-2024-11-20', - pricing: { - input: 2.5, - output: 10, - }, - releasedAt: '2024-11-20', - vision: true, - }, { contextWindowTokens: 128_000, description: @@ -173,22 +144,6 @@ const OpenAI: ModelProviderCard = { }, vision: true, }, - { - contextWindowTokens: 1_000_000 + 8192, - description: 'Gemini 1.5 Flash 002 是一款高效的多模态模型,支持广泛应用的扩展。', - displayName: 'Gemini 1.5 Flash 002', - enabled: true, - functionCall: true, - id: 'gemini-1.5-flash-002', - maxOutput: 8192, - pricing: { - cachedInput: 0.018_75, - input: 0.075, - output: 0.3, - }, - releasedAt: '2024-09-25', - vision: true, - }, { contextWindowTokens: 2_000_000 + 8192, description: @@ -206,23 +161,6 @@ const OpenAI: ModelProviderCard = { releasedAt: '2024-02-15', vision: true, }, - { - contextWindowTokens: 2_000_000 + 8192, - description: - 'Gemini 1.5 Pro 002 是最新的生产就绪模型,提供更高质量的输出,特别在数学、长上下文和视觉任务方面有显著提升。', - displayName: 'Gemini 1.5 Pro 002', - enabled: true, - functionCall: true, - id: 'gemini-1.5-pro-002', - maxOutput: 8192, - pricing: { - cachedInput: 0.315, - input: 1.25, - output: 2.5, - }, - releasedAt: '2024-09-24', - vision: true, - }, { contextWindowTokens: 1_048_576 + 8192, description: @@ -275,15 +213,6 @@ const OpenAI: ModelProviderCard = { id: 'accounts/fireworks/models/llama-v3p2-90b-vision-instruct', vision: true, }, - { - contextWindowTokens: 131_072, - description: - 'Llama 3.1 8B 指令模型,专为多语言对话优化,能够在常见行业基准上超越多数开源及闭源模型。', - displayName: 'Llama 3.1 8B Instruct', - enabled: true, - functionCall: true, - id: 'accounts/fireworks/models/llama-v3p1-8b-instruct', - }, { contextWindowTokens: 131_072, description: @@ -499,19 +428,6 @@ const OpenAI: ModelProviderCard = { releasedAt: '2024-12-09', vision: true, }, - { - contextWindowTokens: 8192, - description: 'GLM-4V-Plus 具备对视频内容及多图片的理解能力,适合多模态任务。', - displayName: 'GLM-4V-Plus', - enabled: true, - id: 'glm-4v-plus', - pricing: { - currency: 'CNY', - input: 10, - output: 10, - }, - vision: true, - }, { contextWindowTokens: 128_000, description: @@ -550,18 +466,6 @@ const OpenAI: ModelProviderCard = { 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: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。', @@ -625,6 +529,30 @@ const OpenAI: ModelProviderCard = { output: 60, }, }, + { + contextWindowTokens: 131_072, + description: '通义千问2.5对外开源的14B规模的模型。', + displayName: 'Qwen2.5 14B', + functionCall: true, + id: 'qwen2.5-14b-instruct', + pricing: { + currency: 'CNY', + input: 2, + output: 6, + }, + }, + { + contextWindowTokens: 131_072, + description: '通义千问2.5对外开源的32B规模的模型。', + displayName: 'Qwen2.5 32B', + functionCall: true, + id: 'qwen2.5-32b-instruct', + pricing: { + currency: 'CNY', + input: 3.5, + output: 7, + }, + }, { contextWindowTokens: 131_072, description: '通义千问2.5对外开源的72B规模的模型。',