mingdaoy commented on code in PR #52819:
URL: https://github.com/apache/airflow/pull/52819#discussion_r2185918678
##########
providers/openai/src/airflow/providers/openai/hooks/openai.py:
##########
@@ -45,10 +45,7 @@
from openai.types.vector_stores import VectorStoreFile,
VectorStoreFileBatch, VectorStoreFileDeleted
from airflow.providers.openai.exceptions import OpenAIBatchJobException,
OpenAIBatchTimeout
-try:
- from airflow.sdk import BaseHook
-except ImportError:
- from airflow.hooks.base import BaseHook # type:
ignore[attr-defined,no-redef]
+from airflow.providers.openai.version_compat import BaseHook
Review Comment:
@dominikhei @amoghrajesh Fixed. Thanks.
--
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]