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
-1
View File
@@ -40,7 +40,6 @@ const AI_PLACEHOLDERS: Record<string, string> = {
__CHAT__: 'Generating...',
__AUTOFILL__: 'Autofilling metadata...',
__EMBEDDING__: 'Generating embeddings...',
__TRANSCRIPTION__: 'Transcribing...',
__RUNNING__: 'Generating...',
}
@@ -40,7 +40,7 @@ interface AgentFormDialogProps {
const agentFormSchema = z.object({
name: z.string().min(1, 'Name is required'),
type: z.enum(['chat', 'autofill', 'embedding', 'transcription']),
type: z.enum(['chat', 'autofill', 'embedding']),
avatar: z.string().optional(),
providerId: z.string().optional(),
modelId: z.string().optional(),
@@ -268,7 +268,6 @@ export function AgentFormDialog({
<SelectItem value="chat">Chat</SelectItem>
<SelectItem value="autofill">Autofill</SelectItem>
<SelectItem value="embedding">Embedding</SelectItem>
<SelectItem value="transcription">Transcription</SelectItem>
</SelectContent>
</Select>
</Field>
@@ -12,7 +12,6 @@ import {
MessageSquare,
Zap,
Cpu,
Type,
Puzzle,
} from 'lucide-react'
import { useState } from 'react'
@@ -51,7 +50,6 @@ const AGENT_TYPES: {
{ type: 'chat', label: 'Chat', icon: MessageSquare },
{ type: 'autofill', label: 'Autofill', icon: Zap },
{ type: 'embedding', label: 'Embedding', icon: Cpu },
{ type: 'transcription', label: 'Transcription', icon: Type },
]
export function AgentsSettings({ teamId }: AgentsSettingsProps) {
@@ -65,7 +63,6 @@ export function AgentsSettings({ teamId }: AgentsSettingsProps) {
chat: true,
autofill: true,
embedding: true,
transcription: true,
})
const { data: agents = [], isLoading } = useQuery({
@@ -229,9 +226,7 @@ export function AgentsSettings({ teamId }: AgentsSettingsProps) {
</div>
<div className="flex items-center gap-2">
{!(
(section.type === 'autofill' ||
section.type === 'transcription' ||
section.type === 'embedding') &&
(section.type === 'autofill' || section.type === 'embedding') &&
typeAgents.length > 0
) && (
<Button