Skip to content

Commit d4867ba

Browse files
evakravipapriwal
andauthored
fix(jumpstart): name JumpStart in the content bucket error (#6243)
`get_jumpstart_content_bucket` named Neo in its error for a region without a JumpStart entry. In v2 this message is the user-visible failure for `deepseek-llm-r1-distill-llama-8b` in `eusc-de-east-1` (#6242). Name JumpStart in the error. --- X-AI-Prompt: What is the minimal source change that fixes the EU Sovereign Cloud JumpStart error? X-AI-Tool: claude-code Co-authored-by: papriwal <papriwal@amazon.com>
1 parent 3a39e1c commit d4867ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎sagemaker-core/src/sagemaker/core/jumpstart/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def get_jumpstart_content_bucket(
204204
except KeyError:
205205
formatted_launched_regions_str = get_jumpstart_launched_regions_message()
206206
raise ValueError(
207-
f"Unable to get content bucket for Neo in {region} region. "
207+
f"Unable to get content bucket for JumpStart in {region} region. "
208208
f"{formatted_launched_regions_str}"
209209
)
210210

‎sagemaker-core/tests/unit/test_jumpstart_utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def test_get_jumpstart_content_bucket_with_override(self):
491491
def test_get_jumpstart_content_bucket_invalid_region(self):
492492
"""Test with invalid region"""
493493
with patch.object(constants, "JUMPSTART_REGION_NAME_TO_LAUNCHED_REGION_DICT", {}):
494-
with pytest.raises(ValueError, match="Unable to get content bucket for Neo"):
494+
with pytest.raises(ValueError, match="Unable to get content bucket for JumpStart"):
495495
utils.get_jumpstart_content_bucket("invalid-region")
496496

497497

0 commit comments

Comments
 (0)