mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-05 17:30:48 +08:00
missing rename in api_client
This commit is contained in:
committed by
Andreas Köpf
parent
26ae43e945
commit
f6ea90187c
@@ -66,8 +66,8 @@ class ApiClient:
|
||||
) -> protocol_schema.Task:
|
||||
return self.fetch_task(protocol_schema.TaskRequestType.random, user, collective=collective)
|
||||
|
||||
def ack_task(self, task_id: str, post_id: str) -> None:
|
||||
req = protocol_schema.TaskAck(message_id=post_id)
|
||||
def ack_task(self, task_id: str, message_id: str) -> None:
|
||||
req = protocol_schema.TaskAck(message_id=message_id)
|
||||
return self.post(f"/api/v1/tasks/{task_id}/ack", req.dict())
|
||||
|
||||
def nack_task(self, task_id: str, reason: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user