From fcca95fe1817d44caef2486ee50baaa850f4e334 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 17 Apr 2025 01:30:05 +0800 Subject: [PATCH] Add OpenAI o3 & 4o-mini Reference: - https://platform.openai.com/docs/models/o3 - https://platform.openai.com/docs/models/o4-mini - https://openai.com/index/introducing-o3-and-o4-mini/ --- .changeset/young-pots-bow.md | 5 +++++ src/shared/api.ts | 39 ++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .changeset/young-pots-bow.md diff --git a/.changeset/young-pots-bow.md b/.changeset/young-pots-bow.md new file mode 100644 index 0000000000..46cecb6135 --- /dev/null +++ b/.changeset/young-pots-bow.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Add OpenAI o3 & 4o-mini diff --git a/src/shared/api.ts b/src/shared/api.ts index 0284f2bca4..e9e5aef5ee 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -778,6 +778,45 @@ export const openAiNativeModels = { outputPrice: 0.4, cacheReadsPrice: 0.025, }, + o3: { + maxTokens: 100_000, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 10.0, + outputPrice: 40.0, + cacheReadsPrice: 2.5, + }, + "o4-mini": { + maxTokens: 100_000, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 1.1, + outputPrice: 4.4, + cacheReadsPrice: 0.275, + reasoningEffort: "medium", + }, + "o4-mini-high": { + maxTokens: 100_000, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 1.1, + outputPrice: 4.4, + cacheReadsPrice: 0.275, + reasoningEffort: "high", + }, + "o4-mini-low": { + maxTokens: 100_000, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 1.1, + outputPrice: 4.4, + cacheReadsPrice: 0.275, + reasoningEffort: "low", + }, "o3-mini": { maxTokens: 100_000, contextWindow: 200_000,