Skip to content

Commit a2e07e7

Browse files
fix config load paths and update ads version
1 parent fbb8d8f commit a2e07e7

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

ads/aqua/app.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -306,18 +306,20 @@ def get_config(self, model_id: str, config_file_name: str) -> Dict:
306306
)
307307
base_model = self.ds_client.get_model(base_model_ocid).data
308308
artifact_path = get_artifact_path(base_model.custom_metadata_list)
309-
config_path = f"{os.path.dirname(artifact_path)}/config/"
310309
else:
311310
logger.info(f"Loading {config_file_name} for model {oci_model.id}...")
312311
artifact_path = get_artifact_path(oci_model.custom_metadata_list)
313-
config_path = f"{artifact_path.rstrip('/')}/config/"
314312

315313
if not artifact_path:
316314
logger.debug(
317315
f"Failed to get artifact path from custom metadata for the model: {model_id}"
318316
)
319317
return config
320318

319+
config_path = f"{os.path.dirname(artifact_path)}/config/"
320+
if not is_path_exists(config_path):
321+
config_path = f"{artifact_path.rstrip('/')}/config/"
322+
321323
config_file_path = f"{config_path}{config_file_name}"
322324
if is_path_exists(config_file_path):
323325
try:

docs/source/release_notes.rst

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Release Notes
33
=============
44

5+
2.12.11
6+
-------
7+
Release date: Feb 5th, 2024
8+
9+
* Fixed bug while loading model configuration in AI Quick Actions.
10+
11+
512
2.12.10
613
-------
714
Release date: Feb 5th, 2024

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi"
2121

2222
# Required
2323
name = "oracle_ads" # the install (PyPI) name; name for local build in [tool.flit.module] section below
24-
version = "2.12.10"
24+
version = "2.12.11"
2525

2626
# Optional
2727
description = "Oracle Accelerated Data Science SDK"

0 commit comments

Comments
 (0)