Skip to content

Commit 57806fb

Browse files
sararobcopybara-github
authored andcommitted
fix: LLM - Fixed filter in list_tuned_model_names
PiperOrigin-RevId: 555359431
1 parent 40f3e41 commit 57806fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vertexai/language_models/_language_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ def _get_tuned_models_dir_uri(model_id: str) -> str:
10831083

10841084
def _list_tuned_model_names(model_id: str) -> List[str]:
10851085
tuned_models = aiplatform.Model.list(
1086-
filter=f'labels.{_TUNING_BASE_MODEL_ID_LABEL_KEY}="{model_id}"',
1086+
filter=f'labels.{_TUNING_BASE_MODEL_ID_LABEL_KEY}="{model_id.replace("@", "-")}"',
10871087
# TODO(b/275444096): Remove the explicit location once models are deployed to the user's selected location
10881088
location=_TUNED_MODEL_LOCATION,
10891089
)

0 commit comments

Comments
 (0)