Skip to content

fix: update Anthropic model metadata for claude-sonnet-4-20250514 and claude-4-sonnet-20250514#691

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
chore/autofix-issue-685
Open

fix: update Anthropic model metadata for claude-sonnet-4-20250514 and claude-4-sonnet-20250514#691
github-actions[bot] wants to merge 1 commit into
mainfrom
chore/autofix-issue-685

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

fix: update Anthropic model metadata for claude-sonnet-4-20250514 and claude-4-sonnet-20250514

Closes #685

Source issue: #685

Summary

Field Value
Provider anthropic
Primary model claude-sonnet-4-20250514
Changed models claude-sonnet-4-20250514
claude-4-sonnet-20250514
Added models None
Updated models claude-sonnet-4-20250514
claude-4-sonnet-20250514
Verification sources 1

Verified metadata

Model Display name Parent Providers Format Flavor Token limits Pricing Lifecycle
claude-sonnet-4-20250514 Claude 4 Sonnet anthropic anthropic chat input=200000, output=64000 in/out=3/15 per 1M; cache read=0.3 per 1M; cache write=3.75 per 1M date=2026-05-14; multimodal=true; reasoning=true
claude-4-sonnet-20250514 Claude 4 Sonnet (old naming format) anthropic anthropic chat input=200000, output=64000 in/out=3/15 per 1M; cache read=0.3 per 1M; cache write=3.75 per 1M deprecated=true; multimodal=true

Verification notes

Verification

Official sources consulted

  • Source 1: Anthropic models page — the legacy models table shows Claude Sonnet 4 (deprecated) with a 200K token context window (tooltip: "~150k words \ ~680k unicode characters"). This is the same tooltip text used for Claude Sonnet 4.5, Claude Opus 4.5, Claude Opus 4.1, and Claude Opus 4, all of which are listed as 200K. Only Claude Opus 4.7, Claude Opus 4.6, and Claude Sonnet 4.6 have 1M context windows.

Fields verified from official sources

Field Proposed Value Source
max_input_tokens 200000 Anthropic models page — legacy models table, context window column

sync_models (LiteLLM) cross-check

Field Proposed Value sync_models Value sync_models Key Justification
max_input_tokens 200000 1000000 anthropic.claude-sonnet-4-20250514-v1:0 (bedrock_converse provider) The official Anthropic documentation at https://platform.claude.com/docs/en/docs/about-claude/models explicitly lists Claude Sonnet 4 with a 200K context window. sync_models appears to have incorrectly propagated the 1M context window from newer models (Opus 4.6+, Sonnet 4.6) to this older model. The primary provider documentation is authoritative.

Fields not changed

All other fields (format, flavor, multimodal, pricing, max_output_tokens, reasoning, reasoning_budget, deprecation_date, available_providers, displayName) remain unchanged — they are correct in the current catalog entry.

Additional context

This model is deprecated (retirement date: June 15, 2026 per Anthropic deprecation notice), but the context window should still be correct while it remains in the catalog.

sync_models vs proposed update

sync_models cross-check found differences. Official provider verification was used for the applied values, and sync_models discrepancies are listed below for review.

Model Field Proposed update sync_models sync_models source models
claude-sonnet-4-20250514 max_input_tokens 200000 1000000 claude-sonnet-4-20250514
claude-4-sonnet-20250514 max_input_tokens 200000 1000000 claude-4-sonnet-20250514

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-proxy Ready Ready Preview, Comment May 30, 2026 6:31pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOT ISSUE] Cost update: claude-sonnet-4-20250514 context window wrong (1M → 200K)

1 participant