flynnoct / chatgpt-telegram-bot

Telegram bot implemented by OFFICIAL OpenAI ChatGPT API (gpt-3.5-turbo, released on 2023-03-01)
MIT License
181 stars 43 forks source link

Add new command /usage to get last 30 days api usage in $ #57

Open adrianlzt opened 1 year ago

adrianlzt commented 1 year ago

New command "/usage". Calls the non documented API dashboard/billing API to get the usage, in dollars, of the last 30 days.

Example response: Usage in the last 30 days: 0.42 $

RayCxggg commented 1 year ago

It seems to be a reasonable option for user to monitor the cost. @flynnoct Do you want to add this new command? Or maybe you can add it in the logging system, simply add a command named 'usage' in Telegram feels user-unfriendly.