c93f4e94ae
- Implemented a new function to check ASR model connectivity via the /v1/audio/transcriptions endpoint. - Updated ModelEditorDialog.vue to integrate ASR model checks and adjust UI elements accordingly. - Enhanced localization files to reflect changes in ASR terminology and descriptions. - Added ASR configuration options to the knowledge base and updated related migration scripts. - Refactored model handling to support ASR as a distinct model type in the application.
11 lines
652 B
SQL
11 lines
652 B
SQL
-- Migration: 000025_add_asr_config
|
|
-- Description: Add asr_config column to knowledge_bases for ASR (Automatic Speech Recognition) configuration.
|
|
-- ASR config stores the model ID and language settings for audio transcription.
|
|
DO $$ BEGIN RAISE NOTICE '[Migration 000025] Adding asr_config column to knowledge_bases'; END $$;
|
|
|
|
ALTER TABLE knowledge_bases ADD COLUMN IF NOT EXISTS asr_config JSONB;
|
|
|
|
COMMENT ON COLUMN knowledge_bases.asr_config IS 'ASR (Automatic Speech Recognition) configuration: {"enabled": bool, "model_id": string, "language": string}';
|
|
|
|
DO $$ BEGIN RAISE NOTICE '[Migration 000025] asr_config column added successfully'; END $$;
|