use task type instead of prompt template (#1261)

This commit is contained in:
LawyZheng 2024-11-26 11:29:33 +08:00 committed by GitHub
parent 74a9fc70d6
commit 6b417d0e83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 124 additions and 69 deletions

View file

@ -60,7 +60,7 @@ def convert_to_task(task_obj: TaskModel, debug_enabled: bool = False) -> Task:
status=TaskStatus(task_obj.status),
created_at=task_obj.created_at,
modified_at=task_obj.modified_at,
prompt_template=task_obj.prompt_template,
task_type=task_obj.task_type,
title=task_obj.title,
url=task_obj.url,
complete_criterion=task_obj.complete_criterion,