feat(models): add Claude Sonnet 5 support - #55848
Conversation
teknium1
left a comment
There was a problem hiding this comment.
Thanks for the broad Sonnet 5 coverage. Current main already added the OpenRouter and Nous curated visibility in 76a468e51315e7e822990257b284dc8ee938ff38, so this needs a conflict-aware salvage rather than applying its catalog edits directly.
Problems
agent/usage_pricing.py:174records the standard $3/$15 rate. Anthropic’s current pricing page specifies introductory Sonnet 5 pricing through 2026-08-31: $2 input, $10 output, $0.20 cache reads, and $2.50 5-minute cache writes per MTok. The matching Bedrock entry has the same issue.tests/hermes_cli/test_anthropic_picker_curated.py:23and:30add model-name snapshots. The repository rubric requires behavioral invariants instead of tests that fail whenever curated catalog data changes.
Suggested changes
- Use the currently effective introductory pricing for both billing routes and add targeted native-Anthropic and normalized-Bedrock pricing tests.
- Keep the existing merge/order invariant test without pinning Sonnet 5 by name; add behavior coverage for the Bedrock context fallback instead.
This is an automated hermes-sweeper review.
| ): PricingEntry( | ||
| input_cost_per_million=Decimal("3.00"), | ||
| output_cost_per_million=Decimal("15.00"), | ||
| cache_read_cost_per_million=Decimal("0.30"), |
There was a problem hiding this comment.
Anthropic currently lists Sonnet 5 introductory pricing through 2026-08-31 as $2 input / $10 output / $0.20 cache read / $2.50 5-minute cache write per MTok. Please use those effective rates here and in the matching Bedrock entry; $3/$15 is the rate starting 2026-09-01.
|
Merged via PR #67932 with your commit cherry-picked onto current main — your authorship is preserved in git history (rebase merge). You were the earliest and most complete submission in the Sonnet 5 cluster, so your commit was used as the base; thanks for the thorough coverage (lists, pricing, metadata, timeouts, tests). One note: the duplicate (anthropic, claude-sonnet-5) standard-rate pricing entry was dropped in favor of #60410's introductory-pricing entry ($2/$10 through 2026-08-31), which matches Anthropic's current docs. |
PRs NousResearch#55848 and NousResearch#55853 both added claude-sonnet-5 to the anthropic and gmi curated lists; keep one entry each (newest-sonnet-first ordering under claude-fable-5, matching the existing list convention).
PR NousResearch#55848 and NousResearch#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.
Summary
Testing
Source