Skip to content

Commit

Permalink
Add new model: GPT-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
morgan9e committed Jul 18, 2024
1 parent afa0c2d commit b91750d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/providers/openai/models.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ const gpt4o = {
completion: 0.000015, // $0.015 per 1000 tokens completion
max: 131072 // 128k max token buffer
}
const gpt4omini = {
...chatModelBase,
prompt: 0.00000015, // $0.00015 per 1000 tokens prompt
completion: 0.00000060, // $0.00060 per 1000 tokens completion
max: 131072 // 128k max token buffer
}
const gpt432k = {
...chatModelBase,
prompt: 0.00006, // $0.06 per 1000 tokens prompt
Expand All @@ -103,6 +109,8 @@ export const chatModels : Record<string, ModelDetail> = {
'gpt-3.5-turbo-16k-0613': { ...gpt3516k },
'gpt-4': { ...gpt4 },
'gpt-4o': { ...gpt4o },
'gpt-4o-mini': { ...gpt4omini },
'gpt-4o-mini-2024-07-18': { ...gpt4omini },
'gpt-4-turbo-preview': { ...gpt4128kpreview },
'gpt-4-turbo-2024-04-09': { ...gpt4128kpreview },
'gpt-4-0314': { ...gpt4 },
Expand Down

0 comments on commit b91750d

Please sign in to comment.