gingeekrishna commented on code in PR #69399:
URL: https://github.com/apache/airflow/pull/69399#discussion_r3526403206
##########
providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/generative_model.py:
##########
@@ -64,6 +70,11 @@ def get_eval_task(
experiment: str,
) -> EvalTask:
"""Return an EvalTask object."""
+ if not _VERTEXAI_EVALUATION_AVAILABLE:
+ raise ImportError(
Review Comment:
Fixed — both raises now use `AirflowOptionalProviderFeatureException`. Also
added the import from `airflow.providers.common.compat.sdk`, matching the
pattern used in `bigquery.py` and `dataflow.py`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]