refac: introduce model id length limit

This commit is contained in:
Timothy Jaeryang Baek
2025-10-08 16:54:06 -05:00
parent fbfbc29789
commit 5043e7fc8c
2 changed files with 13 additions and 1 deletions
+1
View File
@@ -38,6 +38,7 @@ class ERROR_MESSAGES(str, Enum):
ID_TAKEN = "Uh-oh! This id is already registered. Please choose another id string."
MODEL_ID_TAKEN = "Uh-oh! This model id is already registered. Please choose another model id string."
NAME_TAG_TAKEN = "Uh-oh! This name tag is already registered. Please choose another name tag string."
MODEL_ID_TOO_LONG = "The model id is too long. Please make sure your model id is less than 256 characters long."
INVALID_TOKEN = (
"Your session has expired or the token is invalid. Please sign in again."