diff --git a/apps/chat/serializers/chat.py b/apps/chat/serializers/chat.py index f476d973e25..cce28eddffa 100644 --- a/apps/chat/serializers/chat.py +++ b/apps/chat/serializers/chat.py @@ -185,7 +185,7 @@ def generate_prompt(self, instance: dict): model_type__in=SUPPORTED_MODEL_TYPES ).exists() if not model_exist: - raise Exception(_("Model does not exists or is not an LLM model")) + raise Exception(_("Model does not exist or is not an LLM model")) def process(): model = get_model_instance_by_model_workspace_id(model_id=model_id, workspace_id=workspace_id, diff --git a/apps/tools/serializers/tool.py b/apps/tools/serializers/tool.py index 74ea3f48e01..d7dd78902b9 100644 --- a/apps/tools/serializers/tool.py +++ b/apps/tools/serializers/tool.py @@ -1640,7 +1640,7 @@ def generate_code(self): SUPPORTED_MODEL_TYPES = ["LLM"] model_exist = QuerySet(Model).filter(id=model_id, model_type__in=SUPPORTED_MODEL_TYPES).exists() if not model_exist: - raise Exception(_("Model does not exists or is not an LLM model")) + raise Exception(_("Model does not exist or is not an LLM model")) def process(): model = get_model_instance_by_model_workspace_id(