Open
Conversation
6718fa9 to
637a9d1
Compare
csansoon
commented
Feb 16, 2026
Comment on lines
+47
to
+52
| const CATEGORY_COLORS: Record<CostCategory, string> = { | ||
| prompt: '#3b82f6', | ||
| cached: '#93c5fd', | ||
| reasoning: '#22c55e', | ||
| completion: '#86efac', | ||
| } |
Contributor
Author
There was a problem hiding this comment.
I just hardcoded these colors into the component itself. Should I add them somewhere or use others instead?
ed3c5d8 to
07baa92
Compare
bafbf33 to
22dfa32
Compare
650228f to
a4c946f
Compare
a4c946f to
c635f06
Compare
| }, | ||
| models: { | ||
| cost: (models: { provider: Providers; model: string }[]) => { | ||
| const params = new URLSearchParams() |
andresgutgon
requested changes
Feb 17, 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.
Introduced the
CostBreakdownobject, which breaks down the complete cost into different models and parts, which all have different prices.We are also now considering the model's definition for "cache read" and "reasoning" cost from models.dev