From f6abfc05be0c84defa74229e08756acd1e4538db Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 20 Jul 2026 01:06:15 -0700 Subject: [PATCH] fix: keep Sonnet 5 intro pricing over duplicate standard-rate entry PR #55848 and #60410 both added an (anthropic, claude-sonnet-5) pricing key; the later duplicate (/$15 standard rate) would silently win in the dict literal. Keep the intro pricing entry ($2/$10 through 2026-08-31 per Anthropic docs) which carries the reversion note. --- agent/usage_pricing.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/agent/usage_pricing.py b/agent/usage_pricing.py index 31baee0a8ef9..cd61af18e91c 100644 --- a/agent/usage_pricing.py +++ b/agent/usage_pricing.py @@ -249,18 +249,6 @@ _OFFICIAL_DOCS_PRICING: Dict[tuple[str, str], PricingEntry] = { source_url="https://platform.claude.com/docs/en/about-claude/pricing", pricing_version="anthropic-pricing-2026-05", ), - ( - "anthropic", - "claude-sonnet-5", - ): PricingEntry( - input_cost_per_million=Decimal("3.00"), - output_cost_per_million=Decimal("15.00"), - cache_read_cost_per_million=Decimal("0.30"), - cache_write_cost_per_million=Decimal("3.75"), - source="official_docs_snapshot", - source_url="https://platform.claude.com/docs/en/about-claude/pricing", - pricing_version="anthropic-pricing-2026-06", - ), ( "anthropic", "claude-sonnet-4-6",