From fb1d837d073d8076883841c3fa275242869d617c Mon Sep 17 00:00:00 2001 From: Bearice Ren Date: Tue, 14 May 2024 14:00:24 +0900 Subject: [PATCH] add gpt-4o --- types/openai.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/openai.ts b/types/openai.ts index 67027082ff..dccefafaeb 100644 --- a/types/openai.ts +++ b/types/openai.ts @@ -10,6 +10,7 @@ export enum OpenAIModelID { GPT_4_TURBO = 'gpt-4-turbo', GPT_4_32K = 'gpt-4-32k', GPT_4_1106 = 'gpt-4-1106-preview', + GPT_4_O = 'gpt-4o', TEXT_EMBEDDING_ADA_002 = 'text-embedding-ada-002', } @@ -75,6 +76,13 @@ export const OpenAIModels: Record = { tokenLimit: 8000, type: OpenAIModelType.CHAT }, + [OpenAIModelID.GPT_4_O]: { + id: OpenAIModelID.GPT_4_O, + name: 'GPT-4o', + maxLength: 128000, + tokenLimit: 8000, + type: OpenAIModelType.CHAT + }, [OpenAIModelID.GPT_4_TURBO]: { id: OpenAIModelID.GPT_4_TURBO, name: 'GPT-4-TURBO',