feat: configure embedding servers and transcript agents

This commit is contained in:
yiling
2026-12-04 18:54:29 +08:00
parent 72a7f68c92
commit 553269012c
57 changed files with 1686 additions and 271 deletions
@@ -0,0 +1,17 @@
/*
Warnings:
- A unique constraint covering the columns `[transcription_task_id]` on the table `asset_comments` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterEnum
ALTER TYPE "AgentType" ADD VALUE 'transcription';
-- AlterTable
ALTER TABLE "asset_comments" ADD COLUMN "transcription_task_id" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "asset_comments_transcription_task_id_key" ON "asset_comments"("transcription_task_id");
-- AddForeignKey
ALTER TABLE "asset_comments" ADD CONSTRAINT "asset_comments_transcription_task_id_fkey" FOREIGN KEY ("transcription_task_id") REFERENCES "workflow_tasks"("id") ON DELETE SET NULL ON UPDATE CASCADE;
+4
View File
@@ -701,6 +701,8 @@ model AssetComment {
second Float?
sessionId String? @map("session_id")
session AgentSession? @relation(fields: [sessionId], references: [id], onDelete: SetNull)
transcriptionTaskId String? @unique @map("transcription_task_id")
transcriptionTask WorkflowTask? @relation(fields: [transcriptionTaskId], references: [id], onDelete: SetNull)
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
@@ -929,6 +931,7 @@ model WorkflowTask {
sessionId String? @map("session_id")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
transcriptionFailureComment AssetComment?
@@map("workflow_tasks")
@@index([status, heartbeat])
@@ -942,6 +945,7 @@ enum AgentType {
chat
autofill
embedding
transcription
}
enum AgentSessionType {