superdup95 commited on
Commit
ba4b4a2
1 Parent(s): 48142c9

Update awsLib.py

Browse files
Files changed (1) hide show
  1. awsLib.py +0 -2
awsLib.py CHANGED
@@ -3,7 +3,6 @@ import requests
3
  from requests_auth_aws_sigv4 import AWSSigV4
4
 
5
  # lib by drago
6
- # For getting form data | foundation-model-availability
7
  async def bedrock_model_available(session, key_id="", secret_key="", region="us-east-1", model="anthropic.claude-3-sonnet-20240229-v1%3A"):
8
  try:
9
  model = model.replace(":","%3A") # issue with urlencode just this so should be fine just doint it with replace
@@ -45,7 +44,6 @@ async def bedrock_model_available(session, key_id="", secret_key="", region="us-
45
 
46
  return await response.json()
47
 
48
- # For sending FAKE form, to detect quarantine / blocked zone
49
  async def bedrock_send_fake_form(session, key_id="", secret_key="", region="us-east-1", form_data=""):
50
  endpoint = f'https://bedrock.{region}.amazonaws.com/use-case-for-model-access'
51
 
 
3
  from requests_auth_aws_sigv4 import AWSSigV4
4
 
5
  # lib by drago
 
6
  async def bedrock_model_available(session, key_id="", secret_key="", region="us-east-1", model="anthropic.claude-3-sonnet-20240229-v1%3A"):
7
  try:
8
  model = model.replace(":","%3A") # issue with urlencode just this so should be fine just doint it with replace
 
44
 
45
  return await response.json()
46
 
 
47
  async def bedrock_send_fake_form(session, key_id="", secret_key="", region="us-east-1", form_data=""):
48
  endpoint = f'https://bedrock.{region}.amazonaws.com/use-case-for-model-access'
49