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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vertexai/language_models/_language_models.py

Lines changed: 1 addition & 1 deletion
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)