Repository navigation
Fix direct Anthropic claude-sonnet-5-5 cache-read price ($0.20 → $0.10 per 1M tokens) - #69072
Conversation
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
claude-sonnet-5-5 cache-read price ($0.20 → $0.10 per 1M tokens)
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
🟢 Approval recommended
The narrow correction matches the issue requirements, updates both catalogues consistently, and aligns the existing test expectation.
0 open findings
What changed in this PR
Corrects direct Anthropic Sonnet 5.5 cached-token cost estimates in gh-aw.
Changes:
- Sets cache-read pricing to $0.10 per million tokens in both catalogues.
- Updates the existing test expectation and adds a patch changeset.
| File | Description |
|---|---|
pkg/cli/model_costs_test.go |
Updates the expected cache-read rate. |
pkg/cli/data/models.json |
Corrects CLI catalogue pricing. |
actions/setup/js/models.json |
Applies the matching runtime catalogue correction. |
.changeset/fix-anthropic-sonnet-5-5-cache-read-price.md |
Documents the patch release fix. |
🧠 Review effort: Max
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Verdict
I didn't find a blocking issue in this change.
Review notes
This PR is a narrow data correction: the Anthropic claude-sonnet-5-5 cache-read price is updated in both mirrored catalog files, the unit expectation is kept in sync, and the changeset matches the behavior change. I did not see a changed-line correctness or maintainability problem that would justify blocking the merge.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 14.4 AIC · ⌖ 5.54 AIC · ⊞ 21.4K
Comment /review to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd — no actionable issues found.
📋 Analysis
Summary
This is a minimal, well-targeted data correction: the direct Anthropic claude-sonnet-5-5 cache-read price is fixed from 2e-07 to 1e-07 ($0.20 → $0.10 per 1M tokens) in both actions/setup/js/models.json and pkg/cli/data/models.json.
Verification performed
- Confirmed the two models.json copies remain byte-identical after the edit.
- Confirmed pkg/cli/model_costs_test.go was updated in lockstep to assert 0.1e-6, so the regression is now covered by a test (satisfies /tdd — fix accompanied by a test asserting the corrected value).
- Root cause (per /diagnosing-bugs) is clearly identified in the PR description: the direct Anthropic entry was out of sync with Anthropic's own pricing page, models.dev, and gh-aw's internal github-copilot/claude-sonnet-5.5 entry, all of which already show $0.10. Only input/output/cache-write were left untouched, which is correct since only cache-read was wrong.
- A changeset (fix-anthropic-sonnet-5-5-cache-read-price.md) is included, correctly scoped as a patch.
- The author proactively flagged that this is a hand-edit rather than make refresh-models-json (to preserve hand-added fields like Grok's wire_api), and noted unrelated pre-existing JS test flakiness — good transparency that aids reviewers.
Positive highlights
- Root-caused against multiple independent sources (Anthropic docs, models.dev, internal sibling entry) rather than just patching the symptom.
- Test updated alongside the fix, preventing silent regression.
- Changeset included for release tracking.
- Both catalogue copies kept in sync.
No further action needed.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 23.2 AIC · ⌖ 14.5 AIC · ⊞ 11.1K
Comment /matt to run again
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review. Note You can configure setup steps for Copilot code review separately from Copilot cloud agent with a |
|
@copilot address the following outstanding work in one pass:
Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI. Sous-chef head: a46d05c
|
…nnet-5-5-cache-read-price Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Pushed 3d8dcfc ( Formatting, build, lint, focused pricing tests, and impacted unit tests passed. Final progress gate flags inherited drift in the unchanged daily-max-ai-credits-test/pr-sous-chef lock files; left those unrelated files untouched. Read-only review found no issues; automated CodeQL timed out. No open review threads exist to resolve. No CI triggered; the pushed HEAD remains CI-unverified pending the normal human/CI handoff. |
|
🎉 This pull request is included in a new release. Release: |
The model price catalogue lists the direct Anthropic
claude-sonnet-5-5cache-read price at $0.20 per 1M tokens instead of $0.10. That doubles the estimated cost of cached Sonnet 5.5 prompt tokens ingh aw audit,gh aw logsand run footers. Only the direct Anthropic entry was wrong: Anthropic's pricing page, models.dev and gh-aw's owngithub-copilot/claude-sonnet-5.5entry all give $0.10.Changes
providers.anthropic.models.claude-sonnet-5-5.cost.cache_readis now1e-07(was2e-07) in bothactions/setup/js/models.jsonandpkg/cli/data/models.json. The two copies are still byte-identical. Input, output and cache-write prices are unchanged.pkg/cli/model_costs_test.gonow expects0.1e-6for this entry.This is a hand edit, not
make refresh-models-json. A full refresh would drop hand-added fields such as the Grokwire_api. models.dev already has $0.10, so a later refresh keeps this value.Unrelated JS test failures
Three JS tests failed in the full local run; this change doesn't cause them:
work_queue_control_performance.test.cjs: two tests time out with or without this change.awf_reflect_summary.test.cjs: one test failed in the full run; the file passes when run alone with this change.