From e15e208b201e623aafb6419bb08ae88fa14b499b Mon Sep 17 00:00:00 2001 From: Jack Michaud Date: Sun, 1 Jan 2023 10:05:34 -0500 Subject: [PATCH] fix: add response_model to tasks_interaction This is required for output validation and for the mock server. --- backend/oasst_backend/api/v1/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/oasst_backend/api/v1/tasks.py b/backend/oasst_backend/api/v1/tasks.py index a271d5f0..570834ad 100644 --- a/backend/oasst_backend/api/v1/tasks.py +++ b/backend/oasst_backend/api/v1/tasks.py @@ -204,7 +204,7 @@ def tasks_acknowledge_failure( raise OasstError("Failed to not acknowledge task.", OasstErrorCode.TASK_NACK_FAILED) -@router.post("/interaction") +@router.post("/interaction", response_model=protocol_schema.TaskDone) def tasks_interaction( *, db: Session = Depends(deps.get_db),