mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 19:04:23 +00:00
feat: remove all ai transcription related code and schema
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user