oira666_pi-limits-wait
v0.3.0
Published
Extension for PI that allows to automatically wait for limits to reset and retry the request
Readme
Pi Limits Wait
Pi extension that keeps requests alive when a provider rate-limits you or returns server_is_overloaded.
Install
pi install npm:oira666_pi-limits-waitRestart Pi or run /reload after installing.
What it does
- Works with all Pi model providers/APIs that use
streamSimple. - On rate-limit errors (
429,rate_limit,too many requests, quota/reset messages), waits and retries in a loop. - Uses provider retry timing when available (
retry-after,retry-after-ms,retry in ..., reset messages). - If no retry timing is available for a rate limit, waits 30 minutes before retrying.
- On
server_is_overloaded, waits 5 minutes, then retries. If the provider is still overloaded after Pi's normal retries, it waits another 5 minutes and repeats. - Shows a countdown in the Pi status/working line.
- Press Enter during the countdown to skip the wait and retry immediately.
License
MIT
