mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-28 16:20:34 +08:00
Add response types
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export interface CreateTaskReply {
|
||||
text: string;
|
||||
}
|
||||
|
||||
export interface EvaluateTaskReply {
|
||||
ranking: number[];
|
||||
}
|
||||
|
||||
export interface LabelTaskReply {
|
||||
text: string;
|
||||
labels: Record<string, number>;
|
||||
message_id: string;
|
||||
}
|
||||
|
||||
export type AllTaskReplies = CreateTaskReply | EvaluateTaskReply | LabelTaskReply;
|
||||
Reference in New Issue
Block a user