Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ads/aqua/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,18 +306,20 @@ def get_config(self, model_id: str, config_file_name: str) -> Dict:
)
base_model = self.ds_client.get_model(base_model_ocid).data
artifact_path = get_artifact_path(base_model.custom_metadata_list)
config_path = f"{os.path.dirname(artifact_path)}/config/"
else:
logger.info(f"Loading {config_file_name} for model {oci_model.id}...")
artifact_path = get_artifact_path(oci_model.custom_metadata_list)
config_path = f"{artifact_path.rstrip('/')}/config/"

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

config_path = f"{os.path.dirname(artifact_path)}/config/"
if not is_path_exists(config_path):
config_path = f"{artifact_path.rstrip('/')}/config/"

config_file_path = f"{config_path}{config_file_name}"
if is_path_exists(config_file_path):
try:
Expand Down
7 changes: 7 additions & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Release Notes
=============

2.12.11
-------
Release date: Feb 5th, 2024

* Fixed bug while loading model configuration in AI Quick Actions.


2.12.10
-------
Release date: Feb 5th, 2024
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi"

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

# Optional
description = "Oracle Accelerated Data Science SDK"
Expand Down