superdup95
commited on
Commit
•
f65b699
1
Parent(s):
e9a71f2
Update api_usage.py
Browse files- api_usage.py +1 -0
api_usage.py
CHANGED
@@ -472,6 +472,7 @@ def invoke_claude(session, region, modelId):
|
|
472 |
return region
|
473 |
except bedrock_runtime.exceptions.AccessDeniedException as error:
|
474 |
#print(error.response['Error'])
|
|
|
475 |
except bedrock_runtime.exceptions.ResourceNotFoundException as error:
|
476 |
#print(error.response['Error'])
|
477 |
return invoke_claude(session, region, "anthropic.claude-v2:1")
|
|
|
472 |
return region
|
473 |
except bedrock_runtime.exceptions.AccessDeniedException as error:
|
474 |
#print(error.response['Error'])
|
475 |
+
return
|
476 |
except bedrock_runtime.exceptions.ResourceNotFoundException as error:
|
477 |
#print(error.response['Error'])
|
478 |
return invoke_claude(session, region, "anthropic.claude-v2:1")
|