superdup95
commited on
Commit
•
837d60b
1
Parent(s):
832ac59
Update api_usage.py
Browse files- api_usage.py +1 -1
api_usage.py
CHANGED
@@ -622,7 +622,7 @@ async def check_bedrock_claude_status(session, key, secret):
|
|
622 |
if msg == "Maybe":
|
623 |
invoke_info = await send_signed_request_bedrock(session, payload, f"anthropic.{model_name}", key, secret, region)
|
624 |
if 'messages.0' in invoke_info.get('message'):
|
625 |
-
models[model_name].append(f'{region}:
|
626 |
else:
|
627 |
models[model_name].append(region)
|
628 |
elif form_info.get('message') == "Operation not allowed" and "Operation not allowed" not in models[model_name]:
|
|
|
622 |
if msg == "Maybe":
|
623 |
invoke_info = await send_signed_request_bedrock(session, payload, f"anthropic.{model_name}", key, secret, region)
|
624 |
if 'messages.0' in invoke_info.get('message'):
|
625 |
+
models[model_name].append(f'{region}: may be Unavailable if disabled')
|
626 |
else:
|
627 |
models[model_name].append(region)
|
628 |
elif form_info.get('message') == "Operation not allowed" and "Operation not allowed" not in models[model_name]:
|