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