GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(usage): price Claude models listed only under Bedrock IDs by DrSeedon · Pull Request #33720 · pingdotgg/t3code

Conversation

@DrSeedon

@DrSeedon DrSeedon commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Part of #33715 (the Mythos 5.2 half; the stale-cache half is a separate PR, since it is an independent problem).

Problem

Usage shows Claude Mythos 5.2 (claude-mythos-5-2) as Unpriced, and refreshing rates does not help. LiteLLM lists this model only under Bedrock IDs: anthropic.claude-mythos-5-2, the region-prefixed us./eu./global./us-gov.anthropic.claude-mythos-5-2, and bedrock/us-gov-*/anthropic.claude-mythos-5-2. There is no bare claude-mythos-5-2 row. parseRateTable only aliases by stripping the part before the last /, so the best alias it can build is anthropic.claude-mythos-5-2, and resolveRate("claude-mythos-5-2") never matches.

Change

parseRateTable now also aliases the in-region Bedrock ID anthropic.<model> to the bare <model>, as a fallback:

  • A direct bare row still wins, and so does any alias built from qualified (provider/…) entries, including the existing rule that leaves an alias unpriced when those entries disagree.
  • Region-prefixed IDs (us., eu., global., us-gov., and bedrock/<region>/… paths) are not used. Their rates differ from each other: for Mythos 5.2, us./eu. are 10% higher and us-gov. is 20% higher. Merging them under the existing conflict rule would leave the model unpriced again, and they are regional premiums rather than the model's list price.

The prefix is limited to anthropic., the case the issue reports. With the general first-party list, Bedrock IDs such as deepseek.v3-v1:0 would produce bare names like v3-v1:0.

Scope and approval

Focused fix for the bug reported and analysed in #33715. One function in usagePricing.ts and its tests. No change to UsageService, the cache, or anything outside pricing lookup.

Verification

  • vp test run apps/server/src/usage/usagePricing.test.ts: 16 passed. Two new tests:
    • a model listed only under Bedrock IDs (in-region, us., eu., global., us-gov., bedrock/us-gov-west-1/) prices at the in-region rate, also through its [1m] variant, and a model listed only under a region-prefixed ID stays unpriced;
    • a direct row, a qualified alias, and an ambiguous (conflicting) qualified alias all keep their current result when an anthropic.<model> row also exists.
  • With the usagePricing.ts change stashed, the first new test fails and the other 15 pass.
  • Against today's LiteLLM model_prices_and_context_window.json (fetched 2026-11-10), I compared the resolved table before and after: 0 existing entries changed or removed, 16 added. All 16 are Claude names from Bedrock IDs, among them claude-mythos-5-2, which now prices at $8/M input and $40/M output (the rate of anthropic.claude-mythos-5-2). claude-fable-5-2 ($8/$40) and claude-mythos-5-1 ($10/$50) are unchanged.
  • vp fmt --check and vp lint on both files, and the server package typecheck: clean.

Not checked: the Usage page itself with a real Mythos 5.2 transcript. The change is in the rate lookup that the page's pricing goes through.

Written by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@DrSeedon @claude
fix(usage): price Claude models listed only under Bedrock IDs
e243590
LiteLLM lists Claude Mythos 5.2 only as Bedrock IDs (anthropic.claude-mythos-5-2
and its region-prefixed variants), with no bare claude-mythos-5-2 row. Aliasing
only stripped the part before the last "/", so the bare name never matched and
Usage showed the model as unpriced.

Alias the in-region Bedrock ID (anthropic.<model>) to the bare name when no
direct row or qualified entry provides it. Region-prefixed IDs (us., eu.,
global., us-gov., bedrock/<region>/) are left out because they can carry a
regional premium.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 10, 2026
@juliusmarminge GitCafe Production

juliusmarminge commented Nov 10, 2026

Copy link
Copy Markdown
Member

Thanks, @DrSeedon, for tracking down and fixing the Bedrock-only pricing gap. #33721 by @juliusmarminge addresses the same defect and includes runtime verification, so I’m closing this as a duplicate.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 10, 2026
@DrSeedon DrSeedon mentioned this pull request Nov 10, 2026
fix(usage): refetch cached rates early for a model they do not list #33725
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@DrSeedon @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.