🪢 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(model-prices): add gpt-5.2 (#11083)
Hassieb Pakzadb13acdcefe74
diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.tsindex cf9d6ce2ed..1400c62e93 100644--- a/packages/shared/src/server/llm/types.ts+++ b/packages/shared/src/server/llm/types.ts@@ -311,6 +311,7 @@ export const openAIModels = ["gpt-4.1-mini-2025-04-14","gpt-4.1-nano","gpt-4.1-nano-2025-04-14",+ "gpt-5.2-2025-12-11","gpt-5.1","gpt-5.1-2025-11-13","gpt-5",@@ -353,6 +354,7 @@ export const openAIModels = [type OpenAIReasoningMap = Record<OpenAIModel, boolean>;export const openAIModelToReasoning: OpenAIReasoningMap = {// reasoning models+ "gpt-5.2-2025-12-11": true,"gpt-5.1": true,"gpt-5.1-2025-11-13": true,"gpt-5": true,diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.jsonindex 5924f02c6e..acc9e5d6f1 100644--- a/worker/src/constants/default-model-prices.json+++ b/worker/src/constants/default-model-prices.json@@ -3357,5 +3357,121 @@}}]+ },+ {+ "id": "cmj2n4f2a000304kz49g4c43u",+ "modelName": "gpt-5.2",+ "matchPattern": "(?i)^(gpt-5.2)$",+ "createdAt": "2025-12-12T09:00:06.513Z",+ "updatedAt": "2025-12-12T09:00:06.513Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "cmj2n4f2a000304kz49g4c43u_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 1.75e-6,+ "input_cached_tokens": 0.175e-6,+ "input_cache_read": 0.175e-6,+ "output": 14e-6,+ "output_reasoning_tokens": 14e-6,+ "output_reasoning": 14e-6+ }+ }+ ]+ },+ {+ "id": "cmj2muxg6000104kzd2tc8953",+ "modelName": "gpt-5.2-2025-12-11",+ "matchPattern": "(?i)^(gpt-5.2-2025-12-11)$",+ "createdAt": "2025-12-12T09:00:06.513Z",+ "updatedAt": "2025-12-12T09:00:06.513Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "cmj2muxg6000104kzd2tc8953_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 1.75e-6,+ "input_cached_tokens": 0.175e-6,+ "input_cache_read": 0.175e-6,+ "output": 14e-6,+ "output_reasoning_tokens": 14e-6,+ "output_reasoning": 14e-6+ }+ }+ ]+ },+ {+ "id": "cmj2n6pkq000404kz2s0b6if7",+ "modelName": "gpt-5.2-pro",+ "matchPattern": "(?i)^(gpt-5.2-pro)$",+ "createdAt": "2025-12-12T09:00:06.513Z",+ "updatedAt": "2025-12-12T09:00:06.513Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "cmj2n6pkq000404kz2s0b6if7_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 21e-6,+ "output": 168e-6,+ "output_reasoning_tokens": 168e-6,+ "output_reasoning": 168e-6+ }+ }+ ]+ },+ {+ "id": "cmj2n70oe000504kz21b76mes",+ "modelName": "gpt-5.2-pro-2025-12-11",+ "matchPattern": "(?i)^(gpt-5.2-pro-2025-12-11)$",+ "createdAt": "2025-12-12T09:00:06.513Z",+ "updatedAt": "2025-12-12T09:00:06.513Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "cmj2n70oe000504kz21b76mes_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 21e-6,+ "output": 168e-6,+ "output_reasoning_tokens": 168e-6,+ "output_reasoning": 168e-6+ }+ }+ ]}]