Increase connect timeout

This commit is contained in:
Aiden Dai
2024-12-19 16:45:18 +08:00
parent 581638b794
commit b2c187c716

View File

@@ -42,7 +42,7 @@ from api.setting import DEBUG, AWS_REGION, ENABLE_CROSS_REGION_INFERENCE, DEFAUL
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
config = Config(connect_timeout=1, read_timeout=120, retries={"max_attempts": 1}) config = Config(connect_timeout=60, read_timeout=120, retries={"max_attempts": 1})
bedrock_runtime = boto3.client( bedrock_runtime = boto3.client(
service_name="bedrock-runtime", service_name="bedrock-runtime",