Repository navigation
fix(catalog): add bedrock and databricks standard pricing - #1880
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6105b6ac70
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| "supported_regions": [ | ||
| "us-gov-west-1" |
There was a problem hiding this comment.
Match the region before selecting the GovCloud Opus rate
For anthropic.claude-opus-5-5 requests through bedrock-mantle in us-gov-west-1, the current cost matcher does not inspect supported_regions, so this GovCloud rate is indistinguishable from the preceding commercial-region rate with the same endpoint and model ID. The commercial row is therefore selected first, underestimating GovCloud input/output and cache costs (for example, 4.4/22 instead of 4.8/24); either region matching must be implemented before publishing both rows or the condition must be encoded in a field the matcher consumes.
Useful? React with 👍 / 👎.
| "model_id": "us.anthropic.claude-sonnet-5-5", | ||
| "valid_from": "2026-10-07" |
There was a problem hiding this comment.
Make the dated Sonnet rate usable by cost estimation
When estimated costs are calculated for us.anthropic.claude-sonnet-5-5, the estimator skips rates containing date bounds, and this model has no top-level token-price fallback. Consequently the newly added standard rate is never used by that path—even after 2026-10-07—and those requests remain unpriced; the estimator needs to evaluate valid_from, or this currently applicable rate must be represented without a date condition.
Useful? React with 👍 / 👎.
abdc707 to
1dda228
Compare
> 🤖 **This text was AI-generated.** Flat catalog rates do not capture some Bedrock inference options or missing Databricks pay-per-token prices. Record verified provider-specific rates with their published conditions without changing defaults or other tiers. Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1dda228 to
3506872
Compare
Summary
Adds verified provider-specific
pricing[provider].standardrates forbedrock(22 model IDs) anddatabricks(4 model IDs) inmodel_list.json. Top-level rates, ordering, providers, aliases and other tiers are unchanged. Catalog-only.Rates: USD / 1M text tokens, input / output / cache read / cache write (cache write = total; Claude shows 5m / 1h writes, GPT-6.2 cache write = 30m). Each row is scoped to the listed endpoint and the exact source regions from the AWS model cards and the AWS Bedrock Foundation Models Price List.
Bedrock
us.xai.grok-4.7openai.gpt-6.2-astraus.openai.gpt-6.2-astraglobal.openai.gpt-6.2-astraopenai.gpt-6.2-solus.openai.gpt-6.2-solglobal.openai.gpt-6.2-solanthropic.claude-haiku-5-5us./eu./au./jp.anthropic.claude-haiku-5-5global.anthropic.claude-haiku-5-5anthropic.claude-sonnet-5-5us.anthropic.claude-sonnet-5-5global.anthropic.claude-sonnet-5-5anthropic.claude-opus-5-5us./eu./au./jp.anthropic.claude-opus-5-5global.anthropic.claude-opus-5-5Databricks (AWS us-east-1, standard pay-per-token, published $0.07/DBU conversion)
databricks-glm-5-3databricks-glm-5-3-flashdatabricks-qwen35-122b-a10bdatabricks-qwen3-next-80b-a3b-instructSkipped candidates
Cost-matching caveat: current cost selection doesn't consume
supported_regionsormodel_idconditions, the gateway passesinference_geo: None, and the estimated-cost selector skips date-scoped rates. Conditions are kept as published rather than broadened.Pricing applicability on current Braintrust main (verified at
c3f05c7d): none of the 40 conditional rows is selected yet; until the selector/Gateway context is fixed, usage falls back as follows.bedrock-runtime/bedrock-mantleapi_host= configured hostname (e.g.bedrock-runtime.us-east-1.amazonaws.com) orNone, compared by exact equality (same root cause as OpenRouter endpoint rows, which seeopenrouter.ai)supported_regions(Bedrock + Databricks)model_idrow conditioninference_geoisn't derived from the region or prefixmin_/max_input_tokensvalid_fromus.xai.grok-4.7; bare/us./global.openai.gpt-6.2-astraandopenai.gpt-6.2-sol; all sixanthropic.claude-haiku-5-5variants; bare/global.anthropic.claude-sonnet-5-5andanthropic.claude-opus-5-5.us.anthropic.claude-sonnet-5-5,us./eu./au./jp.anthropic.claude-opus-5-5. Brainstore estimates fall back to the unprefixed model's flat rates; Gateway's built-in lookup does not.databricks-glm-5-3,databricks-glm-5-3-flash,databricks-qwen35-122b-a10b,databricks-qwen3-next-80b-a3b-instruct. Cost loaders skip entries that only have nested rates.Discount audit: audited all 40 added rows against official AWS and Databricks pricing; no promotional or temporary discounts are included. The Claude Sonnet 5.5
valid_from2026-10-07 marks AWS's permanent 50% cache-read reduction (no end date published). Databricks free trial and committed-use discounts are not reflected.Link to Devin session: https://braintrust.devinenterprise.com/sessions/bd684a3cb79a4cc2ba08895c366922ab
Open in Devin Desktop: https://braintrust.devinenterprise.com/desktop/session/bd684a3cb79a4cc2ba08895c366922ab?variant=devin