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

Add endpoint to fetch total usage of the day #50

Open
alicanyuksel opened this issue Feb 7, 2024 · 1 comment
Open

Add endpoint to fetch total usage of the day #50

alicanyuksel opened this issue Feb 7, 2024 · 1 comment

Comments

@alicanyuksel
Copy link

alicanyuksel commented Feb 7, 2024

Hi there,

Are you considering adding an endpoint in your API in the future so that the client can fetch the total usage for the day? Because as you know, more and more, we're integrating LLMs into our tools. It could be interesting to monitor costs without having to go to our MistralAI account. What do you think? :)

Here is an example from OpenAI for this particular use case:

r = openai.api_requestor.APIRequestor();
resp = r.request("GET", '/usage?date=2024-02-07'); // or start_date and end_date
@sophiamyang
Copy link
Contributor

Thanks for the suggestions. This feature is coming soon.

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