Skip to content

fix(catalog): apply anthropic batch prices without api host - #1947

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
devin/1795994987-anthropic-batch-any-endpoint
Nov 29, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
devin/1795994987-anthropic-batch-any-endpoint

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1944. Brainstore's select_billing_rate only uses a row with endpoints when the span's metadata.api_host matches. Batch also never falls back to standard prices, so SDK-instrumented Anthropic batch spans with no api_host (e.g. sdk-python#1200) still got no cost.

This drops endpoints: ["api.anthropic.com"] from all 36 pricing.anthropic.batch rows across 20 entries. Nothing else changes.

Per Anthropic's docs, the batch prices hold for any anthropic host:

  • Batch processing: "All usage is charged at 50 percent of the standard API prices."
  • Claude Platform on AWS and Microsoft Foundry bill tokens "at standard per-model, per-feature rates (same as Model pricing)".
  • Bedrock and Google-managed Vertex have their own prices, but the catalog keeps those under bedrock/vertex.

fast rows keep their endpoint scope.

Link to Devin session: https://braintrust.devinenterprise.com/sessions/653764559c404a7f9e4ba2ec78526230
Open in Devin Desktop: https://braintrust.devinenterprise.com/desktop/session/653764559c404a7f9e4ba2ec78526230?variant=devin

> 🤖 **This text was AI-generated.**

Brainstore only uses a price row with `endpoints` when the span's
`metadata.api_host` matches, and batch spans never fall back to
standard prices. SDK-instrumented Anthropic batch spans can lack
`api_host`, so they got no cost even with batch rows in the catalog.

Drop `endpoints: ["api.anthropic.com"]` from every
`pricing.anthropic.batch` row. Anthropic charges batch usage at 50% of
standard prices, and its Anthropic-operated platforms (Claude API,
Claude Platform on AWS, Claude in Microsoft Foundry) bill at the same
per-model rates, so the rows hold for any `anthropic` host. Bedrock and
Google-managed Vertex prices live under their own provider keys and are
unchanged. `fast` rows keep their endpoint scope.

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T23:33:40.707997Z 79a1816 PR opened
ℹ️ About Codex in GitHub

Your 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.

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The catalog change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The catalog change appears safe to merge.

Summary

Removes the host requirement from all 36 pricing.anthropic.batch rows across 20 catalog entries.

  • Anthropic batch prices can match spans without a host in their metadata.

Reviews (1) · Last reviewed commit: "fix(catalog): apply anthropic batch pric..." · Reviewed by Greptile

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 1426aa5 into main Nov 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant