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:')