NBISweden / mimir

Self-hosted UI Frontend for ChatGPT API with User Support & Google Auth Login
MIT License
0 stars 0 forks source link

feat: Implement rate limiting #7

Closed jonandernovella closed 1 year ago

jonandernovella commented 1 year ago

Please describe the feature

As a Mimir maintainer, I want to make sure that users' have reasonable limits over how many tokens they can request from ChatGPT.

Detailed description

The number of tokens "N" needs some research before we find a good number. AFAIK the maximum tokens per conversation is 4096. So if we want to allow a maximum 20 conversations per day, perhaps 20*4096 could be a good starting point?

To read more about rate limiting: https://platform.openai.com/docs/guides/rate-limits/overview

Acceptance criteria

jhagberg commented 1 year ago

no fix