Skip to content

Commit

Permalink
chore: move @ for model alias outside alias_name
Browse files Browse the repository at this point in the history
  • Loading branch information
lmontier-pass committed Sep 17, 2024
1 parent 6667c4a commit c0a7993
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ModelWithMetadata:


class ModelHandler:
MODEL_ALIAS = "@production"
MODEL_ALIAS = "production"

def __init__(self) -> None:
custom_logger.info("Connecting to mlflow")
Expand Down Expand Up @@ -57,4 +57,4 @@ def get_model_hash_from_mlflow(self, model_name: str):

@staticmethod
def _get_mlflow_model_name(model_name: ModelName):
return f"api_{model_name.value}_{ENV_SHORT_NAME}{ModelHandler.MODEL_ALIAS}"
return f"api_{model_name.value}_{ENV_SHORT_NAME}@{ModelHandler.MODEL_ALIAS}"

0 comments on commit c0a7993

Please sign in to comment.