Skip to content

Commit aec767a

Browse files
Merge pull request #297 from cloudera/main
Release 1.28.1
2 parents f3be0e7 + ebf1f4b commit aec767a

File tree

7 files changed

+6
-16
lines changed

7 files changed

+6
-16
lines changed

llm-service/app/services/caii/caii.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -333,17 +333,11 @@ def get_caii_embedding_models() -> List[ModelResponse]:
333333

334334

335335
def get_models_with_task(task_type: str) -> List[Endpoint]:
336-
endpoints: list[ListEndpointEntry] = list_endpoints()
337-
endpoint_details = list(
338-
map(
339-
lambda endpoint: describe_endpoint_entry(endpoint.name, endpoints),
340-
endpoints,
341-
)
342-
)
336+
endpoints: list[Endpoint] = list_endpoints()
343337
llm_endpoints = list(
344338
filter(
345339
lambda endpoint: endpoint.task and endpoint.task == task_type,
346-
endpoint_details,
340+
endpoints,
347341
)
348342
)
349343
return llm_endpoints

llm-service/app/services/models/providers/caii.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
get_llm as get_caii_llm_model,
5252
get_embedding_model as get_caii_embedding_model,
5353
get_reranking_model as get_caii_reranking_model,
54-
describe_endpoint,
54+
describe_endpoint, get_models_with_task,
5555
)
5656
from ...caii.types import ModelResponse
5757
from ...caii.utils import get_cml_version_from_sense_bootstrap
@@ -106,7 +106,7 @@ def is_enabled(cls) -> bool:
106106
return super().is_enabled()
107107
cml_version = Version(version)
108108
if cml_version >= Version("2.0.50-b68"):
109-
available_models = cls.list_llm_models()
109+
available_models = get_models_with_task("TEXT_GENERATION")
110110
if available_models:
111111
return True
112112

prebuilt_artifacts/fe-dist.tar.gz

9 Bytes
Binary file not shown.
338 Bytes
Binary file not shown.

prebuilt_artifacts/rag-api.jar

0 Bytes
Binary file not shown.

scripts/install_node.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
5959
# shellcheck disable=SC1090
6060
source ~/.bashrc > /dev/null
6161

62-
export NVM_DIR="$HOME/rag-studio/.nvm"
63-
64-
if [ -z "$IS_COMPOSABLE" ]; then
65-
export NVM_DIR="$HOME/.nvm"
66-
fi
62+
export NVM_DIR="$HOME/.nvm"
6763

6864
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" > /dev/null # This loads nvm
6965

scripts/release_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export RELEASE_TAG=1.28.0
1+
export RELEASE_TAG=1.28.1

0 commit comments

Comments
 (0)