Skip to content

Commit 11b37c1

Browse files
authored
Merge pull request #6450 from stephen-zeng/main
Add gpt-4.1 family & gpt-4.5-preview support
2 parents 48469bd + 1d0038f commit 11b37c1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/constant.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,14 @@ export const KnowledgeCutOffDate: Record<string, string> = {
417417
"gpt-4-turbo": "2023-12",
418418
"gpt-4-turbo-2024-04-09": "2023-12",
419419
"gpt-4-turbo-preview": "2023-12",
420+
"gpt-4.1": "2024-06",
421+
"gpt-4.1-2025-04-14": "2024-06",
422+
"gpt-4.1-mini": "2024-06",
423+
"gpt-4.1-mini-2025-04-14": "2024-06",
424+
"gpt-4.1-nano": "2024-06",
425+
"gpt-4.1-nano-2025-04-14": "2024-06",
426+
"gpt-4.5-preview": "2023-10",
427+
"gpt-4.5-preview-2025-02-27": "2023-10",
420428
"gpt-4o": "2023-10",
421429
"gpt-4o-2024-05-13": "2023-10",
422430
"gpt-4o-2024-08-06": "2023-10",
@@ -458,6 +466,7 @@ export const DEFAULT_TTS_VOICES = [
458466
export const VISION_MODEL_REGEXES = [
459467
/vision/,
460468
/gpt-4o/,
469+
/gpt-4\.1/,
461470
/claude-3/,
462471
/gemini-1\.5/,
463472
/gemini-exp/,
@@ -485,6 +494,14 @@ const openaiModels = [
485494
"gpt-4-32k-0613",
486495
"gpt-4-turbo",
487496
"gpt-4-turbo-preview",
497+
"gpt-4.1",
498+
"gpt-4.1-2025-04-14",
499+
"gpt-4.1-mini",
500+
"gpt-4.1-mini-2025-04-14",
501+
"gpt-4.1-nano",
502+
"gpt-4.1-nano-2025-04-14",
503+
"gpt-4.5-preview",
504+
"gpt-4.5-preview-2025-02-27",
488505
"gpt-4o",
489506
"gpt-4o-2024-05-13",
490507
"gpt-4o-2024-08-06",

0 commit comments

Comments
 (0)