From 3a30543739d9cc693c2ad0d3dc2f356e8a995340 Mon Sep 17 00:00:00 2001 From: Sachintha Gamage Date: Wed, 14 Aug 2024 10:27:38 +0530 Subject: [PATCH] add: gpt-4o-2024-08-06 --- src/constants/chat.ts | 6 ++++++ src/types/chat.ts | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/constants/chat.ts b/src/constants/chat.ts index f806ef1b6..bb9de1a6a 100644 --- a/src/constants/chat.ts +++ b/src/constants/chat.ts @@ -30,6 +30,7 @@ export const modelOptions: ModelOptions[] = [ 'gpt-4-turbo-2024-04-09', 'gpt-4o', 'gpt-4o-2024-05-13', + 'gpt-4o-2024-08-06', // 'gpt-3.5-turbo-0301', // 'gpt-4-0314', // 'gpt-4-32k-0314', @@ -57,6 +58,7 @@ export const modelMaxToken = { 'gpt-4-turbo-2024-04-09': 128000, 'gpt-4o': 128000, 'gpt-4o-2024-05-13': 128000, + 'gpt-4o-2024-08-06': 128000, }; export const modelCost = { @@ -136,6 +138,10 @@ export const modelCost = { prompt: { price: 0.005, unit: 1000 }, completion: { price: 0.015, unit: 1000 }, }, + 'gpt-4o-2024-08-06': { + prompt: { price: 0.0025, unit: 1000 }, + completion: { price: 0.01, unit: 1000 }, + }, }; export const defaultUserMaxToken = 4000; diff --git a/src/types/chat.ts b/src/types/chat.ts index 5b706952a..f16f29d93 100644 --- a/src/types/chat.ts +++ b/src/types/chat.ts @@ -61,7 +61,8 @@ export type ModelOptions = | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-1106' - | 'gpt-3.5-turbo-0125'; + | 'gpt-3.5-turbo-0125' + | 'gpt-4o-2024-08-06'; // | 'gpt-3.5-turbo-0301'; // | 'gpt-4-0314' // | 'gpt-4-32k-0314'