gpt-4o-mini

This commit is contained in:
Nate Sesti 2024-07-19 09:01:18 -07:00
parent 99947c7b83
commit 3371e126cd
7 changed files with 32 additions and 5 deletions

View file

@ -523,6 +523,7 @@ declare global {
| "gpt-4-32k"
| "gpt-4-turbo"
| "gpt-4o"
| "gpt-4o-mini"
| "gpt-4-turbo-preview"
| "gpt-4-vision-preview"
// Mistral

1
core/index.d.ts vendored
View file

@ -598,6 +598,7 @@ export type ModelName =
| "gpt-3.5-turbo-0613"
| "gpt-4-32k"
| "gpt-4o"
| "gpt-4o-mini"
| "gpt-4-turbo"
| "gpt-4-turbo-preview"
| "gpt-4-vision-preview"

View file

@ -61,6 +61,7 @@ const MODEL_SUPPORTS_IMAGES: string[] = [
"llava",
"gpt-4-turbo",
"gpt-4o",
"gpt-4o-mini",
"gpt-4-vision",
"claude-3",
"gemini-ultra",

View file

@ -20,6 +20,7 @@ const CONTEXT_LENGTH_FOR_MODEL: { [name: string]: number } = {
"gpt-4-32k": GPT_4_CTX_LEN,
"gpt-4-turbo-preview": GPT_4_CTX_LEN,
"gpt-4o": GPT_4_CTX_LEN,
"gpt-4o-mini": GPT_4_CTX_LEN,
"gpt-4-vision": GPT_4_CTX_LEN,
"gpt-4-0125-preview": GPT_4_CTX_LEN,
"gpt-4-1106-preview": GPT_4_CTX_LEN,

View file

@ -481,6 +481,7 @@
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-4o",
"gpt-4o-mini",
"gpt-4",
"gpt-3.5-turbo-0613",
"gpt-4-32k",
@ -581,6 +582,7 @@
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-4o",
"gpt-4o-mini",
"gpt-4",
"gpt-3.5-turbo-0613",
"gpt-4-32k",
@ -1095,6 +1097,7 @@
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-4o",
"gpt-4o-mini",
"gpt-4",
"gpt-3.5-turbo-0613",
"gpt-4-32k",

View file

@ -484,6 +484,21 @@ export const models: { [key: string]: ModelPackage } = {
icon: "openai.png",
isOpenSource: false,
},
gpt4omini: {
title: "GPT-4o Mini",
description:
"A model at less than half the price of gpt-3.5-turbo, but near gpt-4 in capabilities.",
params: {
model: "gpt-4o-mini",
contextLength: 128_000,
title: "GPT-4o mini",
systemMessage:
"You are an expert software developer. You give helpful and concise responses.",
},
providerOptions: ["openai"],
icon: "openai.png",
isOpenSource: false,
},
gpt35turbo: {
title: "GPT-3.5-Turbo",
description:

View file

@ -44,26 +44,31 @@ export const OpenAiLlms: LlmInfo[] = [
{
model: "gpt-4-turbo-preview",
displayName: "GPT-4 Turbo Preview",
contextLength: 4096,
contextLength: 128_000,
},
{
model: "gpt-4o",
displayName: "GPT-4o",
contextLength: 4096,
contextLength: 128_000,
},
{
model: "gpt-4o-mini",
displayName: "GPT-4o Mini",
contextLength: 128_000,
},
{
model: "gpt-4-vision",
displayName: "GPT-4 Vision",
contextLength: 4096,
contextLength: 128_000,
},
{
model: "gpt-4-0125-preview",
displayName: "GPT-4 (0125 Preview)",
contextLength: 4096,
contextLength: 128_000,
},
{
model: "gpt-4-1106-preview",
displayName: "GPT-4 (1106 Preview)",
contextLength: 4096,
contextLength: 128_000,
},
];