Skip to content

Commit

Permalink
add gpt-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
bearice committed Jul 24, 2024
1 parent 7fbd177 commit b6914f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export enum OpenAIModelID {
GPT_4_32K = 'gpt-4-32k',
GPT_4_1106 = 'gpt-4-1106-preview',
GPT_4_O = 'gpt-4o',
GPT_4_O_MINI = 'gpt-4o-mini',
TEXT_EMBEDDING_ADA_002 = 'text-embedding-ada-002',
}

Expand Down Expand Up @@ -83,6 +84,13 @@ export const OpenAIModels: Record<OpenAIModelID, OpenAIModel> = {
tokenLimit: 8000,
type: OpenAIModelType.CHAT
},
[OpenAIModelID.GPT_4_O_MINI]: {
id: OpenAIModelID.GPT_4_O_MINI,
name: 'GPT-4o Mini',
maxLength: 128000,
tokenLimit: 8000,
type: OpenAIModelType.CHAT
},
[OpenAIModelID.GPT_4_TURBO]: {
id: OpenAIModelID.GPT_4_TURBO,
name: 'GPT-4-TURBO',
Expand Down

0 comments on commit b6914f2

Please sign in to comment.