RainEggplant / chatgpt-telegram-bot

A ChatGPT bot for Telegram based on Node.js. Support both browserless and browser-base APIs.
MIT License
322 stars 97 forks source link

rate limit: token "rotator" #21

Open miiteme opened 1 year ago

miiteme commented 1 year ago

Add a command to change your pre defined access tokens, ex. /token

Generally for unofficial apis (in my case)

When rate limit detected, execute the command. so you can read from other config file or another accesstoken variable, then it can "bypass" the rate limit. Without taking care about the session, just for keeping asking things.

I know programming isn't a magic wand, but it's maybe a good idea since I just created 2 files with different accesstokens, but for time save it would be great a command for do this replacement / reloads automatically backwards and forwards...