We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c424a09 commit 10888beCopy full SHA for 10888be
ads/aqua/__init__.py
@@ -8,7 +8,7 @@
8
import sys
9
import os
10
from ads.aqua.utils import fetch_service_compartment
11
-from ads.config import OCI_RESOURCE_PRINCIPAL_VERSION
+from ads.config import NB_SESSION_OCID, OCI_RESOURCE_PRINCIPAL_VERSION
12
from ads import set_auth
13
14
logger = logging.getLogger(__name__)
@@ -26,3 +26,8 @@
26
logger.error(
27
f"ODSC_MODEL_COMPARTMENT_OCID environment variable is not set for Aqua, due to {e}."
28
)
29
+ if NB_SESSION_OCID:
30
+ logger.error(
31
+ f"Aqua is not available for this notebook session {NB_SESSION_OCID}."
32
+ )
33
+ exit()
0 commit comments