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

OpenAI usage tracker #236

Open
Mole1424 opened this issue Oct 10, 2023 · 1 comment
Open

OpenAI usage tracker #236

Mole1424 opened this issue Oct 10, 2023 · 1 comment
Assignees
Labels
enhancement Improvement to existing command/feature large/long term Larger changes for the soonTM pile waiting Something is holding up progress

Comments

@Mole1424
Copy link
Member

Usage tracker broken
image
site 403s could fix or not include given openAI keys have changed so dont know what price is, maybe ask Joey?

@Mole1424 Mole1424 self-assigned this Oct 10, 2023
@Mole1424
Copy link
Member Author

So had a look into this:

currently everything is undocumented and their is no official way (although apparently one is coming). The only working way I found is to run a get request to https://api.openai.com/v1/usage?date=YYYY-MM-DD every day. This will then return token usage which you can map to the public pricing at https://openai.com/pricing and then calculate cost in $ then convert to £.

This is very jank so ive decided to temp remove this feature until there is a more official method.

PS the original method that joey used now needs a browser session id as auth which caused the implementation to break.

@Mole1424 Mole1424 added enhancement Improvement to existing command/feature waiting Something is holding up progress large/long term Larger changes for the soonTM pile labels Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing command/feature large/long term Larger changes for the soonTM pile waiting Something is holding up progress
Projects
None yet
Development

No branches or pull requests

1 participant