Skip to content

Commit 74bf99f

Browse files
authored
Merge pull request #5057 from PeterDaveHello/support-gpt-4o-mini
Add GPT-4o mini support
2 parents b16d018 + 9caf820 commit 74bf99f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/constant.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ export const KnowledgeCutOffDate: Record<string, string> = {
182182
"gpt-4-turbo-preview": "2023-12",
183183
"gpt-4o": "2023-10",
184184
"gpt-4o-2024-05-13": "2023-10",
185+
"gpt-4o-mini": "2023-10",
186+
"gpt-4o-mini-2024-07-18": "2023-10",
185187
"gpt-4-vision-preview": "2023-04",
186188
// After improvements,
187189
// it's now easier to add "KnowledgeCutOffDate" instead of stupid hardcoding it, as was done previously.
@@ -201,6 +203,8 @@ const openaiModels = [
201203
"gpt-4-turbo-preview",
202204
"gpt-4o",
203205
"gpt-4o-2024-05-13",
206+
"gpt-4o-mini",
207+
"gpt-4o-mini-2024-07-18",
204208
"gpt-4-vision-preview",
205209
"gpt-4-turbo-2024-04-09",
206210
"gpt-4-1106-preview",

app/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ export function isVisionModel(model: string) {
256256
"gemini-1.5-pro",
257257
"gemini-1.5-flash",
258258
"gpt-4o",
259+
"gpt-4o-mini",
259260
];
260261
const isGpt4Turbo =
261262
model.includes("gpt-4-turbo") && !model.includes("preview");

0 commit comments

Comments
 (0)