🪢 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
chore(pricing): update default model prices (#14664)
langfuse-botb352721311ab
diff --git a/.agents/skills/add-model-price/references/provider-sources-and-price-keys.md b/.agents/skills/add-model-price/references/provider-sources-and-price-keys.mdindex 8aa67f7be6..ab84d1267a 100644--- a/.agents/skills/add-model-price/references/provider-sources-and-price-keys.md+++ b/.agents/skills/add-model-price/references/provider-sources-and-price-keys.md@@ -54,11 +54,24 @@ Always fetch pricing from the provider's official docs before editing.suspicious and verify against the official page before correcting.- **Anthropic flat large-context models** — The Anthropic pricing page lists models with"full 1M token context window at standard pricing" in a dedicated "Long context pricing"- section. As of June 2026 this list includes: Claude Fable 5, Claude Mythos 5, Claude- Mythos Preview, Claude Opus 4.8, Opus 4.7, Opus 4.6, and Sonnet 4.6. These models must- NOT have a Large Context tier in the pricing file. Models not on this list (e.g. Sonnet- 4.5, Haiku 4.5) may retain a Large Context tier if it was previously set. The Sonnet 4.6- Large Context tier was found and removed during the June 2026 audit.+ section. As of July 2026 this list includes: Claude Fable 5, Claude Mythos 5, Claude+ Mythos Preview, Claude Opus 4.8, Opus 4.7, Opus 4.6, Sonnet 5, and Sonnet 4.6. These+ models must NOT have a Large Context tier in the pricing file. Models not on this list+ (e.g. Sonnet 4.5, Haiku 4.5) may retain a Large Context tier if it was previously set.+ The Sonnet 4.6 Large Context tier was found and removed during the June 2026 audit.+- **Claude Sonnet 5 introductory pricing** — The API model ID is `claude-sonnet-5` (no+ date suffix; pinned snapshot, not an alias). Introductory pricing of $2/$10 per+ input/output MTok is in effect through August 31, 2026; standard pricing of $3/$15 will+ apply from September 1, 2026. Cache write 5m = $2.50/MTok, 1h = $4/MTok, read =+ $0.20/MTok during introductory period. Since the pricing schema cannot express+ time-based tiers, the file holds the current introductory prices; update to $3/$15 and+ cache equivalents ($3.75/$6/$0.30) after August 31, 2026. AWS Bedrock ID:+ `anthropic.claude-sonnet-5`. The model is in the flat long-context list (no Large+ Context tier). Added to pricing file and `anthropicModels` in July 2026 audit.+- **Claude Mythos Preview** — Listed in the Anthropic long-context pricing section and on+ the models page (access is invitation-only via Project Glasswing) but has NO separate+ pricing row in the main model pricing table and NO selectable-model entry in types.ts.+ Do not add a pricing entry without an explicit official price.- **OpenAI WebFetch permissions** — In CI or restricted harness runs the WebFetch tool maybe blocked by the harness permissions layer (error: "Claude requested permissions to useWebFetch, but you haven't granted it yet"), not a website-level HTTP 403. If thediff --git a/packages/shared/src/server/llm/fetchLLMCompletion.ts b/packages/shared/src/server/llm/fetchLLMCompletion.tsindex 34e1e8c954..02fdeecbb5 100644--- a/packages/shared/src/server/llm/fetchLLMCompletion.ts+++ b/packages/shared/src/server/llm/fetchLLMCompletion.ts@@ -130,6 +130,7 @@ const ANTHROPIC_ALWAYS_ADAPTIVE_THINKING_MODELS = [] as const;const ANTHROPIC_SAMPLING_PARAM_NORMALIZATION_MODELS = [+ "claude-sonnet-5","claude-fable-5","claude-mythos-5","claude-opus-4-8",diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.tsindex 418fb55b2c..246a17563e 100644--- a/packages/shared/src/server/llm/types.ts+++ b/packages/shared/src/server/llm/types.ts@@ -427,6 +427,7 @@ export type OpenAIModel = (typeof openAIModels)[number];// WARNING: The first entry in the array is chosen as the default model to add LLM API keysexport const anthropicModels = ["claude-sonnet-4-5-20250929",+ "claude-sonnet-5","claude-fable-5","claude-mythos-5","claude-haiku-4-5-20251001",diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.jsonindex 9fd65a6b58..0077d1749c 100644--- a/worker/src/constants/default-model-prices.json+++ b/worker/src/constants/default-model-prices.json@@ -3476,6 +3476,37 @@}]},+ {+ "id": "7c2e1f89-3a54-4b67-9d21-58e634b79a0c",+ "modelName": "claude-sonnet-5",+ "matchPattern": "(?i)^((anthropic\\/)?claude-sonnet-5|(eu\\.|us\\.|apac\\.|global\\.)?anthropic\\.claude-sonnet-5(-v1(:0)?)?)$",+ "createdAt": "2026-07-01T00:00:00.000Z",+ "updatedAt": "2026-07-01T00:00:00.000Z",+ "tokenizerConfig": null,+ "tokenizerId": "claude",+ "pricingTiers": [+ {+ "id": "7c2e1f89-3a54-4b67-9d21-58e634b79a0c_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 2e-6,+ "input_tokens": 2e-6,+ "output": 10e-6,+ "output_tokens": 10e-6,+ "cache_creation_input_tokens": 2.5e-6,+ "input_cache_creation": 2.5e-6,+ "input_cache_creation_5m": 2.5e-6,+ "input_cache_creation_1h": 4e-6,+ "cache_read_input_tokens": 2e-7,+ "input_cached_tokens": 2e-7,+ "input_cache_read": 2e-7+ }+ }+ ]+ },{"id": "cmig1hb7i000104l72qrzgc6h","modelName": "gemini-2.5-pro",