diff --git a/google/cloud/aiplatform/models.py b/google/cloud/aiplatform/models.py index 8f05e2b04a..fdaf5cfada 100644 --- a/google/cloud/aiplatform/models.py +++ b/google/cloud/aiplatform/models.py @@ -2586,7 +2586,7 @@ def upload_xgboost_model_file( if xgboost_version not in XGBOOST_SUPPORTED_VERSIONS: _LOGGER.error( - f"XGBoost version {version} is not supported. " + f"XGBoost version {xgboost_version} is not supported. " f"Supported versions: {XGBOOST_SUPPORTED_VERSIONS}" ) @@ -2793,7 +2793,7 @@ def upload_scikit_learn_model_file( if sklearn_version not in SKLEARN_SUPPORTED_VERSIONS: _LOGGER.error( - f"Scikit-learn version {version} is not supported. " + f"Scikit-learn version {sklearn_version} is not supported. " f"Supported versions: {SKLEARN_SUPPORTED_VERSIONS}" ) @@ -3007,7 +3007,7 @@ def upload_tensorflow_saved_model( if tensorflow_version not in TENSORFLOW_SUPPORTED_VERSIONS: _LOGGER.error( - f"Tensorflow version {version} is not supported. " + f"Tensorflow version {tensorflow_version} is not supported. " f"Supported versions: {TENSORFLOW_SUPPORTED_VERSIONS}" )