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

How to track usage from within the CLI tool? #97

Open
rriggin opened this issue Nov 16, 2024 · 1 comment
Open

How to track usage from within the CLI tool? #97

rriggin opened this issue Nov 16, 2024 · 1 comment

Comments

@rriggin
Copy link

rriggin commented Nov 16, 2024

Hi i just installed, and have question not an issue really. I want to view api credit usage from within this app? Is that possible.

Maybe I missed it in the docs. But, when I ask the gpt for usage stats I get this:

How do I track usage?
To track usage of the GPT model, you can set up monitoring for API requests made to the GPT API. This can be done by logging and analyzing the API request data, such as the number of requests, timestamps, and any relevant
metadata. You can also use tools like API analytics platforms or monitoring services to track usage and performance metrics. Additionally, you may refer to the documentation provided by OpenAI for specific information on
monitoring and tracking usage of the GPT model.

Is there a specific set of commands or arguments built in?

@emilrueh
Copy link

Well by default each request prints out the tokens used and seems to add up on each consecutive request on the bottom right.

For a full summary of costs I'd just be going into the OpenAI API dashboard to track usage per API key.

(this is just my 2 cents on how I am using it so far)

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

No branches or pull requests

2 participants