From a95a4cb35c02ec2a268344bdf0eaf7061f52da44 Mon Sep 17 00:00:00 2001 From: XiaomaiTX Date: Thu, 8 Aug 2024 15:20:17 +0800 Subject: [PATCH] feat: support model `gpt-4o-2024-08-06` --- app/src/admin/channel.ts | 1 + app/src/admin/datasets/charge.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/src/admin/channel.ts b/app/src/admin/channel.ts index 09085cb4..b92c6010 100644 --- a/app/src/admin/channel.ts +++ b/app/src/admin/channel.ts @@ -116,6 +116,7 @@ export const ChannelInfos: Record = { "gpt-4-32k-0613", "gpt-4o", "gpt-4o-2024-05-13", + "gpt-4o-2024-08-06", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "dalle", diff --git a/app/src/admin/datasets/charge.ts b/app/src/admin/datasets/charge.ts index 77e30a40..419e768f 100644 --- a/app/src/admin/datasets/charge.ts +++ b/app/src/admin/datasets/charge.ts @@ -73,6 +73,11 @@ export const pricing: PricingDataset = [ input: 0.005, output: 0.015, }, + { + models: ["gpt-4o-2024-08-06"], + input: 0.0025, + output: 0.01, + }, { models: ["gpt-4o-mini", "gpt-4o-mini-2024-07-18"], input: 0.00015,