From 327749afbd80020685be827001dee612dde260ea Mon Sep 17 00:00:00 2001 From: jiangxucong Date: Fri, 28 Mar 2025 11:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/config/aiModels/deepseek.ts | 4 +- DigitalHumanWeb/src/config/aiModels/ollama.ts | 2 +- DigitalHumanWeb/src/config/aiModels/openai.ts | 840 +++++++++--------- .../src/config/modelProviders/deepseek.ts | 62 +- .../src/config/modelProviders/index.ts | 4 +- 5 files changed, 456 insertions(+), 456 deletions(-) diff --git a/DigitalHumanWeb/src/config/aiModels/deepseek.ts b/DigitalHumanWeb/src/config/aiModels/deepseek.ts index e9d40c5..118a245 100644 --- a/DigitalHumanWeb/src/config/aiModels/deepseek.ts +++ b/DigitalHumanWeb/src/config/aiModels/deepseek.ts @@ -9,7 +9,7 @@ const deepseekChatModels: AIChatModelCard[] = [ description: '最新模型 DeepSeek-V3 多项评测成绩超越 Qwen2.5-72B 和 Llama-3.1-405B 等开源模型,性能对齐领军闭源模型 GPT-4o 与 Claude-3.5-Sonnet。', displayName: 'DeepSeek V3', - enabled: true, + // enabled: true, id: 'deepseek-chat', pricing: { cachedInput: 0.5, @@ -28,7 +28,7 @@ const deepseekChatModels: AIChatModelCard[] = [ description: 'DeepSeek 推出的推理模型。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。', displayName: 'DeepSeek R1', - enabled: true, + // enabled: true, id: 'deepseek-reasoner', pricing: { cachedInput: 1, diff --git a/DigitalHumanWeb/src/config/aiModels/ollama.ts b/DigitalHumanWeb/src/config/aiModels/ollama.ts index b555e8a..c749be9 100644 --- a/DigitalHumanWeb/src/config/aiModels/ollama.ts +++ b/DigitalHumanWeb/src/config/aiModels/ollama.ts @@ -9,7 +9,7 @@ const ollamaChatModels: AIChatModelCard[] = [ description: 'DeepSeek-R1 是一款强化学习(RL)驱动的推理模型,解决了模型中的重复性和可读性问题。在 RL 之前,DeepSeek-R1 引入了冷启动数据,进一步优化了推理性能。它在数学、代码和推理任务中与 OpenAI-o1 表现相当,并且通过精心设计的训练方法,提升了整体效果。', displayName: 'DeepSeek R1', - enabled: true, + // enabled: true, id: 'deepseek-r1', type: 'chat', }, diff --git a/DigitalHumanWeb/src/config/aiModels/openai.ts b/DigitalHumanWeb/src/config/aiModels/openai.ts index 5f4e15c..b632d63 100644 --- a/DigitalHumanWeb/src/config/aiModels/openai.ts +++ b/DigitalHumanWeb/src/config/aiModels/openai.ts @@ -8,427 +8,427 @@ import { } from '@/types/aiModel'; export const openaiChatModels: AIChatModelCard[] = [ - { - abilities: { - functionCall: true, - reasoning: true, - }, - contextWindowTokens: 200_000, - description: - 'o3-mini 是我们最新的小型推理模型,在与 o1-mini 相同的成本和延迟目标下提供高智能。', - displayName: 'OpenAI o3-mini', - enabled: true, - id: 'o3-mini', - maxOutput: 100_000, - pricing: { - cachedInput: 0.55, - input: 1.1, - output: 4.4, - }, - releasedAt: '2025-01-31', - type: 'chat', - }, - { - abilities: { - reasoning: true, - }, - contextWindowTokens: 128_000, - description: - 'o1-mini是一款针对编程、数学和科学应用场景而设计的快速、经济高效的推理模型。该模型具有128K上下文和2023年10月的知识截止日期。', - displayName: 'OpenAI o1-mini', - enabled: true, - id: 'o1-mini', - maxOutput: 65_536, - pricing: { - cachedInput: 0.55, - input: 1.1, - output: 4.4, - }, - releasedAt: '2024-09-12', - type: 'chat', - }, - { - abilities: { - reasoning: true, - vision: true, - }, - contextWindowTokens: 200_000, - description: - 'o1是OpenAI新的推理模型,支持图文输入并输出文本,适用于需要广泛通用知识的复杂任务。该模型具有200K上下文和2023年10月的知识截止日期。', - displayName: 'OpenAI o1', - enabled: true, - id: 'o1', - maxOutput: 100_000, - pricing: { - cachedInput: 7.5, - input: 15, - output: 60, - }, - releasedAt: '2024-12-17', - type: 'chat', - }, - { - abilities: { - reasoning: 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', - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - 'GPT-4.5 的研究预览版,它是我们迄今为止最大、最强大的 GPT 模型。它拥有广泛的世界知识,并能更好地理解用户意图,使其在创造性任务和自主规划方面表现出色。GPT-4.5 可接受文本和图像输入,并生成文本输出(包括结构化输出)。支持关键的开发者功能,如函数调用、批量 API 和流式输出。在需要创造性、开放式思考和对话的任务(如写作、学习或探索新想法)中,GPT-4.5 表现尤为出色。知识截止日期为 2023 年 10 月。', - displayName: 'GPT-4.5 Preview', - enabled: true, - id: 'gpt-4.5-preview', - maxOutput: 16_384, - pricing: { - cachedInput: 37.5, - input: 75, - output: 150, - }, - releasedAt: '2025-02-27', - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - 'GPT-4o mini是OpenAI在GPT-4 Omni之后推出的最新模型,支持图文输入并输出文本。作为他们最先进的小型模型,它比其他近期的前沿模型便宜很多,并且比GPT-3.5 Turbo便宜超过60%。它保持了最先进的智能,同时具有显著的性价比。GPT-4o mini在MMLU测试中获得了 82% 的得分,目前在聊天偏好上排名高于 GPT-4。', - displayName: 'GPT-4o mini', - enabled: true, - id: 'gpt-4o-mini', - maxOutput: 16_384, - pricing: { - cachedInput: 0.075, - input: 0.15, - output: 0.6, - }, - releasedAt: '2024-07-18', - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', - displayName: 'GPT-4o 1120', - id: 'gpt-4o-2024-11-20', - pricing: { - input: 2.5, - output: 10, - }, - releasedAt: '2024-11-20', - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', - displayName: 'GPT-4o', - enabled: true, - id: 'gpt-4o', - pricing: { - cachedInput: 1.25, - input: 2.5, - output: 10, - }, - releasedAt: '2024-05-13', - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', - displayName: 'GPT-4o 0806', - id: 'gpt-4o-2024-08-06', - pricing: { - input: 2.5, - output: 10, - }, - releasedAt: '2024-08-06', - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', - displayName: 'GPT-4o 0513', - id: 'gpt-4o-2024-05-13', - pricing: { - input: 5, - output: 15, - }, - releasedAt: '2024-05-13', - type: 'chat', - }, - { - contextWindowTokens: 128_000, - description: 'GPT-4o Audio 模型,支持音频输入输出', - displayName: 'GPT-4o Audio', - id: 'gpt-4o-audio-preview', - maxOutput: 16_384, - pricing: { - input: 2.5, - output: 10, - }, - releasedAt: '2024-10-01', - type: 'chat', - }, - { - abilities: { - vision: true, - }, - contextWindowTokens: 128_000, - description: - 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', - displayName: 'ChatGPT-4o', - enabled: true, - id: 'chatgpt-4o-latest', - pricing: { - input: 5, - output: 15, - }, - releasedAt: '2024-08-14', - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', - displayName: 'GPT-4 Turbo', - id: 'gpt-4-turbo', - pricing: { - input: 10, - output: 30, - }, - type: 'chat', - }, - { - abilities: { - functionCall: true, - vision: true, - }, - contextWindowTokens: 128_000, - description: - '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', - displayName: 'GPT-4 Turbo Vision 0409', - id: 'gpt-4-turbo-2024-04-09', - pricing: { - input: 10, - output: 30, - }, - releasedAt: '2024-04-09', - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 128_000, - description: - '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', - displayName: 'GPT-4 Turbo Preview', - id: 'gpt-4-turbo-preview', - pricing: { - input: 10, - output: 30, - }, - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 128_000, - description: - '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', - displayName: 'GPT-4 Turbo Preview 0125', - id: 'gpt-4-0125-preview', - pricing: { - input: 10, - output: 30, - }, - releasedAt: '2024-01-25', - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 128_000, - description: - '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', - displayName: 'GPT-4 Turbo Preview 1106', - id: 'gpt-4-1106-preview', - pricing: { - input: 10, - output: 30, - }, - releasedAt: '2023-11-06', - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 8192, - description: - 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', - displayName: 'GPT-4', - id: 'gpt-4', - pricing: { - input: 30, - output: 60, - }, - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 8192, - description: - 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', - displayName: 'GPT-4 0613', - id: 'gpt-4-0613', - pricing: { - input: 30, - output: 60, - }, - releasedAt: '2023-06-13', - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 32_768, + // { + // abilities: { + // functionCall: true, + // reasoning: true, + // }, + // contextWindowTokens: 200_000, + // description: + // 'o3-mini 是我们最新的小型推理模型,在与 o1-mini 相同的成本和延迟目标下提供高智能。', + // displayName: 'OpenAI o3-mini', + // enabled: true, + // id: 'o3-mini', + // maxOutput: 100_000, + // pricing: { + // cachedInput: 0.55, + // input: 1.1, + // output: 4.4, + // }, + // releasedAt: '2025-01-31', + // type: 'chat', + // }, + // { + // abilities: { + // reasoning: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'o1-mini是一款针对编程、数学和科学应用场景而设计的快速、经济高效的推理模型。该模型具有128K上下文和2023年10月的知识截止日期。', + // displayName: 'OpenAI o1-mini', + // enabled: true, + // id: 'o1-mini', + // maxOutput: 65_536, + // pricing: { + // cachedInput: 0.55, + // input: 1.1, + // output: 4.4, + // }, + // releasedAt: '2024-09-12', + // type: 'chat', + // }, + // { + // abilities: { + // reasoning: true, + // vision: true, + // }, + // contextWindowTokens: 200_000, + // description: + // 'o1是OpenAI新的推理模型,支持图文输入并输出文本,适用于需要广泛通用知识的复杂任务。该模型具有200K上下文和2023年10月的知识截止日期。', + // displayName: 'OpenAI o1', + // enabled: true, + // id: 'o1', + // maxOutput: 100_000, + // pricing: { + // cachedInput: 7.5, + // input: 15, + // output: 60, + // }, + // releasedAt: '2024-12-17', + // type: 'chat', + // }, + // { + // abilities: { + // reasoning: 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', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'GPT-4.5 的研究预览版,它是我们迄今为止最大、最强大的 GPT 模型。它拥有广泛的世界知识,并能更好地理解用户意图,使其在创造性任务和自主规划方面表现出色。GPT-4.5 可接受文本和图像输入,并生成文本输出(包括结构化输出)。支持关键的开发者功能,如函数调用、批量 API 和流式输出。在需要创造性、开放式思考和对话的任务(如写作、学习或探索新想法)中,GPT-4.5 表现尤为出色。知识截止日期为 2023 年 10 月。', + // displayName: 'GPT-4.5 Preview', + // enabled: true, + // id: 'gpt-4.5-preview', + // maxOutput: 16_384, + // pricing: { + // cachedInput: 37.5, + // input: 75, + // output: 150, + // }, + // releasedAt: '2025-02-27', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'GPT-4o mini是OpenAI在GPT-4 Omni之后推出的最新模型,支持图文输入并输出文本。作为他们最先进的小型模型,它比其他近期的前沿模型便宜很多,并且比GPT-3.5 Turbo便宜超过60%。它保持了最先进的智能,同时具有显著的性价比。GPT-4o mini在MMLU测试中获得了 82% 的得分,目前在聊天偏好上排名高于 GPT-4。', + // displayName: 'GPT-4o mini', + // enabled: true, + // id: 'gpt-4o-mini', + // maxOutput: 16_384, + // pricing: { + // cachedInput: 0.075, + // input: 0.15, + // output: 0.6, + // }, + // releasedAt: '2024-07-18', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', + // displayName: 'GPT-4o 1120', + // id: 'gpt-4o-2024-11-20', + // pricing: { + // input: 2.5, + // output: 10, + // }, + // releasedAt: '2024-11-20', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', + // displayName: 'GPT-4o', + // enabled: true, + // id: 'gpt-4o', + // pricing: { + // cachedInput: 1.25, + // input: 2.5, + // output: 10, + // }, + // releasedAt: '2024-05-13', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', + // displayName: 'GPT-4o 0806', + // id: 'gpt-4o-2024-08-06', + // pricing: { + // input: 2.5, + // output: 10, + // }, + // releasedAt: '2024-08-06', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', + // displayName: 'GPT-4o 0513', + // id: 'gpt-4o-2024-05-13', + // pricing: { + // input: 5, + // output: 15, + // }, + // releasedAt: '2024-05-13', + // type: 'chat', + // }, + // { + // contextWindowTokens: 128_000, + // description: 'GPT-4o Audio 模型,支持音频输入输出', + // displayName: 'GPT-4o Audio', + // id: 'gpt-4o-audio-preview', + // maxOutput: 16_384, + // pricing: { + // input: 2.5, + // output: 10, + // }, + // releasedAt: '2024-10-01', + // type: 'chat', + // }, + // { + // abilities: { + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', + // displayName: 'ChatGPT-4o', + // enabled: true, + // id: 'chatgpt-4o-latest', + // pricing: { + // input: 5, + // output: 15, + // }, + // releasedAt: '2024-08-14', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', + // displayName: 'GPT-4 Turbo', + // id: 'gpt-4-turbo', + // pricing: { + // input: 10, + // output: 30, + // }, + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // vision: true, + // }, + // contextWindowTokens: 128_000, + // description: + // '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', + // displayName: 'GPT-4 Turbo Vision 0409', + // id: 'gpt-4-turbo-2024-04-09', + // pricing: { + // input: 10, + // output: 30, + // }, + // releasedAt: '2024-04-09', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 128_000, + // description: + // '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', + // displayName: 'GPT-4 Turbo Preview', + // id: 'gpt-4-turbo-preview', + // pricing: { + // input: 10, + // output: 30, + // }, + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 128_000, + // description: + // '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', + // displayName: 'GPT-4 Turbo Preview 0125', + // id: 'gpt-4-0125-preview', + // pricing: { + // input: 10, + // output: 30, + // }, + // releasedAt: '2024-01-25', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 128_000, + // description: + // '最新的 GPT-4 Turbo 模型具备视觉功能。现在,视觉请求可以使用 JSON 模式和函数调用。 GPT-4 Turbo 是一个增强版本,为多模态任务提供成本效益高的支持。它在准确性和效率之间找到平衡,适合需要进行实时交互的应用程序场景。', + // displayName: 'GPT-4 Turbo Preview 1106', + // id: 'gpt-4-1106-preview', + // pricing: { + // input: 10, + // output: 30, + // }, + // releasedAt: '2023-11-06', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 8192, + // description: + // 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', + // displayName: 'GPT-4', + // id: 'gpt-4', + // pricing: { + // input: 30, + // output: 60, + // }, + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 8192, + // description: + // 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', + // displayName: 'GPT-4 0613', + // id: 'gpt-4-0613', + // pricing: { + // input: 30, + // output: 60, + // }, + // releasedAt: '2023-06-13', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 32_768, - description: - 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', - displayName: 'GPT-4 32K', - id: 'gpt-4-32k', - // Will be discontinued on June 6, 2025 - legacy: true, - pricing: { - input: 60, - output: 120, - }, - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 32_768, - description: - 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', - displayName: 'GPT-4 32K 0613', - id: 'gpt-4-32k-0613', - pricing: { - input: 60, - output: 120, - }, - releasedAt: '2023-06-13', - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 16_384, - description: - 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', - displayName: 'GPT-3.5 Turbo', - id: 'gpt-3.5-turbo', - pricing: { - input: 0.5, - output: 1.5, - }, - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 16_384, - description: - 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', - displayName: 'GPT-3.5 Turbo 0125', - id: 'gpt-3.5-turbo-0125', - pricing: { - input: 0.5, - output: 1.5, - }, - releasedAt: '2024-01-25', - type: 'chat', - }, - { - abilities: { - functionCall: true, - }, - contextWindowTokens: 16_384, - description: - 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', - displayName: 'GPT-3.5 Turbo 1106', - id: 'gpt-3.5-turbo-1106', - pricing: { - input: 1, - output: 2, - }, - releasedAt: '2023-11-06', - type: 'chat', - }, - { - contextWindowTokens: 4096, - description: - 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', - displayName: 'GPT-3.5 Turbo Instruct', - id: 'gpt-3.5-turbo-instruct', - pricing: { - input: 1.5, - output: 2, - }, - type: 'chat', - }, + // description: + // 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', + // displayName: 'GPT-4 32K', + // id: 'gpt-4-32k', + // // Will be discontinued on June 6, 2025 + // legacy: true, + // pricing: { + // input: 60, + // output: 120, + // }, + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 32_768, + // description: + // 'GPT-4 提供了一个更大的上下文窗口,能够处理更长的文本输入,适用于需要广泛信息整合和数据分析的场景。', + // displayName: 'GPT-4 32K 0613', + // id: 'gpt-4-32k-0613', + // pricing: { + // input: 60, + // output: 120, + // }, + // releasedAt: '2023-06-13', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 16_384, + // description: + // 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', + // displayName: 'GPT-3.5 Turbo', + // id: 'gpt-3.5-turbo', + // pricing: { + // input: 0.5, + // output: 1.5, + // }, + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 16_384, + // description: + // 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', + // displayName: 'GPT-3.5 Turbo 0125', + // id: 'gpt-3.5-turbo-0125', + // pricing: { + // input: 0.5, + // output: 1.5, + // }, + // releasedAt: '2024-01-25', + // type: 'chat', + // }, + // { + // abilities: { + // functionCall: true, + // }, + // contextWindowTokens: 16_384, + // description: + // 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', + // displayName: 'GPT-3.5 Turbo 1106', + // id: 'gpt-3.5-turbo-1106', + // pricing: { + // input: 1, + // output: 2, + // }, + // releasedAt: '2023-11-06', + // type: 'chat', + // }, + // { + // contextWindowTokens: 4096, + // description: + // 'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125', + // displayName: 'GPT-3.5 Turbo Instruct', + // id: 'gpt-3.5-turbo-instruct', + // pricing: { + // input: 1.5, + // output: 2, + // }, + // type: 'chat', + // }, ]; export const openaiEmbeddingModels: AIEmbeddingModelCard[] = [ diff --git a/DigitalHumanWeb/src/config/modelProviders/deepseek.ts b/DigitalHumanWeb/src/config/modelProviders/deepseek.ts index db35f61..ae19951 100644 --- a/DigitalHumanWeb/src/config/modelProviders/deepseek.ts +++ b/DigitalHumanWeb/src/config/modelProviders/deepseek.ts @@ -3,37 +3,37 @@ import { ModelProviderCard } from '@/types/llm'; // ref: https://platform.deepseek.com/api-docs/pricing const DeepSeek: ModelProviderCard = { chatModels: [ - { - contextWindowTokens: 65_536, - description: - '最新模型 DeepSeek-V3 多项评测成绩超越 Qwen2.5-72B 和 Llama-3.1-405B 等开源模型,性能对齐领军闭源模型 GPT-4o 与 Claude-3.5-Sonnet。', - displayName: 'DeepSeek V3', - enabled: true, - functionCall: true, - id: 'deepseek-chat', - pricing: { // 2025.2.9 之后涨价 - cachedInput: 0.1, - currency: 'CNY', - input: 1, - output: 2, - }, - releasedAt: '2024-12-26', - }, - { - contextWindowTokens: 65_536, - description: - 'DeepSeek 推出的推理模型。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。', - displayName: 'DeepSeek R1', - enabled: true, - id: 'deepseek-reasoner', - pricing: { - cachedInput: 1, - currency: 'CNY', - input: 4, - output: 16, - }, - releasedAt: '2025-01-20', - }, + // { + // contextWindowTokens: 65_536, + // description: + // '最新模型 DeepSeek-V3 多项评测成绩超越 Qwen2.5-72B 和 Llama-3.1-405B 等开源模型,性能对齐领军闭源模型 GPT-4o 与 Claude-3.5-Sonnet。', + // displayName: 'DeepSeek V3', + // enabled: true, + // functionCall: true, + // id: 'deepseek-chat', + // pricing: { // 2025.2.9 之后涨价 + // cachedInput: 0.1, + // currency: 'CNY', + // input: 1, + // output: 2, + // }, + // releasedAt: '2024-12-26', + // }, + // { + // contextWindowTokens: 65_536, + // description: + // 'DeepSeek 推出的推理模型。在输出最终回答之前,模型会先输出一段思维链内容,以提升最终答案的准确性。', + // displayName: 'DeepSeek R1', + // enabled: true, + // id: 'deepseek-reasoner', + // pricing: { + // cachedInput: 1, + // currency: 'CNY', + // input: 4, + // output: 16, + // }, + // releasedAt: '2025-01-20', + // }, ], checkModel: 'deepseek-chat', description: diff --git a/DigitalHumanWeb/src/config/modelProviders/index.ts b/DigitalHumanWeb/src/config/modelProviders/index.ts index 84b8d70..032ed3f 100644 --- a/DigitalHumanWeb/src/config/modelProviders/index.ts +++ b/DigitalHumanWeb/src/config/modelProviders/index.ts @@ -97,10 +97,10 @@ export const LOBE_DEFAULT_MODEL_LIST: ChatModelCard[] = [ ].flat(); export const DEFAULT_MODEL_PROVIDER_LIST = [ - OpenAIProvider, + // OpenAIProvider, { ...AzureProvider, chatModels: [] }, AzureAIProvider, - OllamaProvider, + // OllamaProvider, VLLMProvider, AnthropicProvider, BedrockProvider,