Add O3 mini model (#1612)

This commit is contained in:
Peter Goldstein
2025-02-03 22:34:22 -05:00
committed by GitHub
parent d90d8959a5
commit 1892e1ce1d
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@llamaindex/openai": patch
---
Add O3 mini model
+10
View File
@@ -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 {