publish as pipeline

This commit is contained in:
zxhlyh
2025-06-10 15:09:32 +08:00
parent d3eedaf0ec
commit 5e71f7c825
5 changed files with 26 additions and 6 deletions

View File

@ -342,3 +342,14 @@ export const useExportPipelineDSL = () => {
},
})
}
export const usePublishAsCustomizedPipeline = () => {
return useMutation({
mutationKey: [NAME_SPACE, 'publish-as-customized-pipeline'],
mutationFn: ({
pipelineId,
}: { pipelineId: string }) => {
return get(`/rag/customized/pipelines/${pipelineId}/publish`)
},
})
}