← Back to Pull requests

feat(ai): support Gemini 4 Argon reasoning model #4291

Closed
unknown closed this pull request without merging on Oct 17, 2026 23:49 UTC
View on GitHub
unknown unknown commented on Oct 17, 2026 19:43 UTC
Author

Overview


Adds support, pricing estimation, and documentation for Google's flagship reasoning model Gemini 4 Argon (gemini-4-argon).

Key Specifications & Pricing


  • Model identifiers: gemini-4-argon, google/gemini-4-argon

  • Context window: 1,048,576 tokens (~1M tokens) with long-decode output capability

  • Capabilities: Frontier native multimodal reasoning, code execution, deep multi-step thinking

  • Pricing:

  • - Promotional rate (through November 30, 2026): $2.00 / 1M prompt tokens, $10.00 / 1M completion/thinking tokens
    - Standard rate (effective December 1, 2026): $4.00 / 1M prompt tokens, $20.00 / 1M completion/thinking tokens

    Changes


    1. app/models/llm_usage.rb: Added gemini-4-argon to PRICING["google"].
    2. docs/hosting/ai.md: Added gemini-4-argon to recommended Gemini models and updated pricing tables/context tier documentation.
    3. test/models/llm_usage_test.rb: Added test coverage for provider inference and pricing calculations.

    Verification


  • test/models/llm_usage_test.rb: 41 runs, 82 assertions, 0 failures, 0 errors, 0 skips

  • RuboCop: 0 offenses
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added Gemini 4 Argon to the recommended Google models, with a 1,048,576-token context window.
    Listed promotional pricing of $2 per million prompt tokens and $10 per million completion tokens through November 30, 2026. Standard pricing begins December 1, 2026, at $4 and $20 per million tokens, respectively.
    Documentation
    * Updated the pricing verification date to October 17, 2026, and added Google’s pricing documentation as a source.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 222 lines (+166 / -56) across 2 files Reviewer: jjmata Review duration: 246m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 222 lines diff across 2 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.323
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #4291"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.8% (MEDIUM) · Higher = larger blast radius
    41.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.5% · Safe to merge
    16.5%