-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added x cost support #3151
added x cost support #3151
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Added X.ai (Grok) model cost configurations and provider integration across the Helicone codebase, enabling cost tracking for X.ai's language models.
- Added cost configurations for 4 Grok models with specific token pricing in
/costs/src/providers/x/index.ts
- Integrated X.ai provider pattern
https://api.x.ai
in/costs/src/providers/mappings.ts
- Warning: Cost files are duplicated across multiple directories despite the "DO NOT EDIT" warning, suggesting potential maintenance issues
- Recommend consolidating cost configurations to single source in
/costs
directory
5 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile
{ | ||
pattern: x, | ||
provider: "X", | ||
costs: xCosts, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: X provider configuration added before 2YFV - consider maintaining alphabetical order with other providers for consistency
/** | ||
* | ||
* DO NOT EDIT THIS FILE UNLESS IT IS IN /costs | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: This file is in valhalla/jawn/src/packages but the header comment indicates it should only be edited in /costs
/** | ||
* | ||
* DO NOT EDIT THIS FILE UNLESS IT IS IN /costs | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: This file is in bifrost/packages/cost but the comment states it should only be edited in /costs. This could lead to synchronization issues across the codebase.
@@ -0,0 +1,49 @@ | |||
/** | |||
* | |||
* DO NOT EDIT THIS FILE UNLESS IT IS IN /costs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: This file should be in /costs directory according to the comment, but is being added to /web/packages/cost instead
No description provided.