feat(cost): add Cerebras inference pricing for all models#5618
Open
nspady wants to merge 1 commit intoHelicone:mainfrom
Open
feat(cost): add Cerebras inference pricing for all models#5618nspady wants to merge 1 commit intoHelicone:mainfrom
nspady wants to merge 1 commit intoHelicone:mainfrom
Conversation
Adds cost tracking for all four Cerebras inference models: | Model | Input | Output | |---|---|---| | Llama 3.1 8B | $0.10/1M | $0.10/1M | | GPT OSS 120B | $0.35/1M | $0.75/1M | | Qwen 3 235B Instruct | $0.60/1M | $1.20/1M | | Z.ai GLM 4.7 | $2.25/1M | $2.75/1M | Pricing per https://www.cerebras.ai/pricing (Developer tier). Previously, the Cerebras provider entry in mappings.ts had an empty costs array, so all Cerebras requests showed $0.00 in the dashboard.
|
@nspady is attempting to deploy a commit to the Helicone Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
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
Adds cost tracking for all four Cerebras inference models. Previously, the Cerebras provider entry in
mappings.tshad an emptycostsarray, so all Cerebras requests showed $0.00 in the dashboard.Pricing
Per Cerebras pricing page (Developer tier):
llama3.1-8bgpt-oss-120bqwen-3-235b-a22b-instruct-2507zai-glm-4.7Note:
qwen-3-235b-a22b-instruct-2507andzai-glm-4.7are preview models.Changes
Legacy cost entry (
providers/cerebras/index.ts)New file with
ModelRowentries for all four Cerebras models using exact model IDs from the Cerebras API.Provider mapping (
providers/mappings.ts)Replaced empty
costs: []withcosts: cerebrasCostsfor the existing Cerebras provider pattern.