Skip to content

Commit

Permalink
feat: add gpt-4o-2024-08-06
Browse files Browse the repository at this point in the history
  • Loading branch information
paradite committed Aug 17, 2024
1 parent 5915c3c commit 27e152c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llm-info",
"version": "1.0.10",
"version": "1.0.11",
"description": "Information on LLM models, context window token limit, output token limit, pricing and more",
"main": "dist/index.js",
"type": "module",
Expand Down
1 change: 1 addition & 0 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export enum ModelEnum {
'gpt-4o' = 'gpt-4o',
'gpt-4o-64k-output-alpha' = 'gpt-4o-64k-output-alpha',
'gpt-4o-mini' = 'gpt-4o-mini',
'gpt-4o-2024-08-06' = 'gpt-4o-2024-08-06',
'claude-3-5-sonnet-20240620' = 'claude-3-5-sonnet-20240620',
}

Expand Down
11 changes: 11 additions & 0 deletions src/modelInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ export const ModelInfoMap: Record<ModelLike, ModelInfo> = {
'OpenAI is offering an experimental version of GPT-4o with a maximum of 64K output tokens per request.',
notesUrl: 'https://openai.com/gpt-4o-long-output/',
},
[ModelEnum['gpt-4o-2024-08-06']]: {
name: 'GPT-4o 08-06',
provider: AI_PROVIDERS.OPENAI,
contextWindowTokenLimit: 128000,
outputTokenLimit: 16384,
pricePerMillionInputTokens: 2.5,
pricePerMillionOutputTokens: 10,
tokenizerId: 'Xenova/gpt-4o',
notes:
'This model is a version of GPT-4o that was released on August 6, 2024. It has a maximum of 16K output tokens per request.',
},
[ModelEnum['claude-3-5-sonnet-20240620']]: {
name: 'Claude 3.5 Sonnet',
provider: AI_PROVIDERS.ANTHROPIC,
Expand Down
2 changes: 2 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('llm', () => {
'gpt-4o',
'gpt-4o-64k-output-alpha',
'gpt-4o-mini',
'gpt-4o-2024-08-06',
'claude-3-5-sonnet-20240620',
]);
});
Expand All @@ -25,6 +26,7 @@ describe('llm', () => {
'gpt-4o',
'gpt-4o-64k-output-alpha',
'gpt-4o-mini',
'gpt-4o-2024-08-06',
'claude-3-5-sonnet-20240620',
'chatgpt',
]);
Expand Down

0 comments on commit 27e152c

Please sign in to comment.