Skip to content

Commit 619fa51

Browse files
committed
add gpt-4.1 family support
1 parent 48469bd commit 619fa51

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

app/constant.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ 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",
420426
"gpt-4o": "2023-10",
421427
"gpt-4o-2024-05-13": "2023-10",
422428
"gpt-4o-2024-08-06": "2023-10",
@@ -458,6 +464,7 @@ export const DEFAULT_TTS_VOICES = [
458464
export const VISION_MODEL_REGEXES = [
459465
/vision/,
460466
/gpt-4o/,
467+
/gpt-4\.1/,
461468
/claude-3/,
462469
/gemini-1\.5/,
463470
/gemini-exp/,
@@ -485,6 +492,12 @@ const openaiModels = [
485492
"gpt-4-32k-0613",
486493
"gpt-4-turbo",
487494
"gpt-4-turbo-preview",
495+
"gpt-4.1",
496+
"gpt-4.1-2025-04-14",
497+
"gpt-4.1-mini",
498+
"gpt-4.1-mini-2025-04-14",
499+
"gpt-4.1-nano",
500+
"gpt-4.1-nano-2025-04-14",
488501
"gpt-4o",
489502
"gpt-4o-2024-05-13",
490503
"gpt-4o-2024-08-06",

0 commit comments

Comments
 (0)