feat: remove all ai transcription related code and schema

This commit is contained in:
yiling
2026-05-28 14:23:02 +08:00
parent 721a9c13d7
commit 5173bb2a01
25 changed files with 38 additions and 281 deletions
-24
View File
@@ -262,30 +262,6 @@ export class UploadService {
})
}
const transcriptionAgent = await tx.agent.findFirst({
where: {
type: 'transcription',
enabled: true,
user: { teamMembers: { some: { teamId: team.id } } },
},
})
if (transcriptionAgent) {
await tx.workflowTask.create({
data: {
assetId: asset.id,
type: WorkflowTaskType.ai_transcription,
status: WorkflowTaskStatus.pending,
teamId: team.id,
projectId: asset.projectId,
payload: {
projectId: asset.projectId!,
agent: { agentId: transcriptionAgent.id },
},
},
})
}
// Ai Embedding if enabled via agent
const embeddingAgent = await tx.agent.findFirst({
where: {