feat(video): remove video upload support and update related terminology
- Removed support for video file uploads across the application, including updates to the knowledge base and document processing services. - Updated internationalization files to reflect the removal of video-related terminology, changing labels and descriptions to focus solely on audio processing. - Adjusted file type handling to exclude video formats, ensuring users receive accurate feedback regarding supported file types. - Enhanced error handling to provide clear messages when users attempt to upload unsupported video files. This update streamlines the application by focusing on audio processing capabilities and improving user experience through clearer messaging.
This commit is contained in:
@@ -22,8 +22,6 @@ type ReadResult struct {
|
||||
Error string
|
||||
IsAudio bool // true when the result contains raw audio data needing ASR transcription
|
||||
AudioData []byte // raw audio bytes for ASR processing
|
||||
IsVideo bool // true when the result contains raw video data needing multimodal processing
|
||||
VideoData []byte // raw video bytes for video multimodal processing
|
||||
}
|
||||
|
||||
// ImageRef represents an image reference extracted from the document.
|
||||
|
||||
@@ -13,7 +13,6 @@ const (
|
||||
TypeKnowledgeMove = "knowledge:move" // 知识移动任务
|
||||
TypeDataTableSummary = "datatable:summary" // 表格摘要任务
|
||||
TypeImageMultimodal = "image:multimodal" // 图片多模态处理任务(OCR + VLM Caption)
|
||||
TypeVideoMultimodal = "video:multimodal" // 视频多模态处理任务(抽帧 + VLM + ASR)
|
||||
TypeManualProcess = "manual:process" // 手工知识更新任务(cleanup + 重新索引)
|
||||
TypeDataSourceSync = "datasource:sync" // 数据源同步任务
|
||||
)
|
||||
@@ -156,20 +155,6 @@ type ImageMultimodalPayload struct {
|
||||
Language string `json:"language,omitempty"` // Request locale for {{language}} in prompt templates
|
||||
}
|
||||
|
||||
// VideoMultimodalPayload represents the video multimodal processing task payload.
|
||||
type VideoMultimodalPayload struct {
|
||||
TenantID uint64 `json:"tenant_id"`
|
||||
KnowledgeID string `json:"knowledge_id"`
|
||||
KnowledgeBaseID string `json:"knowledge_base_id"`
|
||||
ChunkID string `json:"chunk_id"` // parent text chunk
|
||||
VideoURL string `json:"video_url"` // provider:// URL (e.g. local://..., minio://...)
|
||||
VideoLocalPath string `json:"video_local_path"` // deprecated: kept for backward compat with in-flight tasks
|
||||
EnableVLM bool `json:"enable_vlm"` // enable VLM frame analysis
|
||||
EnableASR bool `json:"enable_asr"` // enable ASR audio transcription
|
||||
Language string `json:"language,omitempty"` // Request locale for {{language}} in prompt templates
|
||||
MaxFrames int `json:"max_frames,omitempty"` // optional: max frames to extract, 0 = no limit
|
||||
}
|
||||
|
||||
// KBCloneTaskStatus represents the status of a knowledge base clone task
|
||||
type KBCloneTaskStatus string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user