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

chore: track ai usage #2271

Merged
merged 5 commits into from
Feb 11, 2025
Merged

chore: track ai usage #2271

merged 5 commits into from
Feb 11, 2025

Conversation

AyushAgrawal-A2
Copy link
Collaborator

No description provided.

Copy link

qa-wolf bot commented Feb 11, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@cla-bot cla-bot bot added the cla-signed label Feb 11, 2025
Copy link
Contributor

github-actions bot commented Feb 11, 2025

Preview - Build & Deploy Images

✅ Build images
✅ Deploy images

🕒 Last deployed: Feb 11, 2025 at 07:55 PM UTC

🔗 URL: https://ayush-ai-usage.quadratic-preview.com

@github-actions github-actions bot temporarily deployed to preview-pr-2271 February 11, 2025 13:26 Destroyed
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.41%. Comparing base (dea8044) to head (97e391e).
Report is 6 commits behind head on billing-v2.

Additional details and impacted files
@@             Coverage Diff             @@
##           billing-v2    #2271   +/-   ##
===========================================
  Coverage       89.41%   89.41%           
===========================================
  Files             375      375           
  Lines           79575    79575           
===========================================
+ Hits            71150    71151    +1     
+ Misses           8425     8424    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot temporarily deployed to preview-pr-2271 February 11, 2025 14:26 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-2271 February 11, 2025 15:17 Destroyed
@@ -25,6 +17,10 @@ export const MODEL_OPTIONS: {
canStreamWithToolCalls: true,
enabled: true,
provider: 'openai',
rate_per_million_input_tokens: 2.5,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the price for each model?

Seems like we shouldn't store this in our code base as it will presumably change over time and be a chore to update

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@davidkircos davidkircos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Merging into billing branch.

Thanks @AyushAgrawal-A2 !

@davidkircos davidkircos merged commit c1c6afc into billing-v2 Feb 11, 2025
19 of 23 checks passed
@davidkircos davidkircos deleted the ayush/ai_usage branch February 11, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants