From 1fdd2661c9b54c2eb98f8e9d99c8c0b974401b8d Mon Sep 17 00:00:00 2001 From: based Date: Mon, 18 Mar 2024 12:32:12 +1000 Subject: [PATCH] more retard ocd ignore --- Anthropic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Anthropic.py b/Anthropic.py index 865a6db..e6d5c09 100644 --- a/Anthropic.py +++ b/Anthropic.py @@ -1,5 +1,6 @@ import APIKey + async def check_anthropic(key: APIKey, session): pozzed_messages = ["ethically", "copyrighted material"] headers = { @@ -47,9 +48,10 @@ async def check_anthropic(key: APIKey, session): return True + def get_tier(tokenlimit, ratelimit): tier_mapping = { - (25000, 5): "Free", + (25000, 5): "Free Tier", (50000, 50): "Tier 1", (100000, 1000): "Tier 2", (200000, 2000): "Tier 3", @@ -57,6 +59,7 @@ def get_tier(tokenlimit, ratelimit): } return tier_mapping.get((tokenlimit, ratelimit), "Scale Tier") + def pretty_print_anthropic_keys(keys): print('-' * 90) print(f'Validated {len(keys)} working Anthropic keys:')