From bc3b39659a1b2765538e7a9cf46512b74dc362c8 Mon Sep 17 00:00:00 2001 From: LovelyGuYiMeng <76251800+LovelyGuYiMeng@users.noreply.github.com> Date: Mon, 2 Dec 2024 00:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20add=20gpt-4o-2024-11-20?= =?UTF-8?q?=20model=20(#4855)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update openai.ts * Update modelProvider.test.ts * Update openai.ts --- src/config/modelProviders/openai.ts | 17 +++++++++++++++++ .../modelList/selectors/modelProvider.test.ts | 1 + 2 files changed, 18 insertions(+) diff --git a/src/config/modelProviders/openai.ts b/src/config/modelProviders/openai.ts index 26aa4b53c42c..4b967c7e723c 100644 --- a/src/config/modelProviders/openai.ts +++ b/src/config/modelProviders/openai.ts @@ -46,6 +46,21 @@ const OpenAI: ModelProviderCard = { tokens: 128_000, vision: true, }, + { + 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', + tokens: 128_000, + vision: true, + }, { description: 'ChatGPT-4o 是一款动态模型,实时更新以保持当前最新版本。它结合了强大的语言理解与生成能力,适合于大规模应用场景,包括客户服务、教育和技术支持。', @@ -70,6 +85,7 @@ const OpenAI: ModelProviderCard = { input: 2.5, output: 10, }, + releasedAt: '2024-08-06', tokens: 128_000, vision: true, }, @@ -83,6 +99,7 @@ const OpenAI: ModelProviderCard = { input: 5, output: 15, }, + releasedAt: '2024-05-13', tokens: 128_000, vision: true, }, diff --git a/src/store/user/slices/modelList/selectors/modelProvider.test.ts b/src/store/user/slices/modelList/selectors/modelProvider.test.ts index 6f782c16d02a..9287d0cf97fd 100644 --- a/src/store/user/slices/modelList/selectors/modelProvider.test.ts +++ b/src/store/user/slices/modelList/selectors/modelProvider.test.ts @@ -53,6 +53,7 @@ describe('modelProviderSelectors', () => { 'o1-mini', 'o1-preview', 'gpt-4o-mini', + 'gpt-4o-2024-11-20', 'gpt-4o', 'chatgpt-4o-latest', ]);