← Back to Pull requests

feat(web): show providers' own names for service tiers #3779

Open
unknown opened this pull request with 322 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 17, 2026 14:30 UTC
Author

What this does

The model page and Chat now show each provider's own name for its faster tier, the way OpenRouter does. For example, Moonshot shows "Highspeed" instead of "Fast".

  • Where the names live: v2_providers.metadata.service_tier_labels, e.g. {"priority": "Highspeed"}. This sits next to service_tier_data_policies, so no migration is needed. A provider with no name stored keeps "Fast".

  • Model page: per-provider places use the provider's name: table rows, tier badges, the provider sheet's tier picker and the pricing chart's rows and series. Views that cover several providers keep the generic name.

  • Chat: the speed toggle uses the provider's name only when one provider serves the request. With several providers, or auto routing, it stays "Fast". Reply details show the name of the provider that answered.

  • Tooltips: when a provider uses its own name, the badge tooltip says what it is: "Highspeed is this provider's name for its Fast tier, a faster endpoint for this model." The status card's tier line reads "Highspeed (Fast)".

  • API: web-api returns the names from /models/:id/pricing (service_tier_labels) and /gateway/models (serviceTierLabels), with empty values removed.
  • Data

    The names are already in prod for 15 providers, all in one style:

  • Highspeed: Moonshot AI, Canopy Wave.

  • Ultraspeed: Xiaomi.

  • Priority PayGo: Google Vertex.

  • Priority: Google AI Studio, Amazon Bedrock, DeepInfra, Fireworks, Mistral, Mistral EU, MiniMax, MiniMax Lightning, SpaceXAI, Inference.net, EmpirioLabs.
  • The live site ignores these until this PR deploys. OpenAI, Anthropic and Baseten call the tier "Fast" themselves, so they have no override.

    Not included

    Mobile and desktop still hard-code "Fast".

    Checks

  • vitest run src/components/(data)/model/pricing src/components/(chat) (web): 392 passed.

  • web-api pricing and gateway tests: 17 passed.

  • eslint on changed files: no errors.

  • Typecheck: no errors in changed files. The worktree is missing generated files, which causes the remaining errors.

  • Not checked in a browser against real data yet.
  • 🤖 Generated with Claude Code

    <!-- devin-review-badge-begin -->

    ---

    <a href="https://app.devin.ai/review/phaseoteam/phaseo/pull/3779" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
    <!-- devin-review-badge-end -->

    Diff: 322 lines (+241 / -81) across 4 files Reviewer: devin-ai-integration[bot] Review duration: 9m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 322 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.346
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #3779"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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.9% (MEDIUM) · Higher = larger blast radius
    41.9%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 22.4% · Safe to merge
    22.4%