Skip to content
Snippets Groups Projects
Unverified Commit 1892e1ce authored by Peter Goldstein's avatar Peter Goldstein Committed by GitHub
Browse files

Add O3 mini model (#1612)

parent d90d8959
No related branches found
No related tags found
No related merge requests found
---
"@llamaindex/openai": patch
---
Add O3 mini model
...@@ -106,6 +106,15 @@ export const O1_MODELS = { ...@@ -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 * We currently support GPT-3.5 and GPT-4 models
*/ */
...@@ -113,6 +122,7 @@ export const ALL_AVAILABLE_OPENAI_MODELS = { ...@@ -113,6 +122,7 @@ export const ALL_AVAILABLE_OPENAI_MODELS = {
...GPT4_MODELS, ...GPT4_MODELS,
...GPT35_MODELS, ...GPT35_MODELS,
...O1_MODELS, ...O1_MODELS,
...O3_MODELS,
} satisfies Record<ChatModel, { contextWindow: number }>; } satisfies Record<ChatModel, { contextWindow: number }>;
export function isFunctionCallingModel(llm: LLM): llm is OpenAI { export function isFunctionCallingModel(llm: LLM): llm is OpenAI {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment