Commit
•
b0e0b1b
1
Parent(s):
17ed057
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,6 @@ def get_key_azure_info(endpoint, api_key):
|
|
113 |
"key_availability": key_avai[0],
|
114 |
"gpt35_availability": "",
|
115 |
"gpt4_availability": "",
|
116 |
-
"gpt4_turbo_availability": "",
|
117 |
"gpt4_32k_availability": "",
|
118 |
"moderation_status": "",
|
119 |
"models": "",
|
@@ -123,8 +122,7 @@ def get_key_azure_info(endpoint, api_key):
|
|
123 |
status = get_azure_status(endpoint, api_key, azure_deploy)
|
124 |
info_dict["gpt35_availability"] = status[1]
|
125 |
info_dict["gpt4_availability"] = status[2]
|
126 |
-
info_dict["
|
127 |
-
info_dict["gpt4_32k_availability"] = status[4]
|
128 |
info_dict["moderation_status"] = status[0]
|
129 |
info_dict["models"] = key_avai[1]
|
130 |
info_dict["deployments"] = azure_deploy
|
@@ -171,10 +169,6 @@ async def get_key_aws_info(key):
|
|
171 |
"iam_user_change_password": "",
|
172 |
"aws_bedrock_full_access": "",
|
173 |
"enabled_region": "",
|
174 |
-
# "claude_v2_enabled_region": key_avai[6],
|
175 |
-
# "claude_haiku_enabled_region": key_avai[7],
|
176 |
-
# "claude_sonnet_enabled_region": key_avai[8],
|
177 |
-
# "claude_opus_enabled_region": key_avai[9],
|
178 |
"cost_and_usage": key_avai[1]}
|
179 |
if key_avai[0]:
|
180 |
info_dict['username'] = key_avai[1]
|
@@ -230,7 +224,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, Drago
|
234 |
|
235 |
AWS credential's format: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY (root might not be accurate)
|
236 |
|
@@ -239,7 +233,7 @@ with gr.Blocks() as demo:
|
|
239 |
|
240 |
with gr.Row():
|
241 |
with gr.Column():
|
242 |
-
key = gr.Textbox(lines=1, max_lines=
|
243 |
rate_limit = gr.Checkbox(label="Check concurrent rate limit (API Claude) (experimental)")
|
244 |
claude_opus = gr.Checkbox(label="Use claude-3-opus for filter_response check? (default: claude-3-haiku)")
|
245 |
with gr.Row():
|
|
|
113 |
"key_availability": key_avai[0],
|
114 |
"gpt35_availability": "",
|
115 |
"gpt4_availability": "",
|
|
|
116 |
"gpt4_32k_availability": "",
|
117 |
"moderation_status": "",
|
118 |
"models": "",
|
|
|
122 |
status = get_azure_status(endpoint, api_key, azure_deploy)
|
123 |
info_dict["gpt35_availability"] = status[1]
|
124 |
info_dict["gpt4_availability"] = status[2]
|
125 |
+
info_dict["gpt4_32k_availability"] = status[3]
|
|
|
126 |
info_dict["moderation_status"] = status[0]
|
127 |
info_dict["models"] = key_avai[1]
|
128 |
info_dict["deployments"] = azure_deploy
|
|
|
169 |
"iam_user_change_password": "",
|
170 |
"aws_bedrock_full_access": "",
|
171 |
"enabled_region": "",
|
|
|
|
|
|
|
|
|
172 |
"cost_and_usage": key_avai[1]}
|
173 |
if key_avai[0]:
|
174 |
info_dict['username'] = key_avai[1]
|
|
|
224 |
gr.Markdown('''
|
225 |
# OpenAI/Anthropic/Gemini/Azure/Mistral/Replicate/AWS Claude/OpenRouter API Key Status Checker
|
226 |
|
227 |
+
*(Based on shaocongma, CncAnon1, su, Drago, kingbased key checkers)*
|
228 |
|
229 |
AWS credential's format: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY (root might not be accurate)
|
230 |
|
|
|
233 |
|
234 |
with gr.Row():
|
235 |
with gr.Column():
|
236 |
+
key = gr.Textbox(lines=1, max_lines=2, label="API Key")
|
237 |
rate_limit = gr.Checkbox(label="Check concurrent rate limit (API Claude) (experimental)")
|
238 |
claude_opus = gr.Checkbox(label="Use claude-3-opus for filter_response check? (default: claude-3-haiku)")
|
239 |
with gr.Row():
|