From 619fa519c0ea5345c8c32e7da544c5231e10a2ae Mon Sep 17 00:00:00 2001 From: QwQwQ <47418664+stephen-zeng@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:47:15 +0800 Subject: [PATCH 1/2] add gpt-4.1 family support --- app/constant.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/constant.ts b/app/constant.ts index c1b135485..acabc9a16 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -417,6 +417,12 @@ export const KnowledgeCutOffDate: Record = { "gpt-4-turbo": "2023-12", "gpt-4-turbo-2024-04-09": "2023-12", "gpt-4-turbo-preview": "2023-12", + "gpt-4.1": "2024-06", + "gpt-4.1-2025-04-14": "2024-06", + "gpt-4.1-mini": "2024-06", + "gpt-4.1-mini-2025-04-14": "2024-06", + "gpt-4.1-nano": "2024-06", + "gpt-4.1-nano-2025-04-14": "2024-06", "gpt-4o": "2023-10", "gpt-4o-2024-05-13": "2023-10", "gpt-4o-2024-08-06": "2023-10", @@ -458,6 +464,7 @@ export const DEFAULT_TTS_VOICES = [ export const VISION_MODEL_REGEXES = [ /vision/, /gpt-4o/, + /gpt-4\.1/, /claude-3/, /gemini-1\.5/, /gemini-exp/, @@ -485,6 +492,12 @@ const openaiModels = [ "gpt-4-32k-0613", "gpt-4-turbo", "gpt-4-turbo-preview", + "gpt-4.1", + "gpt-4.1-2025-04-14", + "gpt-4.1-mini", + "gpt-4.1-mini-2025-04-14", + "gpt-4.1-nano", + "gpt-4.1-nano-2025-04-14", "gpt-4o", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", From 1d0038f17d87b82eca8cdd5d199791db20fc4b26 Mon Sep 17 00:00:00 2001 From: QwQwQ <47418664+stephen-zeng@users.noreply.github.com> Date: Wed, 16 Apr 2025 22:10:47 +0800 Subject: [PATCH 2/2] add gpt-4.5-preview support --- app/constant.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/constant.ts b/app/constant.ts index acabc9a16..422c42629 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -423,6 +423,8 @@ export const KnowledgeCutOffDate: Record = { "gpt-4.1-mini-2025-04-14": "2024-06", "gpt-4.1-nano": "2024-06", "gpt-4.1-nano-2025-04-14": "2024-06", + "gpt-4.5-preview": "2023-10", + "gpt-4.5-preview-2025-02-27": "2023-10", "gpt-4o": "2023-10", "gpt-4o-2024-05-13": "2023-10", "gpt-4o-2024-08-06": "2023-10", @@ -498,6 +500,8 @@ const openaiModels = [ "gpt-4.1-mini-2025-04-14", "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", + "gpt-4.5-preview", + "gpt-4.5-preview-2025-02-27", "gpt-4o", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06",