Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/chat/serializers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion apps/tools/serializers/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down