From 7997b4eb966fa9c0999dc1a8183ffd4af8c44f1c Mon Sep 17 00:00:00 2001 From: Dallas98 <990259227@qq.com> Date: Thu, 4 Dec 2025 17:09:09 +0800 Subject: [PATCH] feat(synthesis): add functionality to archive synthesis tasks to existing datasets --- .../components/SynthesisTaskTab.tsx | 52 +++++- .../src/pages/SynthesisTask/synthesis-api.ts | 5 + .../generation/interface/generation_api.py | 33 ++++ .../generation/service/export_service.py | 160 ++++++++++++++++++ .../app/module/generation/service/prompt.py | 4 +- 5 files changed, 251 insertions(+), 3 deletions(-) create mode 100644 runtime/datamate-python/app/module/generation/service/export_service.py diff --git a/frontend/src/pages/SynthesisTask/components/SynthesisTaskTab.tsx b/frontend/src/pages/SynthesisTask/components/SynthesisTaskTab.tsx index 9bebb919..8a43e3b3 100644 --- a/frontend/src/pages/SynthesisTask/components/SynthesisTaskTab.tsx +++ b/frontend/src/pages/SynthesisTask/components/SynthesisTaskTab.tsx @@ -16,7 +16,9 @@ import { formatDateTime } from "@/utils/unit"; import { querySynthesisTasksUsingGet, deleteSynthesisTaskByIdUsingDelete, + archiveSynthesisTaskToDatasetUsingPost, } from "@/pages/SynthesisTask/synthesis-api"; +import { createDatasetUsingPost } from "@/pages/DataManagement/dataset.api"; interface SynthesisTask { id: string; @@ -183,6 +185,23 @@ export default function SynthesisTaskTab() { icon={} /> + + +