@@ -205,8 +205,10 @@ def test_jumpstart_cache_get_header():
205
205
)
206
206
assert (
207
207
"Unable to find model manifest for 'pytorch-ic-imagenet-inception-v3-classification-4' with "
208
- "version '3.*'. Visit https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html "
209
- "for updated list of models, or try another AWS region. Consider using model ID "
208
+ "version '3.*'. Specify a different model ID or try a different AWS Region. "
209
+ "For a list of available models, see "
210
+ "https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html. "
211
+ "Consider using model ID "
210
212
"'pytorch-ic-imagenet-inception-v3-"
211
213
"classification-4' with version '2.0.0'."
212
214
) in str (e .value )
@@ -215,17 +217,19 @@ def test_jumpstart_cache_get_header():
215
217
cache .get_header (model_id = "pytorch-ic-" , semantic_version_str = "*" )
216
218
assert (
217
219
"Unable to find model manifest for 'pytorch-ic-' with version '*'. "
218
- "Visit https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html "
219
- "for updated list of models, or try another AWS region. "
220
+ "Specify a different model ID or try a different AWS Region. "
221
+ "For a list of available models, see "
222
+ "https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html. "
220
223
"Did you mean to use model ID 'pytorch-ic-imagenet-inception-v3-classification-4'?"
221
224
) in str (e .value )
222
225
223
226
with pytest .raises (KeyError ) as e :
224
227
cache .get_header (model_id = "tensorflow-ic-" , semantic_version_str = "*" )
225
228
assert (
226
229
"Unable to find model manifest for 'tensorflow-ic-' with version '*'. "
227
- "Visit https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html "
228
- "for updated list of models, or try another AWS region. "
230
+ "Specify a different model ID or try a different AWS Region. For a list "
231
+ "of available models, see "
232
+ "https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html. "
229
233
"Did you mean to use model ID 'tensorflow-ic-imagenet-inception-"
230
234
"v3-classification-4'?"
231
235
) in str (e .value )
@@ -238,8 +242,9 @@ def test_jumpstart_cache_get_header():
238
242
)
239
243
assert (
240
244
"Unable to find model manifest for 'ai21-summarize' with version '1.1.003'. "
241
- "Visit https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html "
242
- "for updated list of models, or try another AWS region. "
245
+ "Specify a different model ID or try a different AWS Region. "
246
+ "For a list of available models, see "
247
+ "https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html. "
243
248
"Did you mean to use model ID 'ai21-summarization'?"
244
249
) in str (e .value )
245
250
0 commit comments