From 1892e1ce1d9a2751e36d198873b4920e0a4091cf Mon Sep 17 00:00:00 2001 From: Peter Goldstein <peter.goldstein@hearst.com> Date: Mon, 3 Feb 2025 22:34:22 -0500 Subject: [PATCH] Add O3 mini model (#1612) --- .changeset/smart-cameras-run.md | 5 +++++ packages/providers/openai/src/llm.ts | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .changeset/smart-cameras-run.md diff --git a/.changeset/smart-cameras-run.md b/.changeset/smart-cameras-run.md new file mode 100644 index 000000000..b8620f8cb --- /dev/null +++ b/.changeset/smart-cameras-run.md @@ -0,0 +1,5 @@ +--- +"@llamaindex/openai": patch +--- + +Add O3 mini model diff --git a/packages/providers/openai/src/llm.ts b/packages/providers/openai/src/llm.ts index 492db0990..f15d601b9 100644 --- a/packages/providers/openai/src/llm.ts +++ b/packages/providers/openai/src/llm.ts @@ -106,6 +106,15 @@ export const O1_MODELS = { }, }; +export const O3_MODELS = { + "o3-mini": { + contextWindow: 200000, + }, + "o3-mini-2025-01-31": { + contextWindow: 200000, + }, +}; + /** * We currently support GPT-3.5 and GPT-4 models */ @@ -113,6 +122,7 @@ export const ALL_AVAILABLE_OPENAI_MODELS = { ...GPT4_MODELS, ...GPT35_MODELS, ...O1_MODELS, + ...O3_MODELS, } satisfies Record<ChatModel, { contextWindow: number }>; export function isFunctionCallingModel(llm: LLM): llm is OpenAI { -- GitLab