mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-28 16:20:34 +08:00
fix: add response_model to tasks_interaction
This is required for output validation and for the mock server.
This commit is contained in:
committed by
Andreas Köpf
parent
898113ef8d
commit
e15e208b20
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user