From 4e52a370c3cc939d408d34f842d2b69075a2074f Mon Sep 17 00:00:00 2001 From: Bearice Ren Date: Fri, 12 Apr 2024 12:03:35 +0900 Subject: [PATCH] update models --- types/openai.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/types/openai.ts b/types/openai.ts index 09e22a0df1..67027082ff 100644 --- a/types/openai.ts +++ b/types/openai.ts @@ -7,6 +7,7 @@ export enum OpenAIModelID { GPT_3_5_AZ = 'gpt-35-turbo', GPT_3_5_16K_AZ = 'gpt-35-turbo-16k', GPT_4 = 'gpt-4', + GPT_4_TURBO = 'gpt-4-turbo', GPT_4_32K = 'gpt-4-32k', GPT_4_1106 = 'gpt-4-1106-preview', TEXT_EMBEDDING_ADA_002 = 'text-embedding-ada-002', @@ -74,11 +75,18 @@ export const OpenAIModels: Record = { tokenLimit: 8000, type: OpenAIModelType.CHAT }, + [OpenAIModelID.GPT_4_TURBO]: { + id: OpenAIModelID.GPT_4_TURBO, + name: 'GPT-4-TURBO', + maxLength: 128000, + tokenLimit: 8000, + type: OpenAIModelType.CHAT + }, [OpenAIModelID.GPT_4_1106]: { id: OpenAIModelID.GPT_4_1106, name: 'GPT-4-1106', - maxLength: 24000, - tokenLimit: 8000, + maxLength: 128000, + tokenLimit: 4096, type: OpenAIModelType.CHAT }, [OpenAIModelID.GPT_4_32K]: {