From 8a7464168f199eff3896235363e421421d250e8b Mon Sep 17 00:00:00 2001 From: Ryan526 Date: Thu, 12 Sep 2024 15:55:28 -0400 Subject: [PATCH] Update models.svelte Added o1-preview & o1-mini to models.svelte --- src/lib/providers/openai/models.svelte | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/lib/providers/openai/models.svelte b/src/lib/providers/openai/models.svelte index ede0ad12..1dc9365a 100644 --- a/src/lib/providers/openai/models.svelte +++ b/src/lib/providers/openai/models.svelte @@ -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 @@ -109,6 +121,8 @@ export const chatModels : Record = { '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 },