feat(pricing): add Claude Sonnet 5 intro pricing entry - #60410
Closed
brunz-me wants to merge 1 commit into
Closed
Conversation
Sonnet 5 launched 2026-06-30 with introductory pricing ($2/$10 per MTok input/output) through 2026-08-31, after which it reverts to $3/$15. The model had no entry in the official-docs pricing snapshot, so any session on claude-sonnet-5 was tracked as cost_status=unknown with $0 estimated cost -- silently hiding real spend from hermes insights and any downstream cost sync. Source: https://platform.claude.com/docs/en/about-claude/pricing
Contributor
|
Thanks for identifying the missing native Anthropic pricing route. Current main supports Problems
Suggested changes
Automated hermes-sweeper review. |
Contributor
1 task
randlee
pushed a commit
to randlee/hermes-agent
that referenced
this pull request
Aug 11, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Claude Sonnet 5 (
claude-sonnet-5, launched 2026-06-30) has no entry in the official-docs pricing snapshot inagent/usage_pricing.py. Any session using it getscost_status: unknownandestimated_cost_usd: 0.0, silently hiding real spend fromhermes insightsand any downstream cost-sync tooling.Fix
Adds a
PricingEntryfor("anthropic", "claude-sonnet-5")using the published introductory rate: $2/$10 per MTok in/out (cache read/write scaled the same way as sibling entries), effective through the 2026-08-31 intro window per Anthropic's pricing page. Left a comment flagging the entry needs bumping to $3/$15 after the intro window closes.Testing
python -m pytest tests/agent/test_usage_pricing.py -q— 15 passed.Source: https://platform.claude.com/docs/en/about-claude/pricing