Skip to content

Commit 2a9acee

Browse files
committed
Updates the ADS version to RC
1 parent b765c1f commit 2a9acee

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

ads/aqua/extension/deployment_handler.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,14 @@ def get(self, model_deployment_id):
444444
list_model_result = aqua_client.fetch_data()
445445
return self.finish(list_model_result)
446446
except Exception as ex:
447-
raise HTTPError(500, str(ex))
447+
error_type = type(ex).__name__
448+
error_message = (
449+
f"Error fetching data from endpoint '{endpoint}' [{error_type}]: {ex}"
450+
)
451+
logger.error(
452+
error_message, exc_info=True
453+
) # Log with stack trace for diagnostics
454+
raise HTTPError(500, error_message) from ex
448455

449456

450457
__handlers__ = [

pyproject.toml

Lines changed: 1 addition & 1 deletion
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.13.21"
24+
version = "2.14.0.rc"
2525

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

tests/unitary/with_extras/langchain/chat_models/test_oci_data_science.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*--
33

4-
# Copyright (c) 2024 Oracle and/or its affiliates.
4+
# Copyright (c) 2024, 2025 Oracle and/or its affiliates.
55
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
66

77
"""Test OCI Data Science Model Deployment Endpoint."""
@@ -12,15 +12,13 @@
1212

1313
import pytest
1414

15-
1615
if sys.version_info < (3, 9):
1716
pytest.skip(allow_module_level=True)
1817

1918
from langchain_core.messages import AIMessage, AIMessageChunk
2019
from requests.exceptions import HTTPError
2120

22-
from ads.llm import ChatOCIModelDeploymentVLLM, ChatOCIModelDeploymentTGI
23-
21+
from ads.llm import ChatOCIModelDeploymentTGI, ChatOCIModelDeploymentVLLM
2422

2523
CONST_MODEL_NAME = "odsc-vllm"
2624
CONST_ENDPOINT = "https://oci.endpoint/ocid/predict"
@@ -162,7 +160,7 @@ def test_stream_vllm(*args: Any) -> None:
162160
else:
163161
output += chunk
164162
count += 1
165-
assert count == 5
163+
assert count == 6
166164
assert output is not None
167165
if output is not None:
168166
assert str(output.content).strip() == CONST_COMPLETION

0 commit comments

Comments
 (0)