Repository navigation
fix(catalog): apply anthropic batch prices without api host - #1947
Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit intoNov 29, 2026
Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
Conversation
> 🤖 **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>
Contributor
Author
|
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. |
Abhijeet Prasad (AbhiPrasad)
approved these changes
Nov 29, 2026
Abhijeet Prasad (AbhiPrasad)
enabled auto-merge (squash)
November 29, 2026 23:32
[Medium impact] The catalog change appears safe to merge. SummaryRemoves the host requirement from all 36
Reviews (1) · Last reviewed commit: "fix(catalog): apply anthropic batch pric..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Follow-up to #1944. Brainstore's
select_billing_rateonly uses a row withendpointswhen the span'smetadata.api_hostmatches. Batch also never falls back to standard prices, so SDK-instrumented Anthropic batch spans with noapi_host(e.g. sdk-python#1200) still got no cost.This drops
endpoints: ["api.anthropic.com"]from all 36pricing.anthropic.batchrows across 20 entries. Nothing else changes.Per Anthropic's docs, the batch prices hold for any
anthropichost:bedrock/vertex.fastrows 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