fix: normalize Together provider for pricing lookup - #6037
Merged
Merged
Conversation
Contributor
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe pricing resolver now maps the ChangesTogether provider alias pricing
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
coderabbitai
Bot
requested review from
Pratham-Mishra04,
TejasGhatte and
impoiler
August 10, 2026 20:21
akshaydeo
approved these changes
Aug 11, 2026
atharvamhaske
pushed a commit
to atharvamhaske/bifrost
that referenced
this pull request
Aug 13, 2026
18 tasks
akhsaul
pushed a commit
to akhsaul/bifrost
that referenced
this pull request
Aug 27, 2026
occcat
pushed a commit
to occcat/bifrost
that referenced
this pull request
Sep 2, 2026
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
togetherto the pricing catalog's canonicaltogether_aiidentifierRoot cause
Pricing rows are normalized when the hosted datasheet is ingested, but the runtime provider identifier was used verbatim during cost lookup. A custom OpenAI-compatible provider named
togethertherefore could not match rows stored undertogether_ai; cost calculation returned zero even when the catalog contained the model.The hosted catalog still needs a direct Together GLM-5.2 row. That data request is tracked in #6036. Once present, this change lets existing
togetherdeployments consume it without renaming a DB-backed provider.Validation
go test ./modelcatalog/datasheet -run 'TestCalculateCost_TogetherAliasUsesTogetherAIPricingWithCache|TestGetPricing_' -count=1go test ./modelcatalog/datasheet -count=1$13.2067812from 36,807,862 input tokens, including 33,829,760 cached tokens, and 54,932 output tokens