acheong08 / ChatGPT-to-API

Scalable unofficial ChatGPT API for production.
1.11k stars 373 forks source link

Implementation of Single Thread Mode #88

Open itsuwari opened 1 year ago

itsuwari commented 1 year ago

When SINGLE_THREAD is "yes", a .lock file is created, managing request flow to prevent 429 error from multiple simultaneous requests.

acheong08 commented 1 year ago

hash of access token .lock to prevent multithread for any account but still takes advantage of multiple account would be better