Skip to content

Commit

Permalink
add gpt-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
bearice committed May 14, 2024
1 parent 4e52a37 commit 52308cb
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 @@ -10,6 +10,7 @@ export enum OpenAIModelID {
GPT_4_TURBO = 'gpt-4-turbo',
GPT_4_32K = 'gpt-4-32k',
GPT_4_1106 = 'gpt-4-1106-preview',
GPT_4_O = 'gpt-4o',
TEXT_EMBEDDING_ADA_002 = 'text-embedding-ada-002',
}

Expand Down Expand Up @@ -75,6 +76,13 @@ export const OpenAIModels: Record<OpenAIModelID, OpenAIModel> = {
tokenLimit: 8000,
type: OpenAIModelType.CHAT
},
[OpenAIModelID.GPT_4_O]: {
id: OpenAIModelID.GPT_4,
name: 'GPT-4o',
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 52308cb

Please sign in to comment.