From f649d6459eec86f779065050602e4a7382808483 Mon Sep 17 00:00:00 2001 From: simpleqt <89645338+simpleqt@users.noreply.github.com> Date: Thu, 17 Sep 2026 00:41:56 +0800 Subject: [PATCH] fix: correct 'does not exists' in two model error messages Subject-verb agreement: 'Model does not exists or is not an LLM model' -> 'Model does not exist ...' in the tool and chat serializers. --- apps/chat/serializers/chat.py | 2 +- apps/tools/serializers/tool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(