@@ -205,26 +205,31 @@ def test_jumpstart_cache_get_header():
205205 )
206206 assert (
207207 "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. Consider using model ID 'pytorch-ic-imagenet-inception-v3-"
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 "
212+ "'pytorch-ic-imagenet-inception-v3-"
210213 "classification-4' with version '2.0.0'."
211214 ) in str (e .value )
212215
213216 with pytest .raises (KeyError ) as e :
214217 cache .get_header (model_id = "pytorch-ic-" , semantic_version_str = "*" )
215218 assert (
216219 "Unable to find model manifest for 'pytorch-ic-' with version '*'. "
217- "Visit https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html "
218- "for updated list of models. "
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. "
219223 "Did you mean to use model ID 'pytorch-ic-imagenet-inception-v3-classification-4'?"
220224 ) in str (e .value )
221225
222226 with pytest .raises (KeyError ) as e :
223227 cache .get_header (model_id = "tensorflow-ic-" , semantic_version_str = "*" )
224228 assert (
225229 "Unable to find model manifest for 'tensorflow-ic-' with version '*'. "
226- "Visit https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html "
227- "for updated list of models. "
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. "
228233 "Did you mean to use model ID 'tensorflow-ic-imagenet-inception-"
229234 "v3-classification-4'?"
230235 ) in str (e .value )
@@ -237,8 +242,9 @@ def test_jumpstart_cache_get_header():
237242 )
238243 assert (
239244 "Unable to find model manifest for 'ai21-summarize' with version '1.1.003'. "
240- "Visit https://sagemaker.readthedocs.io/en/stable/doc_utils/pretrainedmodels.html "
241- "for updated list of models. "
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. "
242248 "Did you mean to use model ID 'ai21-summarization'?"
243249 ) in str (e .value )
244250
0 commit comments