Skip to content
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

Merged
merged 1 commit into from
Jan 21, 2025
Merged

added x cost support #3151

merged 1 commit into from
Jan 21, 2025

Conversation

chitalian
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
helicone 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:03pm
helicone-bifrost 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:03pm
helicone-eu 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 21, 2025 7:03pm

@chitalian chitalian merged commit 1f094fd into main Jan 21, 2025
2 of 6 checks passed
@chitalian chitalian deleted the x-ai-support branch January 21, 2025 19:03
Copy link

@greptile-apps greptile-apps bot left a 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

Comment on lines +134 to +138
{
pattern: x,
provider: "X",
costs: xCosts,
},
Copy link

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

Comment on lines +1 to +4
/**
*
* DO NOT EDIT THIS FILE UNLESS IT IS IN /costs
*/
Copy link

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

Comment on lines +1 to +4
/**
*
* DO NOT EDIT THIS FILE UNLESS IT IS IN /costs
*/
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant