trypear / pearai-app

The Open Source AI-Powered Code Editor. A fork of VSCode and Continue.
https://trypear.ai
Other
844 stars 181 forks source link

[Medium][LandingPage+Server] Indicate to user how many requests they have left #197

Closed Fryingpannn closed 1 month ago

Fryingpannn commented 1 month ago

Requires server access

Is this request related to a problem? Please describe.

Reported by jyo in Discord.

We should indicate to the user how many requests they have left out of the 1000 monthly limit.

In the future, we should also allow user to add more if they reach their limit.

Describe the solution you'd like

Frontend On the landing page's settings' page, in the Usage section, simply indicate "X/1000 requests used".

Backend Make an endpoint that checks our Redis and retrieves how many requests the user has used so far and returns to the front end.

wflore19 commented 1 month ago

I can work on this 🙋‍♂️

Fryingpannn commented 1 month ago

Still need help for backend side!

wflore19 commented 1 month ago

Frontend ready. Need help with backend @Fryingpannn

Backend Make an endpoint that checks our Redis and retrieves how many requests the user has used so far and returns to the front end.