🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat(models): add gpt-5.4 (#12420)
Nimar16e6affe8229
diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.tsindex 60b9fddef5..74f3f4e2ad 100644--- a/packages/shared/src/server/llm/types.ts+++ b/packages/shared/src/server/llm/types.ts@@ -312,6 +312,10 @@ export const openAIModels = ["gpt-4.1-mini-2025-04-14","gpt-4.1-nano","gpt-4.1-nano-2025-04-14",+ "gpt-5.4",+ "gpt-5.4-2026-03-05",+ "gpt-5.4-pro",+ "gpt-5.4-pro-2026-03-05","gpt-5.2-2025-12-11","gpt-5.1","gpt-5.1-2025-11-13",@@ -355,6 +359,10 @@ export const openAIModels = [type OpenAIReasoningMap = Record<OpenAIModel, boolean>;export const openAIModelToReasoning: OpenAIReasoningMap = {// reasoning models+ "gpt-5.4": true,+ "gpt-5.4-2026-03-05": true,+ "gpt-5.4-pro": true,+ "gpt-5.4-pro-2026-03-05": true,"gpt-5.2-2025-12-11": true,"gpt-5.1": true,"gpt-5.1-2025-11-13": true,diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.jsonindex 6a3e1ad3eb..486c6c512b 100644--- a/worker/src/constants/default-model-prices.json+++ b/worker/src/constants/default-model-prices.json@@ -3656,6 +3656,122 @@}]},+ {+ "id": "bee3c111-fe6f-4641-8775-73ea33b29fca",+ "modelName": "gpt-5.4",+ "matchPattern": "(?i)^(openai\/)?(gpt-5.4)$",+ "createdAt": "2026-03-05T00:00:00.000Z",+ "updatedAt": "2026-03-05T00:00:00.000Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "bee3c111-fe6f-4641-8775-73ea33b29fca_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 2.5e-6,+ "input_cached_tokens": 0.25e-6,+ "input_cache_read": 0.25e-6,+ "output": 15e-6,+ "output_reasoning_tokens": 15e-6,+ "output_reasoning": 15e-6+ }+ }+ ]+ },+ {+ "id": "68d32054-8748-4d25-9f64-d78d483601bd",+ "modelName": "gpt-5.4-pro",+ "matchPattern": "(?i)^(openai\/)?(gpt-5.4-pro)$",+ "createdAt": "2026-03-05T00:00:00.000Z",+ "updatedAt": "2026-03-05T00:00:00.000Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "68d32054-8748-4d25-9f64-d78d483601bd_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 30e-6,+ "output": 180e-6,+ "output_reasoning_tokens": 180e-6,+ "output_reasoning": 180e-6+ }+ }+ ]+ },+ {+ "id": "22dfc7e1-1fe1-4286-b1af-928635e7ecb9",+ "modelName": "gpt-5.4-2026-03-05",+ "matchPattern": "(?i)^(openai\/)?(gpt-5.4-2026-03-05)$",+ "createdAt": "2026-03-05T00:00:00.000Z",+ "updatedAt": "2026-03-05T00:00:00.000Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "22dfc7e1-1fe1-4286-b1af-928635e7ecb9_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 2.5e-6,+ "input_cached_tokens": 0.25e-6,+ "input_cache_read": 0.25e-6,+ "output": 15e-6,+ "output_reasoning_tokens": 15e-6,+ "output_reasoning": 15e-6+ }+ }+ ]+ },+ {+ "id": "d8873413-05ab-4374-8223-e8c9005c4a0e",+ "modelName": "gpt-5.4-pro-2026-03-05",+ "matchPattern": "(?i)^(openai\/)?(gpt-5.4-pro-2026-03-05)$",+ "createdAt": "2026-03-05T00:00:00.000Z",+ "updatedAt": "2026-03-05T00:00:00.000Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "d8873413-05ab-4374-8223-e8c9005c4a0e_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 30e-6,+ "output": 180e-6,+ "output_reasoning_tokens": 180e-6,+ "output_reasoning": 180e-6+ }+ }+ ]+ },{"id": "cmjfoeykl000004l8ffzra8c7","modelName": "gemini-3-flash-preview",