mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-02 17:00:28 +08:00
Use enum for type definition
This commit is contained in:
@@ -69,7 +69,8 @@ export const TaskTypes = [
|
||||
category: TaskCategory.Label,
|
||||
pathname: "/label/label_prompter_reply",
|
||||
type: "label_prompter_reply",
|
||||
},{
|
||||
},
|
||||
{
|
||||
label: "Label Assistant Reply",
|
||||
desc: "Provide labels for a prompt.",
|
||||
category: TaskCategory.Label,
|
||||
|
||||
@@ -3,7 +3,7 @@ import { LabelingTaskType, useLabelingTask } from "./useLabelingTask";
|
||||
|
||||
export interface LabelAssistantReplyTask {
|
||||
id: string;
|
||||
type: "label_prompter_reply";
|
||||
type: LabelingTaskType.label_assistant_reply;
|
||||
message_id: string;
|
||||
valid_labels: string[];
|
||||
reply: string;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { LabelingTaskType, useLabelingTask } from "./useLabelingTask";
|
||||
|
||||
export interface LabelInitialPromptTask {
|
||||
id: string;
|
||||
type: "label_initial_prompt";
|
||||
type: LabelingTaskType.label_initial_prompt;
|
||||
message_id: string;
|
||||
valid_labels: string[];
|
||||
prompt: string;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { LabelingTaskType, useLabelingTask } from "./useLabelingTask";
|
||||
|
||||
export interface LabelPrompterReplyTask {
|
||||
id: string;
|
||||
type: "label_prompter_reply";
|
||||
type: LabelingTaskType.label_prompter_reply;
|
||||
message_id: string;
|
||||
valid_labels: string[];
|
||||
reply: string;
|
||||
|
||||
Reference in New Issue
Block a user