File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def _find_matching_aqua_model(model_id: str) -> Optional[AquaModelSummary]:
241
241
aqua_model_app = AquaModelApp ()
242
242
model_ocid = aqua_model_app ._find_matching_aqua_model (model_id = model_id_lower )
243
243
if model_ocid :
244
- return aqua_model_app .get (model_ocid , load_model_card = False )
244
+ return aqua_model_app .get (model_ocid )
245
245
246
246
return None
247
247
Original file line number Diff line number Diff line change @@ -491,8 +491,6 @@ def get(self, model_id: str) -> "AquaModel":
491
491
----------
492
492
model_id: str
493
493
The model OCID.
494
- load_model_card: (bool, optional). Defaults to `True`.
495
- Whether to load model card from artifacts or not.
496
494
497
495
Returns
498
496
-------
Original file line number Diff line number Diff line change 14
14
15
15
from ads .aqua .common .errors import AquaRuntimeError
16
16
from ads .aqua .common .utils import get_hf_model_info
17
- from ads .aqua .constants import (
18
- AQUA_TROUBLESHOOTING_LINK ,
19
- STATUS_CODE_MESSAGES ,
20
- )
17
+ from ads .aqua .constants import AQUA_TROUBLESHOOTING_LINK , STATUS_CODE_MESSAGES
21
18
from ads .aqua .extension .errors import ReplyDetails
22
19
from ads .aqua .extension .model_handler import (
23
20
AquaHuggingFaceHandler ,
27
24
)
28
25
from ads .aqua .model import AquaModelApp
29
26
from ads .aqua .model .entities import AquaModel , AquaModelSummary , HFModelSummary
30
- from ads .config import USER , SERVICE
27
+ from ads .config import SERVICE , USER
31
28
32
29
33
30
class ModelHandlerTestCase (TestCase ):
@@ -346,9 +343,7 @@ def test_find_matching_aqua_model(
346
343
aqua_model_mock_list .assert_called_once ()
347
344
348
345
if expected_aqua_model_name :
349
- mock_get_model .assert_called_with (
350
- expected_aqua_model_id , load_model_card = False
351
- )
346
+ mock_get_model .assert_called_with (expected_aqua_model_id )
352
347
else :
353
348
assert test_result == None
354
349
You can’t perform that action at this time.
0 commit comments