Skip to content

Commit

Permalink
Update models.svelte
Browse files Browse the repository at this point in the history
Added o1-preview & o1-mini to models.svelte
  • Loading branch information
Ryan526 authored Sep 12, 2024
1 parent c2e2a53 commit 8a74641
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/lib/providers/openai/models.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ const gpt4o = {
completion: 0.000015, // $0.015 per 1000 tokens completion
max: 131072 // 128k max token buffer
}
const o1preview = {
...chatModelBase,
prompt: 0.000015, // $0.015 per 1000 tokens prompt
completion: 0.00006, // $0.06 per 1000 tokens completion
max: 32768 // 32k max token buffer
}
const o1mini = {
...chatModelBase,
prompt: 0.000003, // $0.003 per 1000 tokens prompt
completion: 0.000012, // $0.012 per 1000 tokens completion
max: 65536 // 65k max token buffer
}
const gpt4omini = {
...chatModelBase,
prompt: 0.00000015, // $0.00015 per 1000 tokens prompt
Expand Down Expand Up @@ -109,6 +121,8 @@ export const chatModels : Record<string, ModelDetail> = {
'gpt-3.5-turbo-16k-0613': { ...gpt3516k },
'gpt-4': { ...gpt4 },
'gpt-4o': { ...gpt4o },
'o1-preview': { ...o1preview },
'o1-mini': { ...o1mini },
'gpt-4o-mini': { ...gpt4omini },
'gpt-4o-mini-2024-07-18': { ...gpt4omini },
'gpt-4-turbo-preview': { ...gpt4128kpreview },
Expand Down

0 comments on commit 8a74641

Please sign in to comment.