We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4cdb05 commit a9d7632Copy full SHA for a9d7632
vertexai/_model_garden/_model_garden_models.py
@@ -268,7 +268,10 @@ def _validate_launch_stage(
268
269
if publisher_launch_stage not in self._LAUNCH_STAGE:
270
raise ValueError(
271
- f"The model you are trying to instantiate does not support the launch stage: {publisher_launch_stage.name}"
+ f"The model you are trying to instantiate has launch stage '{publisher_launch_stage.name}'"
272
+ f", but the '{type(self).__module__}.{type(self).__name__}' class"
273
+ f" only supports the following launch stages: {self._LAUNCH_STAGE}."
274
+ " For preview models please use the classes from the `vertexai.preview.*` namespace."
275
)
276
277
# Subclasses override this attribute to specify their instance schema
0 commit comments