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.
This commit is contained in:
based
2024-01-24 07:45:12 +10:00
parent 201cd6207c
commit 3da8231b79
+1 -1
View File
@@ -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: