Skip to content

Commit 2d5f5ec

Browse files
committed
fix: s3 public url for china regions
1 parent 882773e commit 2d5f5ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sagemaker/jumpstart/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,10 @@ def verify_model_region_and_return_specs(
405405
if model_specs.hosting_eula_key and scope == constants.JumpStartScriptScope.INFERENCE.value:
406406
LOGGER.info(
407407
"Using model with end-user license agreement (EULA). "
408-
"See https://%s.s3.%s.amazonaws.com/%s for terms of use.",
408+
"See https://%s.s3.%s.amazonaws.com%s/%s for terms of use.",
409409
get_jumpstart_content_bucket(region=region),
410410
region,
411+
".cn" if region.startswith("cn-") else "",
411412
model_specs.hosting_eula_key,
412413
)
413414

0 commit comments

Comments
 (0)