Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ async def sort_key(key, rate_limit, claude_opus):
|
|
| 8 |
if _key.startswith("sk-or-v1-") and re.match(re.compile("sk-or-v1-[a-z0-9]{64}"), _key):
|
| 9 |
return get_key_openrouter_info(_key)
|
| 10 |
|
| 11 |
-
if _key.startswith("sk-ant-") and
|
| 12 |
return await get_key_ant_info(_key, rate_limit, claude_opus)
|
| 13 |
|
| 14 |
if _key.startswith("sk-"):
|
|
@@ -230,7 +230,7 @@ with gr.Blocks() as demo:
|
|
| 230 |
gr.Markdown('''
|
| 231 |
# OpenAI/Anthropic/Gemini/Azure/Mistral/Replicate/AWS Claude/OpenRouter API Key Status Checker
|
| 232 |
|
| 233 |
-
*(Based on shaocongma, CncAnon1,
|
| 234 |
|
| 235 |
AWS credential's format: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY (root might not be accurate)
|
| 236 |
|
|
|
|
| 8 |
if _key.startswith("sk-or-v1-") and re.match(re.compile("sk-or-v1-[a-z0-9]{64}"), _key):
|
| 9 |
return get_key_openrouter_info(_key)
|
| 10 |
|
| 11 |
+
if _key.startswith("sk-ant-") and re.match(re.compile("sk-ant-api03-[a-zA-Z0-9\-_]{93}AA"), _key):
|
| 12 |
return await get_key_ant_info(_key, rate_limit, claude_opus)
|
| 13 |
|
| 14 |
if _key.startswith("sk-"):
|
|
|
|
| 230 |
gr.Markdown('''
|
| 231 |
# OpenAI/Anthropic/Gemini/Azure/Mistral/Replicate/AWS Claude/OpenRouter API Key Status Checker
|
| 232 |
|
| 233 |
+
*(Based on shaocongma, CncAnon1, Drago and kingbased key checkers)*
|
| 234 |
|
| 235 |
AWS credential's format: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY (root might not be accurate)
|
| 236 |
|