mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user