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

[FR]: Request to Implement Token Cost Calculation and Logging #548

Open
madhankumar2211 opened this issue Nov 4, 2024 · 3 comments
Open
Labels
enhancement New feature or request planned

Comments

@madhankumar2211
Copy link

Proposal summary

I would like to propose an enhancement to the project that involves calculating and logging the costs associated with token consumption (both input and output tokens) when using OpenAI's API. This will help users better understand the expenses incurred while interacting with the model.

Motivation

  1. Users will have clearer visibility into their usage and costs.
  2. Helps in budget management for projects utilizing OpenAI's services.
@madhankumar2211 madhankumar2211 added the enhancement New feature or request label Nov 4, 2024
@jverre
Copy link
Collaborator

jverre commented Nov 5, 2024

Hi @madhankumar2211
Agree that this would be very useful, we will try to ship something like this next week. I'll keep you posted on when we start working on it

@jverre jverre added the planned label Nov 5, 2024
@Lothiraldan
Copy link
Member

Hi @madhankumar2211, we are working on adding Cost tracking in Opik as we speak. Here is a preview of the design that we were came up with. The first version of the cost tracking will includes cost calculation for OpenAI models when doing text generation and we will add more models and use-case in the future. Will that cover your use-case?

Project page - Traces tab - Sidebar

@madhankumar2211
Copy link
Author

Hi @Lothiraldan, It looks great! This will definitely be helpful in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned
Projects
None yet
Development

No branches or pull requests

3 participants