From 3da8231b797996161ec01d788c41f3d222585cd1 Mon Sep 17 00:00:00 2001 From: based Date: Wed, 24 Jan 2024 07:45:12 +1000 Subject: [PATCH] use a nonblocking sleep on anthropic rate limited retries honestly i don't even know if pozzed checks are needed anymore, i haven't seen a pozzed key in months. i think they stopped doing that shit once they realized how retarded it was. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9da5a66..80054cc 100644 --- a/main.py +++ b/main.py @@ -74,7 +74,7 @@ async def validate_anthropic(key: APIKey, retry_count, sem): i = 0 while await check_anthropic(key, session) is False and i < retry_count: i += 1 - sleep(1) + await asyncio.sleep(1) print(f"Stuck determining pozzed status of rate limited Anthropic key '{key.api_key[-8:]}' - attempt {i} of {retry_count}") key.rate_limited = True else: