Skip to content

GH#3569: fix(docs): clarify opus cost multiplier with explicit pricing basis#4391

Merged
alex-solovyev merged 1 commit intomainfrom
bugfix/3569-opus-cost-multiplier
Mar 13, 2026
Merged

GH#3569: fix(docs): clarify opus cost multiplier with explicit pricing basis#4391
alex-solovyev merged 1 commit intomainfrom
bugfix/3569-opus-cost-multiplier

Conversation

@alex-solovyev
Copy link
Copy Markdown
Collaborator

Summary

  • Adds inline pricing reference ($5/$25 vs $3/$15 per 1M tokens) to the cost constraint line in opus.md
  • Makes the multiplier self-verifying against the Model Details table, preventing future ambiguity
  • The original 3x/5x mismatch from PR feat: define model-specific subagents for cross-provider routing (t132.1) #758 was already resolved in commit af7c55c3 (t1128: update model registry); this PR adds the explicit dollar amounts as a guard against regression

Changes

File: .agents/tools/ai-assistants/models/opus.md

- Cost is approximately 1.7x sonnet -- justify the spend
+ Cost is approximately 1.7x sonnet ($5/$25 vs $3/$15 per 1M tokens) -- justify the spend

Verification

The constraint line now explicitly cites the same prices shown in the Model Details table:

  • Input: $5.00/1M (opus) vs $3.00/1M (sonnet) → 1.67x ✅
  • Output: $25.00/1M (opus) vs $15.00/1M (sonnet) → 1.67x ✅

Closes #3569

…GH#3569)

Add inline pricing reference to the cost constraint line so the
multiplier is self-verifying against the Model Details table.
The original 3x/5x mismatch from PR #758 was already resolved in
commit af7c55c (t1128); this adds the explicit dollar amounts to
prevent future ambiguity.

Closes #3569
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 13, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • no-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cbb4f41d-3368-42b3-a26b-bd1926840089

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bugfix/3569-opus-cost-multiplier
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the clarity and accuracy of the documentation for the Opus AI model by embedding explicit pricing details directly into the cost constraint description. This change aims to provide immediate context for the cost multiplier, making the documentation more robust and preventing future misunderstandings or inconsistencies regarding model pricing.

Highlights

  • Documentation Clarity: Added an inline pricing reference ($5/$25 vs $3/$15 per 1M tokens) to the cost constraint line in opus.md to provide immediate context for the cost multiplier.
  • Self-Verification: Ensured the cost multiplier is self-verifying against the existing Model Details table, which helps prevent future ambiguities regarding pricing.
  • Regression Prevention: Incorporated explicit dollar amounts as a safeguard against potential regressions in pricing information, building on previous resolutions.
Changelog
  • .agents/tools/ai-assistants/models/opus.md
    • Added explicit pricing details to the cost description.
Activity
  • No external activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request clarifies the cost multiplier for the opus model by embedding the specific pricing details directly in the documentation. My review includes a suggestion to make the pricing format even more explicit to avoid any potential ambiguity for readers.

- Only use this tier when the task genuinely requires it
- Most coding tasks are better served by sonnet tier
- Cost is approximately 1.7x sonnet -- justify the spend
- Cost is approximately 1.7x sonnet ($5/$25 vs $3/$15 per 1M tokens) -- justify the spend
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To enhance clarity and ensure the pricing information is unambiguous for all users, I suggest explicitly labeling the input and output costs. While the $input/$output format is a common convention, adding a label like input/output: removes any guesswork.

Suggested change
- Cost is approximately 1.7x sonnet ($5/$25 vs $3/$15 per 1M tokens) -- justify the spend
- Cost is approximately 1.7x sonnet (input/output: $5/$25 vs $3/$15 per 1M tokens) -- justify the spend

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied ✅ — good catch. Added the input/output: label as suggested. The change is in follow-up PR #4404 since this PR was already merged. The line now reads: Cost is approximately 1.7x sonnet (input/output: $5/$25 vs $3/$15 per 1M tokens) -- justify the spend

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 413 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Fri Mar 13 07:48:29 UTC 2026: Code review monitoring started
Fri Mar 13 07:48:29 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 413

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 413
  • VULNERABILITIES: 0

Generated on: Fri Mar 13 07:48:32 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link
Copy Markdown

@github-actions github-actions bot added the bug Auto-created from TODO.md tag label Mar 13, 2026
@alex-solovyev alex-solovyev merged commit b6ffd25 into main Mar 13, 2026
23 checks passed
@alex-solovyev alex-solovyev deleted the bugfix/3569-opus-cost-multiplier branch March 13, 2026 07:54
alex-solovyev added a commit that referenced this pull request Mar 13, 2026
Address gemini-code-assist suggestion on PR #4391: label the
$input/$output pricing format explicitly to remove ambiguity.

Ref: #3569
alex-solovyev added a commit that referenced this pull request Mar 13, 2026
Address gemini-code-assist suggestion on PR #4391: label the
$input/$output pricing format explicitly to remove ambiguity.

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

Labels

bug Auto-created from TODO.md tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quality-debt: .agents/tools/ai-assistants/models/opus.md — PR #758 review feedback (high)

1 participant