File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff 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__ = [
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi"
2121
2222# Required
2323name = " 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
2727description = " Oracle Accelerated Data Science SDK"
Original file line number Diff line number Diff line change 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."""
1212
1313import pytest
1414
15-
1615if sys .version_info < (3 , 9 ):
1716 pytest .skip (allow_module_level = True )
1817
1918from langchain_core .messages import AIMessage , AIMessageChunk
2019from requests .exceptions import HTTPError
2120
22- from ads .llm import ChatOCIModelDeploymentVLLM , ChatOCIModelDeploymentTGI
23-
21+ from ads .llm import ChatOCIModelDeploymentTGI , ChatOCIModelDeploymentVLLM
2422
2523CONST_MODEL_NAME = "odsc-vllm"
2624CONST_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
You can’t perform that action at this time.
0 commit comments