mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-10-01 11:41:14 +08:00
Forwarding the real task id in backend interactions and ensure the labeling task works
This commit is contained in:
1 parent
14fa08e2e7
commit
268cd7d7b5
5 files changed
+14
-18
No files matched your search
@@ -13,9 +13,8 @@ export const LabelTask = ({
|
||||
taskType,
|
||||
onReplyChanged,
|
||||
}: TaskSurveyProps<{ text: string; labels: { [k: string]: number }; message_id: string }>) => {
|
||||
const [sliderValues, setSliderValues] = useState<number[]>([]);
|
||||
|
||||
const valid_labels = task.valid_labels;
|
||||
const [sliderValues, setSliderValues] = useState<number[]>(new Array(valid_labels.length).fill(0));
|
||||
|
||||
useEffect(() => {
|
||||
onReplyChanged({ content: { labels: {}, text: task.reply, message_id: task.message_id }, state: "DEFAULT" });
|
||||
|
||||
Reference in new issue
Block a user