Skip to content

Commit f7f379c

Browse files
committed
fix: model name too long
1 parent 742811a commit f7f379c

File tree

5 files changed

+400
-7
lines changed

5 files changed

+400
-7
lines changed

backend/service/task_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ async def create_task_svc(request: Request, body: TaskCreateReq):
307307
"""
308308
task_id = str(uuid.uuid4())
309309
logger.info("Creating task '%s' with ID: %s" % (body.name, task_id))
310+
if body.model and len(body.model) > 255:
311+
return ErrorResponse.bad_request("Model name must be less than 255 characters")
310312

311313
cert_file, key_file = _get_cert_config(body)
312314

0 commit comments

Comments
 (0)