From 2cdcc5ffcdc496ebcd89a5d0021d504e3fa6f1d0 Mon Sep 17 00:00:00 2001 From: jelveh Date: Wed, 16 Apr 2025 11:06:57 -0700 Subject: [PATCH] Add `o3` and `o4-mini` models --- .../puterai/OpenAICompletionService.js | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/backend/src/modules/puterai/OpenAICompletionService.js b/src/backend/src/modules/puterai/OpenAICompletionService.js index 75b1d65e4..406b97801 100644 --- a/src/backend/src/modules/puterai/OpenAICompletionService.js +++ b/src/backend/src/modules/puterai/OpenAICompletionService.js @@ -128,6 +128,15 @@ class OpenAICompletionService extends BaseService { // output: 6000, // }, // } + { + id: 'o1', + cost: { + currency: 'usd-cents', + tokens: 1_000_000, + input: 1500, + output: 6000, + } + }, { id: 'o1-mini', cost: { @@ -147,12 +156,12 @@ class OpenAICompletionService extends BaseService { } }, { - id: 'o1', + id: 'o3', cost: { currency: 'usd-cents', tokens: 1_000_000, - input: 1500, - output: 6000, + input: 1000, + output: 4000, } }, { @@ -164,6 +173,15 @@ class OpenAICompletionService extends BaseService { output: 440, } }, + { + id: 'o4-mini', + cost: { + currency: 'usd-cents', + tokens: 1_000_000, + input: 110, + output: 440, + } + }, { id: 'gpt-4.1', cost: {