7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
fix(media): allow registering custom speech-to-text models (#992)
tashdroid2463c1479bdb
diff --git a/client/src/components/keys/custom-provider-section.tsx b/client/src/components/keys/custom-provider-section.tsxindex ee3a8aed..eb37f41a 100644--- a/client/src/components/keys/custom-provider-section.tsx+++ b/client/src/components/keys/custom-provider-section.tsx@@ -29,7 +29,7 @@ function parseModelList(raw: string): string[] {export function CustomProviderSection({ onAdded }: { onAdded?: () => void } = {}) {const { t } = useI18n()const queryClient = useQueryClient()- const [customType, setCustomType] = useState<'chat' | 'embedding' | 'image' | 'audio'>('chat')+ const [customType, setCustomType] = useState<'chat' | 'embedding' | 'image' | 'audio' | 'transcription'>('chat')const [baseUrl, setBaseUrl] = useState('')const [model, setModel] = useState('')const [displayName, setDisplayName] = useState('')@@ -130,14 +130,18 @@ export function CustomProviderSection({ onAdded }: { onAdded?: () => void } = {}? 'text-embedding-3-small': customType === 'image'? 'gpt-image-1'- : 'gpt-4o-mini-tts'+ : customType === 'transcription'+ ? 'Systran/faster-whisper-large-v3'+ : 'gpt-4o-mini-tts'const addLabel = customType === 'chat'? (multiple ? t('keys.addModels', { count: models.length }) : t('keys.addModel')): customType === 'embedding'? t('keys.addEmbeddingModel'): customType === 'image'? t('keys.addImageModel')- : t('keys.addAudioModel')+ : customType === 'transcription'+ ? t('keys.addTranscriptionModel')+ : t('keys.addAudioModel')const form = (<form onSubmit={submit} className="flex flex-wrap items-end gap-3">@@ -155,6 +159,7 @@ export function CustomProviderSection({ onAdded }: { onAdded?: () => void } = {}<SelectItem value="embedding" label={t('keys.customTypeEmbedding')}>{t('keys.customTypeEmbedding')}</SelectItem><SelectItem value="image" label={t('keys.customTypeImage')}>{t('keys.customTypeImage')}</SelectItem><SelectItem value="audio" label={t('keys.customTypeAudio')}>{t('keys.customTypeAudio')}</SelectItem>+ <SelectItem value="transcription" label={t('keys.customTypeTranscription')}>{t('keys.customTypeTranscription')}</SelectItem></SelectContent></Select></div>diff --git a/client/src/components/keys/shared.tsx b/client/src/components/keys/shared.tsxindex 102de220..d7376788 100644--- a/client/src/components/keys/shared.tsx+++ b/client/src/components/keys/shared.tsx@@ -87,6 +87,7 @@ export const CUSTOM_MODEL_KIND_LABEL: Record<ApiKeyModel['kind'], string> = {embedding: 'keys.customTypeEmbedding',image: 'keys.customTypeImage',audio: 'keys.customTypeAudio',+ transcription: 'keys.customTypeTranscription',}export function customModelDeleteKey(model: ApiKeyModel): string {diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex 73b939ad..a5dcc1d2 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -393,6 +393,7 @@"customTypeEmbedding": "መክተት","customTypeImage": "ምስል","customTypeAudio": "ኦዲዮ",+ "customTypeTranscription": "Transcription","customBaseUrl": "የመሠረት URL","customModels": "ሞዴሎች","customModel": "ሞዴል",@@ -409,6 +410,7 @@"addEmbeddingModel": "መክተትን ያክሉ","addImageModel": "የምስል ሞዴል ያክሉ","addAudioModel": "የድምጽ ሞዴል ያክሉ",+ "addTranscriptionModel": "Add transcription model","addingCustom": "በማከል ላይ...","discoverModels": "ሞዴሎችን አምጣ","probeNow": "የመጨረሻ ነጥቡን ይፈትሹ",diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex 0fa0f0b5..a5e29243 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -393,6 +393,7 @@"customTypeEmbedding": "التضمين","customTypeImage": "صورة","customTypeAudio": "الصوت",+ "customTypeTranscription": "Transcription","customBaseUrl": "قاعدة URL","customModels": "نماذج","customModel": "نموذج",@@ -409,6 +410,7 @@"addEmbeddingModel": "إضافة التضمين","addImageModel": "إضافة نموذج الصورة","addAudioModel": "إضافة نموذج صوتي",+ "addTranscriptionModel": "Add transcription model","addingCustom": "جارٍ الإضافة…","discoverModels": "جلب النماذج","probeNow": "اختبار نقطة النهاية",diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex 8274f80e..dcc06d68 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Yerləşdirmə","customTypeImage": "Şəkil","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Baza URL","customModels": "Modellər","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Yerləşdirmə əlavə edin","addImageModel": "Şəkil modeli əlavə et","addAudioModel": "Audio model əlavə et",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Əlavə edirəm...","discoverModels": "Modelləri gətir","probeNow": "Son nöqtəni test et",diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex d8142dd5..3026c8d5 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Вграждане","customTypeImage": "Изображение","customTypeAudio": "Аудио",+ "customTypeTranscription": "Transcription","customBaseUrl": "Базова URL","customModels": "Модели","customModel": "Модел",@@ -409,6 +410,7 @@"addEmbeddingModel": "Добави вграждане","addImageModel": "Добави модел на изображението","addAudioModel": "Добави аудио модел",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Добавям...","discoverModels": "Извличане на модели","probeNow": "Тествай крайната точка",diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex feb71c74..f6370550 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -393,6 +393,7 @@"customTypeEmbedding": "এমবেডিং","customTypeImage": "ছবি","customTypeAudio": "অডিও",+ "customTypeTranscription": "Transcription","customBaseUrl": "বেস URL","customModels": "মডেল","customModel": "মডেল",@@ -409,6 +410,7 @@"addEmbeddingModel": "এম্বেডিং যোগ করুন","addImageModel": "ইমেজ মডেল যোগ করুন","addAudioModel": "অডিও মডেল যোগ করুন",+ "addTranscriptionModel": "Add transcription model","addingCustom": "যোগ করা হচ্ছে...","discoverModels": "মডেল আনুন","probeNow": "এন্ডপয়েন্ট পরীক্ষা করুন",diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex ef1dc3b5..b95519f3 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Vložení","customTypeImage": "Obrázek","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Základní URL","customModels": "Modely","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Přidání vložení","addImageModel": "Přidat model obrazu","addAudioModel": "Přidat audio model",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Přidávám...","discoverModels": "Načíst modely","probeNow": "Otestovat endpoint",diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 51c24f98..14e7e816 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Indlejring","customTypeImage": "Billede","customTypeAudio": "Lyd",+ "customTypeTranscription": "Transcription","customBaseUrl": "Base URL","customModels": "Modeller","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Tilføj indlejring","addImageModel": "Tilføj billedmodel","addAudioModel": "Tilføj lydmodel",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Tilføjer...","discoverModels": "Hent modeller","probeNow": "Test endpointet",diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex 00913b67..10c1cac7 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Einbetten","customTypeImage": "Bild","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Basis URL","customModels": "Modelle","customModel": "Modell",@@ -409,6 +410,7 @@"addEmbeddingModel": "Einbettung hinzufügen","addImageModel": "Bildmodell hinzufügen","addAudioModel": "Audiomodell hinzufügen",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Hinzufügen…","discoverModels": "Modelle abrufen","probeNow": "Endpunkt testen",diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex 90034010..3366b703 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Ενσωμάτωση","customTypeImage": "Εικόνα","customTypeAudio": "Ήχος",+ "customTypeTranscription": "Transcription","customBaseUrl": "Βάση URL","customModels": "Μοντέλα","customModel": "Μοντέλο",@@ -409,6 +410,7 @@"addEmbeddingModel": "Προσθήκη ενσωμάτωσης","addImageModel": "Προσθήκη μοντέλου εικόνας","addAudioModel": "Προσθήκη μοντέλου ήχου",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Προσθέτοντας...","discoverModels": "Λήψη μοντέλων","probeNow": "Δοκιμή του endpoint",diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 8626618e..34eff24a 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -419,6 +419,7 @@"customTypeEmbedding": "Embedding","customTypeImage": "Image","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Base URL","customModels": "Models","customModel": "Model",@@ -435,6 +436,7 @@"addEmbeddingModel": "Add embedding","addImageModel": "Add image model","addAudioModel": "Add audio model",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Adding…","discoverModels": "Fetch models","probeNow": "Probe endpoint",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex 9539ec60..7e106d96 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Embedding","customTypeImage": "Imagen","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "URL base","customModels": "Modelos","customModel": "Modelo",@@ -409,6 +410,7 @@"addEmbeddingModel": "Agregar embedding","addImageModel": "Agregar modelo de imagen","addAudioModel": "Agregar modelo de audio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Añadiendo…","discoverModels": "Obtener modelos","probeNow": "Probar el endpoint",diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex b60a5682..c7f8dd17 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -393,6 +393,7 @@"customTypeEmbedding": "جاسازی","customTypeImage": "تصویر","customTypeAudio": "صوتی",+ "customTypeTranscription": "Transcription","customBaseUrl": "پایه URL","customModels": "مدل ها","customModel": "مدل",@@ -409,6 +410,7 @@"addEmbeddingModel": "جاسازی را اضافه کنید","addImageModel": "اضافه کردن مدل تصویر","addAudioModel": "اضافه کردن مدل صوتی",+ "addTranscriptionModel": "Add transcription model","addingCustom": "در حال افزودن…","discoverModels": "دریافت مدلها","probeNow": "آزمایش نقطه پایانی",diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex aa308b50..51b5a503 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Upotus","customTypeImage": "Kuva","customTypeAudio": "Ääni",+ "customTypeTranscription": "Transcription","customBaseUrl": "Perus URL","customModels": "Mallit","customModel": "Malli",@@ -409,6 +410,7 @@"addEmbeddingModel": "Lisää upotus","addImageModel": "Lisää kuvamalli","addAudioModel": "Lisää äänimalli",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Lisään...","discoverModels": "Hae mallit","probeNow": "Testaa päätepiste",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex b14a91c3..16afd37e 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Embedding","customTypeImage": "Image","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "URL de base","customModels": "Modèles","customModel": "Modèle",@@ -409,6 +410,7 @@"addEmbeddingModel": "Ajouter un embedding","addImageModel": "Ajouter un modèle d'image","addAudioModel": "Ajouter un modèle audio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Ajout…","discoverModels": "Récupérer les modèles","probeNow": "Tester l'endpoint",diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 9c4bb752..568a7f2f 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -393,6 +393,7 @@"customTypeEmbedding": "એમ્બેડિંગ","customTypeImage": "છબી","customTypeAudio": "ઓડિયો",+ "customTypeTranscription": "Transcription","customBaseUrl": "આધાર URL","customModels": "મોડલ્સ","customModel": "મોડલ",@@ -409,6 +410,7 @@"addEmbeddingModel": "એમ્બેડિંગ ઉમેરો","addImageModel": "છબી મોડેલ ઉમેરો","addAudioModel": "ઓડિયો મોડલ ઉમેરો",+ "addTranscriptionModel": "Add transcription model","addingCustom": "ઉમેરી રહ્યું છે...","discoverModels": "મોડેલ મેળવો","probeNow": "એન્ડપોઇન્ટ ચકાસો",diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex c982e9fc..da146c4f 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Saka","customTypeImage": "Hoto","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Tushen URL","customModels": "Samfura","customModel": "Samfura",@@ -409,6 +410,7 @@"addEmbeddingModel": "Ƙara sakawa","addImageModel": "Ƙara samfurin hoto","addAudioModel": "Ƙara samfurin sauti",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Ana ƙara…","discoverModels": "Ɗauko samfura","probeNow": "Gwada matattarar",diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex 3bb664be..0e5ab481 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -393,6 +393,7 @@"customTypeEmbedding": "הטמעה","customTypeImage": "תמונה","customTypeAudio": "אודיו",+ "customTypeTranscription": "Transcription","customBaseUrl": "בסיס URL","customModels": "דגמים","customModel": "מודל",@@ -409,6 +410,7 @@"addEmbeddingModel": "הוסף הטמעה","addImageModel": "מודל התמונה הוסף","addAudioModel": "הוסף מודל אודיו",+ "addTranscriptionModel": "Add transcription model","addingCustom": "מוסיף...","discoverModels": "משיכת מודלים","probeNow": "בדיקת נקודת הקצה",diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex 286a16a1..0591860b 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -393,6 +393,7 @@"customTypeEmbedding": "एंबेडिंग","customTypeImage": "छवि","customTypeAudio": "ऑडियो",+ "customTypeTranscription": "Transcription","customBaseUrl": "आधार URL","customModels": "मॉडल","customModel": "मॉडल",@@ -409,6 +410,7 @@"addEmbeddingModel": "एम्बेडिंग जोड़ें","addImageModel": "छवि मॉडल जोड़ें","addAudioModel": "ऑडियो मॉडल जोड़ें",+ "addTranscriptionModel": "Add transcription model","addingCustom": "जोड़ा जा रहा है...","discoverModels": "मॉडल लाएँ","probeNow": "एंडपॉइंट का परीक्षण करें",diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex 770b35e1..c071f7b8 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Ugradnja","customTypeImage": "Slika","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Baza URL","customModels": "Modeli","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Dodavanje ugradnje","addImageModel": "Dodajte model slike","addAudioModel": "Dodaj audio model",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Dodajem...","discoverModels": "Dohvati modele","probeNow": "Testiraj krajnju točku",diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex 8509138c..a31e0398 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Beágyazás","customTypeImage": "Kép","customTypeAudio": "Hang",+ "customTypeTranscription": "Transcription","customBaseUrl": "Alap URL","customModels": "Modellek","customModel": "Modell",@@ -409,6 +410,7 @@"addEmbeddingModel": "Beágyazás hozzáadása","addImageModel": "Képmodell hozzáadása","addAudioModel": "Hangmodell hozzáadása",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Hozzátéve...","discoverModels": "Modellek lekérése","probeNow": "Végpont tesztelése",diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex 4ceb69d9..f1bb865b 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Penyematan","customTypeImage": "Gambar","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Basis URL","customModels": "Model","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Tambahkan penyematan","addImageModel": "Tambahkan model gambar","addAudioModel": "Tambahkan model audio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Menambahkan…","discoverModels": "Ambil model","probeNow": "Uji endpoint",diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex fb982497..82a84d51 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Ntinye","customTypeImage": "Onyonyo","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Ntọala URL","customModels": "Ụdị","customModel": "Nlereanya",@@ -409,6 +410,7 @@"addEmbeddingModel": "Tinye ntinye","addImageModel": "Tinye ihe onyonyo","addAudioModel": "Tinye ụdị ọdịyo",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Na-agbakwụnye…","discoverModels": "Weta ụdị","probeNow": "Nwalee njedebe",diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 81f52c33..3f65f9ce 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Embedding","customTypeImage": "Immagine","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "URL di base","customModels": "Modelli","customModel": "Modello",@@ -409,6 +410,7 @@"addEmbeddingModel": "Aggiungi embedding","addImageModel": "Aggiungi modello immagine","addAudioModel": "Aggiungi modello audio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Aggiunta…","discoverModels": "Recupera modelli","probeNow": "Testa l'endpoint",diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex 6f9e84e7..f86f4a15 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -393,6 +393,7 @@"customTypeEmbedding": "埋め込み","customTypeImage": "画像","customTypeAudio": "オーディオ",+ "customTypeTranscription": "Transcription","customBaseUrl": "ベース URL","customModels": "モデル","customModel": "モデル",@@ -409,6 +410,7 @@"addEmbeddingModel": "埋め込みの追加","addImageModel": "画像モデルを追加","addAudioModel": "オーディオモデルの追加",+ "addTranscriptionModel": "Add transcription model","addingCustom": "追加中…","discoverModels": "モデルを取得","probeNow": "エンドポイントをテスト",diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex d79911f1..c91ff7c3 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -393,6 +393,7 @@"customTypeEmbedding": "ჩანერგვა","customTypeImage": "გამოსახულება","customTypeAudio": "აუდიო",+ "customTypeTranscription": "Transcription","customBaseUrl": "ბაზა URL","customModels": "მოდელები","customModel": "მოდელი",@@ -409,6 +410,7 @@"addEmbeddingModel": "ჩაშენების დამატება","addImageModel": "სურათის მოდელის დამატება","addAudioModel": "აუდიო მოდელის დამატება",+ "addTranscriptionModel": "Add transcription model","addingCustom": "ემატება…","discoverModels": "მოდელების მიღება","probeNow": "ბოლოწერტილის ტესტირება",diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 7941ff56..1c07a59c 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -393,6 +393,7 @@"customTypeEmbedding": "ការបញ្ចូល","customTypeImage": "រូបភាព","customTypeAudio": "សំឡេង",+ "customTypeTranscription": "Transcription","customBaseUrl": "Base URL","customModels": "ម៉ូដែល","customModel": "ម៉ូដែល",@@ -409,6 +410,7 @@"addEmbeddingModel": "បន្ថែមការបញ្ចូល","addImageModel": "បន្ថែមម៉ូដែលរូបភាព","addAudioModel": "បន្ថែមម៉ូដែលសំឡេង",+ "addTranscriptionModel": "Add transcription model","addingCustom": "បន្ថែម...","discoverModels": "ទាញយកម៉ូដែល","probeNow": "សាកល្បងចំណុចបញ្ចប់",diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 3cf90a70..92cf9e46 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -393,6 +393,7 @@"customTypeEmbedding": "ಎಂಬೆಡಿಂಗ್","customTypeImage": "ಚಿತ್ರ","customTypeAudio": "ಆಡಿಯೋ",+ "customTypeTranscription": "Transcription","customBaseUrl": "ಬೇಸ್ URL","customModels": "ಮಾದರಿಗಳು","customModel": "ಮಾದರಿ",@@ -409,6 +410,7 @@"addEmbeddingModel": "ಎಂಬೆಡಿಂಗ್ ಸೇರಿಸಿ","addImageModel": "ಚಿತ್ರದ ಮಾದರಿಯನ್ನು ಸೇರಿಸಿ","addAudioModel": "ಆಡಿಯೋ ಮಾದರಿಯನ್ನು ಸೇರಿಸಿ",+ "addTranscriptionModel": "Add transcription model","addingCustom": "ಸೇರಿಸಲಾಗುತ್ತಿದೆ...","discoverModels": "ಮಾದರಿಗಳನ್ನು ತರಿಸಿ","probeNow": "ಎಂಡ್ಪಾಯಿಂಟ್ ಪರೀಕ್ಷಿಸಿ",diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex 4984cc2d..1877f071 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -393,6 +393,7 @@"customTypeEmbedding": "임베딩","customTypeImage": "이미지","customTypeAudio": "오디오",+ "customTypeTranscription": "Transcription","customBaseUrl": "베이스 URL","customModels": "모델","customModel": "모델",@@ -409,6 +410,7 @@"addEmbeddingModel": "임베딩 추가","addImageModel": "이미지 모델 추가","addAudioModel": "오디오 모델 추가",+ "addTranscriptionModel": "Add transcription model","addingCustom": "추가 중…","discoverModels": "모델 가져오기","probeNow": "엔드포인트 테스트",diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex eef3d085..afedcf32 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Įterpimas","customTypeImage": "Vaizdas","customTypeAudio": "Garsas",+ "customTypeTranscription": "Transcription","customBaseUrl": "Bazės URL","customModels": "Modeliai","customModel": "Modelis",@@ -409,6 +410,7 @@"addEmbeddingModel": "Įterpimo pridėjimas","addImageModel": "Pridėti paveikslėlio modelį","addAudioModel": "Pridėti garso modelį",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Prideda...","discoverModels": "Gauti modelius","probeNow": "Išbandyti galinį tašką",diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex efd2bac1..dffd7564 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -393,6 +393,7 @@"customTypeEmbedding": "ഉൾച്ചേർക്കൽ","customTypeImage": "ചിത്രം","customTypeAudio": "ഓഡിയോ",+ "customTypeTranscription": "Transcription","customBaseUrl": "അടിസ്ഥാന URL","customModels": "മോഡലുകൾ","customModel": "മോഡൽ",@@ -409,6 +410,7 @@"addEmbeddingModel": "ഉൾച്ചേർക്കൽ ചേർക്കുക","addImageModel": "ഇമേജ് മോഡൽ ചേർക്കുക","addAudioModel": "ഓഡിയോ മോഡൽ ചേർക്കുക",+ "addTranscriptionModel": "Add transcription model","addingCustom": "ചേർക്കുന്നു...","discoverModels": "മോഡലുകൾ എടുക്കുക","probeNow": "എൻഡ്പോയിന്റ് പരീക്ഷിക്കുക",diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex cfa9e8bd..4dca0698 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -393,6 +393,7 @@"customTypeEmbedding": "एम्बेडिंग","customTypeImage": "प्रतिमा","customTypeAudio": "ऑडिओ",+ "customTypeTranscription": "Transcription","customBaseUrl": "बेस URL","customModels": "मॉडेल्स","customModel": "मॉडेल",@@ -409,6 +410,7 @@"addEmbeddingModel": "एम्बेडिंग जोडा","addImageModel": "प्रतिमा मॉडेल जोडा","addAudioModel": "ऑडिओ मॉडेल जोडा",+ "addTranscriptionModel": "Add transcription model","addingCustom": "जोडत आहे...","discoverModels": "मॉडेल आणा","probeNow": "एंडपॉइंटची चाचणी करा",diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex c2901357..12abd391 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -393,6 +393,7 @@"customTypeEmbedding": "penyenaman","customTypeImage": "Imej","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "URL asas","customModels": "Model","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Tambah penyisipan","addImageModel": "Tambah model imej","addAudioModel": "Tambah model audio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Menambah...","discoverModels": "Dapatkan model","probeNow": "Uji endpoint",diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 277eb5e2..d2fecad4 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -393,6 +393,7 @@"customTypeEmbedding": "ထည့်သွင်းခြင်း","customTypeImage": "ပုံ","customTypeAudio": "အသံ",+ "customTypeTranscription": "Transcription","customBaseUrl": "အခြေခံ URL","customModels": "မော်ဒယ်များ","customModel": "မော်ဒယ်",@@ -409,6 +410,7 @@"addEmbeddingModel": "ထည့်သွင်းခြင်း ထည့်သွင်းခြင်း","addImageModel": "ပုံမော်ဒယ်ထည့်ပါ","addAudioModel": "အသံမော်ဒယ် ထည့်ပါ",+ "addTranscriptionModel": "Add transcription model","addingCustom": "ထပ်ထည့်နေသည်...","discoverModels": "မော်ဒယ်များ ရယူရန်","probeNow": "အဆုံးမှတ်ကို စမ်းသပ်ရန်",diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex 2f3717f2..8d512271 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -393,6 +393,7 @@"customTypeEmbedding": "सम्मिलित गर्दैछ","customTypeImage": "छवि","customTypeAudio": "अडियो",+ "customTypeTranscription": "Transcription","customBaseUrl": "आधार URL","customModels": "नमूनाहरू","customModel": "नमूना[सम्पादन गर्ने]",@@ -409,6 +410,7 @@"addEmbeddingModel": "सम्मिलित थप्नुहोस्","addImageModel": "छवि नमूना थप्नुहोस्","addAudioModel": "अडियो नमूना थप्नुहोस्",+ "addTranscriptionModel": "Add transcription model","addingCustom": "थप्दैछ...","discoverModels": "मोडेल ल्याउनुहोस्","probeNow": "एन्डपोइन्ट परीक्षण गर्नुहोस्",diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex c7c2e768..643da885 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Embedding","customTypeImage": "Afbeelding","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Basis URL","customModels": "Modellen","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Voeg embedding toe","addImageModel": "Voeg beeldmodel toe","addAudioModel": "Audiomodel toevoegen",+ "addTranscriptionModel": "Add transcription model","addingCustom": "En ik voeg toe...","discoverModels": "Modellen ophalen","probeNow": "Endpoint testen",diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex c9c2d175..1806ff0b 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Innleiring","customTypeImage": "Bilde","customTypeAudio": "Lyd",+ "customTypeTranscription": "Transcription","customBaseUrl": "Base URL","customModels": "Modeller","customModel": "Modell",@@ -409,6 +410,7 @@"addEmbeddingModel": "Legg til embedding","addImageModel": "Legg til bildemodell","addAudioModel": "Legg til lydmodell",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Legger til...","discoverModels": "Hent modeller","probeNow": "Test endepunktet",diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex aa9981af..a9e05c9a 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -393,6 +393,7 @@"customTypeEmbedding": "ଏମ୍ବେଡିଂ","customTypeImage": "ଚିତ୍ର","customTypeAudio": "ଅଡିଓ",+ "customTypeTranscription": "Transcription","customBaseUrl": "ବେସ୍ URL","customModels": "ମଡେଲଗୁଡିକ","customModel": "ମଡେଲ",@@ -409,6 +410,7 @@"addEmbeddingModel": "ଏମ୍ବେଡିଂ ଯୋଡନ୍ତୁ","addImageModel": "ଫଟୋ ମଡେଲ୍ ଯୋଡନ୍ତୁ","addAudioModel": "ଅଡିଓ ମଡେଲ୍ ଯୋଡନ୍ତୁ",+ "addTranscriptionModel": "Add transcription model","addingCustom": "ଯୋଡ଼ିବା...","discoverModels": "ମଡେଲ ଆଣନ୍ତୁ","probeNow": "ଏଣ୍ଡପଏଣ୍ଟ ପରୀକ୍ଷା କରନ୍ତୁ",diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex dd16420a..0356203d 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -393,6 +393,7 @@"customTypeEmbedding": "ਏਮਬੈਡਿੰਗ","customTypeImage": "ਚਿੱਤਰ","customTypeAudio": "ਆਡੀਓ",+ "customTypeTranscription": "Transcription","customBaseUrl": "ਬੇਸ URL","customModels": "ਮਾਡਲ","customModel": "ਮਾਡਲ",@@ -409,6 +410,7 @@"addEmbeddingModel": "ਏਮਬੈਡਿੰਗ ਸ਼ਾਮਲ ਕਰੋ","addImageModel": "ਚਿੱਤਰ ਮਾਡਲ ਸ਼ਾਮਲ ਕਰੋ","addAudioModel": "ਆਡੀਓ ਮਾਡਲ ਸ਼ਾਮਲ ਕਰੋ",+ "addTranscriptionModel": "Add transcription model","addingCustom": "ਜੋੜ ਰਿਹਾ ਹੈ...","discoverModels": "ਮਾਡਲ ਲਿਆਓ","probeNow": "ਐਂਡਪੌਇੰਟ ਪਰਖੋ",diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex 98d8160e..edf793de 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Osadzanie","customTypeImage": "Obraz","customTypeAudio": "Dźwięk",+ "customTypeTranscription": "Transcription","customBaseUrl": "Podstawa URL","customModels": "Modele","customModel": "Modelka",@@ -409,6 +410,7 @@"addEmbeddingModel": "Dodaj osadzanie","addImageModel": "Dodaj model obrazu","addAudioModel": "Dodaj model audio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Dodawanie…","discoverModels": "Pobierz modele","probeNow": "Przetestuj punkt końcowy",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex fcbbae89..4888998b 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Embedding","customTypeImage": "Imagem","customTypeAudio": "Áudio",+ "customTypeTranscription": "Transcription","customBaseUrl": "URL base","customModels": "Modelos","customModel": "Modelo",@@ -409,6 +410,7 @@"addEmbeddingModel": "Adicionar embedding","addImageModel": "Adicionar modelo de imagem","addAudioModel": "Adicionar modelo de áudio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Adicionando…","discoverModels": "Buscar modelos","probeNow": "Testar o endpoint",diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex a81e2a4d..3c37cc26 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Embedding","customTypeImage": "Imagem","customTypeAudio": "Áudio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Base URL","customModels": "Modelos","customModel": "Modelo",@@ -409,6 +410,7 @@"addEmbeddingModel": "Adicionar embedding","addImageModel": "Adicionar modelo de imagem","addAudioModel": "Adicionar modelo de áudio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Acrescentando...","discoverModels": "Obter modelos","probeNow": "Testar o endpoint",diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex 61aea8da..c89b69b3 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Încorporare","customTypeImage": "Imagine","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Baza URL","customModels": "Modele","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Încorporare prin adăugare","addImageModel": "Adaugă modelul imaginii","addAudioModel": "Adaugă modelul audio",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Adăugând...","discoverModels": "Preia modelele","probeNow": "Testează endpointul",diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex ebce6d6b..676a2629 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Встраивание","customTypeImage": "Изображение","customTypeAudio": "Аудио",+ "customTypeTranscription": "Transcription","customBaseUrl": "База URL","customModels": "Модели","customModel": "Модель",@@ -409,6 +410,7 @@"addEmbeddingModel": "Добавить встраивание","addImageModel": "Добавить модель изображения","addAudioModel": "Добавить аудиомодель",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Добавление…","discoverModels": "Получить модели","probeNow": "Протестировать конечную точку",diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex b7a15c0e..9651d057 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -393,6 +393,7 @@"customTypeEmbedding": "කාවැද්දීම","customTypeImage": "රූපය","customTypeAudio": "ශ්රව්ය උපකරණ",+ "customTypeTranscription": "Transcription","customBaseUrl": "පදනම URL","customModels": "ආකෘති","customModel": "ආකෘතිය",@@ -409,6 +410,7 @@"addEmbeddingModel": "කාවැද්දීම එකතු කරන්න","addImageModel": "රූප ආකෘතිය එක් කරන්න","addAudioModel": "ශ්රව්ය ආකෘතිය එක් කරන්න",+ "addTranscriptionModel": "Add transcription model","addingCustom": "එකතු කරමින්...","discoverModels": "ආකෘති ලබාගන්න","probeNow": "අන්ත ලක්ෂ්යය පරීක්ෂා කරන්න",diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex 1808bab5..a7fecc11 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Vkladanie","customTypeImage": "Obrázok","customTypeAudio": "Zvuk",+ "customTypeTranscription": "Transcription","customBaseUrl": "Základná URL","customModels": "Modely","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "Pridať vkladanie","addImageModel": "Pridať model obrázka","addAudioModel": "Pridať zvukový model",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Pridávam...","discoverModels": "Načítať modely","probeNow": "Otestovať endpoint",diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex 1bd328e1..88d48510 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Ембеддинг","customTypeImage": "Слика","customTypeAudio": "Аудио",+ "customTypeTranscription": "Transcription","customBaseUrl": "База URL","customModels": "Модели","customModel": "Модел",@@ -409,6 +410,7 @@"addEmbeddingModel": "Додајте уграђивање","addImageModel": "Додајте модел слике","addAudioModel": "Додајте аудио модел",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Додавање…","discoverModels": "Преузми моделе","probeNow": "Тестирај крајњу тачку",diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex a38d6380..a2e7c487 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Inbäddning","customTypeImage": "Bild","customTypeAudio": "Ljud",+ "customTypeTranscription": "Transcription","customBaseUrl": "Bas URL","customModels": "Modeller","customModel": "Modell",@@ -409,6 +410,7 @@"addEmbeddingModel": "Lägg till inbäddning","addImageModel": "Lägg till bildmodell","addAudioModel": "Lägg till ljudmodell",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Lägger till...","discoverModels": "Hämta modeller","probeNow": "Testa endpointen",diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 94585c72..46afccf2 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Kupachika","customTypeImage": "Picha","customTypeAudio": "Sauti",+ "customTypeTranscription": "Transcription","customBaseUrl": "Msingi wa URL","customModels": "Mifano","customModel": "Mfano",@@ -409,6 +410,7 @@"addEmbeddingModel": "Ongeza upachikaji","addImageModel": "Ongeza muundo wa picha","addAudioModel": "Ongeza muundo wa sauti",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Inaongeza...","discoverModels": "Leta modeli","probeNow": "Jaribu mwisho huu",diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex aa09de65..6661ae29 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -393,6 +393,7 @@"customTypeEmbedding": "உட்பொதித்தல்","customTypeImage": "படம்","customTypeAudio": "ஆடியோ",+ "customTypeTranscription": "Transcription","customBaseUrl": "அடிப்படை URL","customModels": "மாதிரிகள்","customModel": "மாதிரி",@@ -409,6 +410,7 @@"addEmbeddingModel": "உட்பொதிப்பைச் சேர்க்கவும்","addImageModel": "பட மாதிரியைச் சேர்க்கவும்","addAudioModel": "ஆடியோ மாதிரியைச் சேர்க்கவும்",+ "addTranscriptionModel": "Add transcription model","addingCustom": "சேர்க்கிறது…","discoverModels": "மாதிரிகளைப் பெறு","probeNow": "எண்ட்பாயிண்டைச் சோதிக்கவும்",diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex 8c435248..89ba56a6 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -393,6 +393,7 @@"customTypeEmbedding": "పొందుపరచడం","customTypeImage": "చిత్రం","customTypeAudio": "ఆడియో",+ "customTypeTranscription": "Transcription","customBaseUrl": "బేస్ URL","customModels": "మోడల్స్","customModel": "మోడల్",@@ -409,6 +410,7 @@"addEmbeddingModel": "పొందుపరచడాన్ని జోడించండి","addImageModel": "చిత్ర నమూనాను జోడించండి","addAudioModel": "ఆడియో మోడల్ని జోడించండి",+ "addTranscriptionModel": "Add transcription model","addingCustom": "జోడిస్తోంది...","discoverModels": "మోడల్లను తెచ్చు","probeNow": "ఎండ్పాయింట్ను పరీక్షించండి",diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex b7ae042b..b1b5c9b2 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -393,6 +393,7 @@"customTypeEmbedding": "การฝัง","customTypeImage": "รูปภาพ","customTypeAudio": "เสียง",+ "customTypeTranscription": "Transcription","customBaseUrl": "ฐาน URL","customModels": "โมเดล","customModel": "รุ่น",@@ -409,6 +410,7 @@"addEmbeddingModel": "เพิ่มการฝัง","addImageModel": "เพิ่มรูปแบบรูปภาพ","addAudioModel": "เพิ่มโมเดลเสียง",+ "addTranscriptionModel": "Add transcription model","addingCustom": "กำลังเพิ่ม...","discoverModels": "ดึงรายการโมเดล","probeNow": "ทดสอบเอนด์พอยต์",diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 80eb4e70..d22d9dbd 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -393,6 +393,7 @@"customTypeEmbedding": "paglalagay","customTypeImage": "Larawan","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Base URL","customModels": "Mga Modelo","customModel": "Modelo",@@ -409,6 +410,7 @@"addEmbeddingModel": "Magdagdag ng embedding","addImageModel": "Magdagdag ng modelo ng imahe","addAudioModel": "Magdagdag ng audio model",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Dagdag pa...","discoverModels": "Kunin ang mga modelo","probeNow": "Subukan ang endpoint",diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex f099d37b..33e8cd8e 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Gömme","customTypeImage": "Resim","customTypeAudio": "Ses",+ "customTypeTranscription": "Transcription","customBaseUrl": "Temel URL","customModels": "Modeller","customModel": "Modeli",@@ -409,6 +410,7 @@"addEmbeddingModel": "Gömme ekle","addImageModel": "Resim modeli ekle","addAudioModel": "Ses modeli ekle",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Ekleniyor…","discoverModels": "Modelleri getir","probeNow": "Uç noktayı test et",diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex ac12f145..50a6f61c 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Вбудовування","customTypeImage": "Зображення","customTypeAudio": "Аудіо",+ "customTypeTranscription": "Transcription","customBaseUrl": "Основа URL","customModels": "Моделі","customModel": "Модель",@@ -409,6 +410,7 @@"addEmbeddingModel": "Додати вбудовування","addImageModel": "Додайте модель зображення","addAudioModel": "Додати модель звуку",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Додавання…","discoverModels": "Отримати моделі","probeNow": "Протестувати кінцеву точку",diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex a4b0d75e..ce59a08a 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -393,6 +393,7 @@"customTypeEmbedding": "سرایت کرنا","customTypeImage": "تصویر","customTypeAudio": "آڈیو",+ "customTypeTranscription": "Transcription","customBaseUrl": "بیس URL","customModels": "ماڈلز","customModel": "ماڈل",@@ -409,6 +410,7 @@"addEmbeddingModel": "سرایت شامل کریں۔","addImageModel": "تصویری ماڈل شامل کریں۔","addAudioModel": "آڈیو ماڈل شامل کریں۔",+ "addTranscriptionModel": "Add transcription model","addingCustom": "شامل کیا جا رہا ہے…","discoverModels": "ماڈلز حاصل کریں","probeNow": "اینڈ پوائنٹ کی جانچ کریں",diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex 00f4dfae..be8f5ef7 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Oʻrnatish","customTypeImage": "Rasm","customTypeAudio": "Audio",+ "customTypeTranscription": "Transcription","customBaseUrl": "Baza URL","customModels": "Modellar","customModel": "Model",@@ -409,6 +410,7 @@"addEmbeddingModel": "O'rnatishni qo'shing","addImageModel": "Rasm modelini qo'shing","addAudioModel": "Audio modelini qo'shing",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Qo‘shilmoqda…","discoverModels": "Modellarni olish","probeNow": "Endpointni sinab ko‘rish",diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex e0e01829..a12987d9 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Nhúng","customTypeImage": "Hình ảnh","customTypeAudio": "Âm thanh",+ "customTypeTranscription": "Transcription","customBaseUrl": "Căn cứ URL","customModels": "Người mẫu","customModel": "người mẫu",@@ -409,6 +410,7 @@"addEmbeddingModel": "Thêm nhúng","addImageModel": "Thêm mô hình hình ảnh","addAudioModel": "Thêm mô hình âm thanh",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Đang thêm…","discoverModels": "Lấy danh sách mô hình","probeNow": "Kiểm thử endpoint",diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex 87531748..a6cc8d8e 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -393,6 +393,7 @@"customTypeEmbedding": "Ifisinu","customTypeImage": "Aworan","customTypeAudio": "Ohun",+ "customTypeTranscription": "Transcription","customBaseUrl": "Mimọ URL","customModels": "Awọn awoṣe","customModel": "Awoṣe",@@ -409,6 +410,7 @@"addEmbeddingModel": "Fi ifibọ","addImageModel": "Ṣafikun awoṣe aworan","addAudioModel": "Ṣafikun awoṣe ohun",+ "addTranscriptionModel": "Add transcription model","addingCustom": "Nfi…","discoverModels": "Gba àwọn àwòṣe","probeNow": "Dán ibùdó náà wò",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 692ebe92..6d5e7e98 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -397,6 +397,7 @@"customTypeEmbedding": "嵌入","customTypeImage": "图像","customTypeAudio": "音频",+ "customTypeTranscription": "Transcription","customBaseUrl": "基础 URL","customModels": "模型","customModel": "模型",@@ -413,6 +414,7 @@"addEmbeddingModel": "添加嵌入模型","addImageModel": "添加图像模型","addAudioModel": "添加音频模型",+ "addTranscriptionModel": "Add transcription model","addingCustom": "添加中…","discoverModels": "获取模型","probeNow": "立即探测",diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 3c77f00d..91af4518 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -397,6 +397,7 @@"customTypeEmbedding": "嵌入","customTypeImage": "圖像","customTypeAudio": "音訊",+ "customTypeTranscription": "Transcription","customBaseUrl": "基礎 URL","customModels": "模型","customModel": "模型",@@ -413,6 +414,7 @@"addEmbeddingModel": "新增嵌入模型","addImageModel": "新增圖像模型","addAudioModel": "新增音訊模型",+ "addTranscriptionModel": "Add transcription model","addingCustom": "新增中...","discoverModels": "取得模型","probeNow": "立即探測",diff --git a/server/src/__tests__/routes/custom-modalities.test.ts b/server/src/__tests__/routes/custom-modalities.test.tsindex 707b8af2..3dd13fe1 100644--- a/server/src/__tests__/routes/custom-modalities.test.ts+++ b/server/src/__tests__/routes/custom-modalities.test.ts@@ -159,6 +159,35 @@ describe('custom provider modalities', () => {]);});+ it('registers a custom speech-to-text (transcription) model', async () => {+ const stt = await post(app, '/api/media/custom', {+ baseUrl: 'http://127.0.0.1:8787/v1',+ model: 'local-stt',+ modality: 'transcription',+ displayName: 'Local Whisper',+ apiKey: 'stt-se…cret',+ label: 'Local STT',+ });++ expect(stt.status).toBe(201);+ expect(stt.body.modality).toBe('transcription');+ expect(stt.body.displayName).toBe('Local Whisper');++ const row = getDb().prepare(`+ SELECT model_id, modality, display_name, key_id+ FROM media_models+ WHERE platform = 'custom' AND model_id = 'local-stt'+ `).get() as any;+ expect(row.modality).toBe('transcription');+ expect(row.display_name).toBe('Local Whisper');+ expect(row.key_id).toBe(stt.body.keyId);++ // It is listed under the endpoint key like any other modality.+ const keys = await get(app, '/api/keys');+ const custom = keys.body.find((k: any) => k.platform === 'custom' && k.baseUrl === 'http://127.0.0.1:8787/v1');+ expect(custom.models.map((m: any) => `${m.kind}:${m.modelId}`)).toEqual(['transcription:local-stt']);+ });+it('lists chat, embedding, image, and audio models under their custom endpoint key', async () => {const fetchMock = vi.fn(async () => embeddingResponse(3));globalThis.fetch = fetchMock as any;diff --git a/server/src/__tests__/routes/custom-transcription.test.ts b/server/src/__tests__/routes/custom-transcription.test.tsnew file mode 100644index 00000000..51aae6b8--- /dev/null+++ b/server/src/__tests__/routes/custom-transcription.test.ts@@ -0,0 +1,221 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import type { Express } from 'express';+import { createApp } from '../../app.js';+import { initDb, getDb, getUnifiedApiKey } from '../../db/index.js';+import { clearCooldownsForKey } from '../../services/ratelimit.js';+import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';++// End-to-end cover for a user-registered speech-to-text endpoint: POST+// /api/media/custom writes the media_models row AND the api_keys row that+// carries its base_url, and /v1/audio/transcriptions must then actually reach+// that endpoint. Registration alone is not enough — the STT candidate has to+// carry its key_id (getProviderCredential refuses to guess a key for platform+// 'custom') and the service needs a 'custom' adapter.++const realFetch = globalThis.fetch;++let dashToken = '';++const BASE_URL = 'http://127.0.0.1:9911/v1';+const AUDIO = Buffer.from('RIFFfakewavbytes');++async function listen(app: Express) {+ const server = app.listen(0, '127.0.0.1');+ if (!server.listening) await new Promise<void>(resolve => server.once('listening', () => resolve()));+ const addr = server.address() as any;+ return { server, port: addr.port as number };+}++async function post(app: Express, path: string, body: unknown) {+ const { server, port } = await listen(app);+ const res = await realFetch(`http://127.0.0.1:${port}${path}`, {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ ...(isGatedApiPath(path) ? { Authorization: `Bearer ${dashToken}` } : {}),+ },+ body: JSON.stringify(body),+ });+ const data = await res.json().catch(() => null);+ server.close();+ return { status: res.status, body: data };+}++async function get(app: Express, path: string) {+ const { server, port } = await listen(app);+ const res = await realFetch(`http://127.0.0.1:${port}${path}`, {+ headers: isGatedApiPath(path) ? { Authorization: `Bearer ${dashToken}` } : {},+ });+ const data = await res.json().catch(() => null);+ server.close();+ return { status: res.status, body: data };+}++/** POST multipart/form-data to /v1/audio/transcriptions on a live listener via+ * the saved real fetch, so a mocked globalThis.fetch only ever intercepts the+ * upstream provider call. */+async function postTranscription(app: Express, fields: Record<string, string>) {+ const { server, port } = await listen(app);+ const form = new FormData();+ form.append('file', new Blob([AUDIO], { type: 'audio/wav' }), 'clip.wav');+ for (const [k, v] of Object.entries(fields)) form.append(k, v);+ const res = await realFetch(`http://127.0.0.1:${port}/v1/audio/transcriptions`, {+ method: 'POST',+ headers: { Authorization: `Bearer ${getUnifiedApiKey()}` },+ body: form,+ });+ const raw = await res.text();+ server.close();+ let json: any = null;+ try { json = JSON.parse(raw); } catch { /* text/plain response_format */ }+ return { status: res.status, body: json, raw, headers: res.headers };+}++function registerStt(app: Express, overrides: Record<string, unknown> = {}) {+ return post(app, '/api/media/custom', {+ baseUrl: BASE_URL,+ model: 'Systran/faster-whisper-large-v3',+ modality: 'transcription',+ displayName: 'Local Whisper',+ apiKey: 'stt-secret-key',+ label: 'Local STT',+ ...overrides,+ });+}++function jsonResponse(body: unknown, status = 200) {+ return new Response(JSON.stringify(body), { status, headers: { 'content-type': 'application/json' } });+}++describe('custom speech-to-text endpoint, end to end', () => {+ let app: Express;++ beforeEach(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ // Cooldowns live in a module-level map that outlives the per-test :memory:+ // DB; key ids restart at 1 in every test, so stale entries must be purged.+ for (let id = 1; id <= 10; id++) clearCooldownsForKey(id);+ app = createApp();+ dashToken = mintDashboardToken();+ });++ afterEach(() => {+ globalThis.fetch = realFetch;+ vi.restoreAllMocks();+ });++ it('transcribes through the registered endpoint with its own base URL and key', async () => {+ const reg = await registerStt(app);+ expect(reg.status).toBe(201);+ expect(reg.body.modality).toBe('transcription');++ const fetchMock = vi.fn(async () => jsonResponse({ text: 'hello from my box', language: 'en', duration: 1.25 }));+ globalThis.fetch = fetchMock as any;++ const r = await postTranscription(app, {+ model: 'Systran/faster-whisper-large-v3',+ language: 'en',+ prompt: 'ctx',+ temperature: '0.2',+ });++ expect(r.status).toBe(200);+ expect(r.body.text).toBe('hello from my box');+ expect(r.headers.get('X-Provider')).toBe('custom');+ expect(r.headers.get('X-Model')).toBe('Systran/faster-whisper-large-v3');++ expect(fetchMock).toHaveBeenCalledTimes(1);+ const [url, init] = fetchMock.mock.calls[0] as unknown as [string, RequestInit];+ // The user's own base URL, not a hardcoded provider host.+ expect(url).toBe(`${BASE_URL}/audio/transcriptions`);+ const headers = init.headers as Record<string, string>;+ expect(headers.Authorization).toBe('Bearer stt-secret-key');+ // Content-Type must NOT be set by hand — FormData supplies the boundary.+ expect(headers['Content-Type']).toBeUndefined();++ const form = init.body as FormData;+ expect(form).toBeInstanceOf(FormData);+ expect(form.get('model')).toBe('Systran/faster-whisper-large-v3');+ expect(form.get('language')).toBe('en');+ expect(form.get('prompt')).toBe('ctx');+ expect(form.get('temperature')).toBe('0.2');+ expect(form.get('response_format')).toBe('json');+ const file = form.get('file') as File;+ expect(file.name).toBe('clip.wav');+ expect(Buffer.from(await file.arrayBuffer()).equals(AUDIO)).toBe(true);++ // The request is logged under the transcription modality like any other.+ const row = getDb()+ .prepare("SELECT platform, model_id, status, request_type FROM requests ORDER BY id DESC LIMIT 1")+ .get() as any;+ expect(row).toMatchObject({ platform: 'custom', request_type: 'transcription', status: 'success' });+ });++ it("'whisper-1' auto-routes to the only registered STT model (stock OpenAI clients)", async () => {+ expect((await registerStt(app)).status).toBe(201);+ const fetchMock = vi.fn(async () => jsonResponse({ text: 'auto routed' }));+ globalThis.fetch = fetchMock as any;++ const r = await postTranscription(app, { model: 'whisper-1' });+ expect(r.status).toBe(200);+ expect(r.body.text).toBe('auto routed');+ expect(String(fetchMock.mock.calls[0][0])).toBe(`${BASE_URL}/audio/transcriptions`);+ });++ it('keyless endpoint (auth off) still reaches the box with the placeholder bearer', async () => {+ expect((await registerStt(app, { apiKey: undefined })).status).toBe(201);+ const fetchMock = vi.fn(async () => jsonResponse({ text: 'no auth needed' }));+ globalThis.fetch = fetchMock as any;++ const r = await postTranscription(app, { model: 'whisper-1' });+ expect(r.status).toBe(200);+ const headers = (fetchMock.mock.calls[0][1] as RequestInit).headers as Record<string, string>;+ expect(headers.Authorization).toBe('Bearer no-key');+ });++ it('an upstream failure surfaces as a transcription error, not a silent skip', async () => {+ expect((await registerStt(app)).status).toBe(201);+ globalThis.fetch = vi.fn(async () => jsonResponse({ error: 'boom' }, 500)) as any;++ const r = await postTranscription(app, { model: 'whisper-1' });+ expect(r.status).toBe(502);+ expect(r.body.error.message).toContain('transcription error');+ });++ it("GET /api/keys lists the model under its endpoint with kind 'transcription'", async () => {+ const reg = await registerStt(app);+ expect(reg.status).toBe(201);++ const keys = await get(app, '/api/keys');+ expect(keys.status).toBe(200);+ const custom = keys.body.find((k: any) => k.platform === 'custom' && k.baseUrl === BASE_URL);+ expect(custom).toBeTruthy();+ expect(custom.models).toEqual([+ expect.objectContaining({+ kind: 'transcription',+ modelId: 'Systran/faster-whisper-large-v3',+ displayName: 'Local Whisper',+ }),+ ]);+ });++ it('sorts transcription after the other kinds on the same endpoint', async () => {+ expect((await post(app, '/api/keys/custom', {+ baseUrl: BASE_URL,+ models: ['local-chat'],+ apiKey: 'stt-secret-key',+ })).status).toBe(201);+ expect((await post(app, '/api/media/custom', {+ baseUrl: BASE_URL,+ model: 'local-tts',+ modality: 'audio',+ apiKey: 'stt-secret-key',+ })).status).toBe(201);+ expect((await registerStt(app)).status).toBe(201);++ const keys = await get(app, '/api/keys');+ const custom = keys.body.find((k: any) => k.platform === 'custom' && k.baseUrl === BASE_URL);+ expect(custom.models.map((m: any) => m.kind)).toEqual(['chat', 'audio', 'transcription']);+ });+});diff --git a/server/src/__tests__/services/transcription.test.ts b/server/src/__tests__/services/transcription.test.tsindex a3ebde88..e1aa3b76 100644--- a/server/src/__tests__/services/transcription.test.ts+++ b/server/src/__tests__/services/transcription.test.ts@@ -254,6 +254,92 @@ describe('transcription service', () => {expect(fetchMock).not.toHaveBeenCalled();});+ // A user-registered OpenAI-compatible STT box (platform 'custom'). Its row+ // is bound to one api_keys row that carries the base_url —+ // getProviderCredential refuses to guess a key for 'custom', so the+ // candidate MUST carry key_id or the row is silently skipped.+ function addCustomStt(model = 'local-whisper', secret = 'stt-secret', baseUrl = 'http://127.0.0.1:9911/v1'): number {+ const { encrypted, iv, authTag } = encrypt(secret);+ const key = getDb().prepare(`+ INSERT INTO api_keys (platform, label, encrypted_key, iv, auth_tag, status, enabled, base_url)+ VALUES ('custom', 'Local STT', ?, ?, ?, 'unknown', 1, ?)+ `).run(encrypted, iv, authTag, baseUrl);+ const keyId = Number(key.lastInsertRowid);+ getDb().prepare(`+ INSERT INTO media_models (platform, model_id, display_name, modality, priority, enabled, quota_label, key_id)+ VALUES ('custom', ?, 'Local Whisper', 'transcription', 99, 1, 'custom endpoint', ?)+ `).run(model, keyId);+ return keyId;+ }++ it('custom: multipart POST to the endpoint\'s own /audio/transcriptions with its key', async () => {+ addCustomStt();+ const fetchMock = vi.fn(async () => jsonResponse({ text: 'local text', language: 'en', duration: 3 }));+ globalThis.fetch = fetchMock as any;++ const r = await runTranscription('local-whisper', params({ language: 'en', prompt: 'ctx', temperature: 0.3 }));+ expect(r.platform).toBe('custom');+ expect(r.text).toBe('local text');+ expect(r.language).toBe('en');+ expect(r.duration).toBe(3);++ const [url, init] = fetchMock.mock.calls[0] as unknown as [string, RequestInit];+ expect(url).toBe('http://127.0.0.1:9911/v1/audio/transcriptions');+ const headers = init.headers as Record<string, string>;+ expect(headers.Authorization).toBe('Bearer stt-secret');+ // Content-Type must NOT be set by hand — FormData supplies the boundary.+ expect(headers['Content-Type']).toBeUndefined();+ const form = init.body as FormData;+ expect(form.get('model')).toBe('local-whisper');+ expect(form.get('language')).toBe('en');+ expect(form.get('prompt')).toBe('ctx');+ expect(form.get('temperature')).toBe('0.3');+ expect(form.get('response_format')).toBe('json');+ const file = form.get('file') as File;+ expect(file.name).toBe('clip.wav');+ expect(Buffer.from(await file.arrayBuffer()).equals(AUDIO)).toBe(true);+ });++ it('custom: the row is NOT skipped for want of a key (key_id must reach getProviderCredential)', async () => {+ // No catalog rows at all: if the custom candidate dropped its key_id the+ // chain would come up empty and this would throw instead of transcribing.+ getDb().prepare("DELETE FROM media_models WHERE platform IN ('groq', 'cloudflare')").run();+ addCustomStt();+ const fetchMock = vi.fn(async () => jsonResponse({ text: 'reached' }));+ globalThis.fetch = fetchMock as any;++ const r = await runTranscription('auto', params());+ expect(r.platform).toBe('custom');+ expect(r.text).toBe('reached');+ expect(fetchMock).toHaveBeenCalledTimes(1);+ });++ it('custom: verbose_json is asked for upstream and segments pass through', async () => {+ addCustomStt();+ const segments = [{ id: 0, start: 0, end: 1, text: 'local text' }];+ const fetchMock = vi.fn(async () => jsonResponse({ text: 'local text', segments }));+ globalThis.fetch = fetchMock as any;++ const r = await runTranscription('local-whisper', params({ responseFormat: 'verbose_json' }));+ const form = (fetchMock.mock.calls[0][1] as RequestInit).body as FormData;+ expect(form.get('response_format')).toBe('verbose_json');+ expect(r.segments).toEqual(segments);+ });++ it('custom: an endpoint whose key row lost its base_url fails loudly, not silently', async () => {+ const keyId = addCustomStt();+ getDb().prepare('UPDATE api_keys SET base_url = NULL WHERE id = ?').run(keyId);+ globalThis.fetch = vi.fn() as any;+ await expect(runTranscription('local-whisper', params()))+ .rejects.toMatchObject({ status: 502 }); // chainError wraps the 500 adapter error+ });++ it("custom: vtt is refused — no custom row declares native subtitles", async () => {+ addCustomStt();+ await expect(runTranscription('local-whisper', params({ responseFormat: 'vtt' })))+ .rejects.toMatchObject({ status: 400 });+ });+it('logs transcription requests with request_type=transcription', async () => {addKey('groq');globalThis.fetch = vi.fn(async () => jsonResponse({ text: 'logged' })) as any;diff --git a/server/src/routes/keys.ts b/server/src/routes/keys.tsindex f7c2e8ed..bea1f066 100644--- a/server/src/routes/keys.ts+++ b/server/src/routes/keys.ts@@ -288,8 +288,8 @@ keysRouter.get('/', (_req: Request, res: Response) => {}for (const list of modelsByEndpoint.values()) {list.sort((a, b) => {- const ka = ['chat', 'embedding', 'image', 'audio'].indexOf(a.kind);- const kb = ['chat', 'embedding', 'image', 'audio'].indexOf(b.kind);+ const ka = ['chat', 'embedding', 'image', 'audio', 'transcription'].indexOf(a.kind);+ const kb = ['chat', 'embedding', 'image', 'audio', 'transcription'].indexOf(b.kind);return (ka - kb) || String(a.displayName).localeCompare(String(b.displayName));});}diff --git a/server/src/routes/media.ts b/server/src/routes/media.tsindex a04a378c..c8c05f81 100644--- a/server/src/routes/media.ts+++ b/server/src/routes/media.ts@@ -102,7 +102,10 @@ const customMediaSchema = z.object({baseUrl: z.string().url('baseUrl must be a valid URL'),model: z.string().min(1),displayName: z.string().optional(),- modality: z.enum(['image', 'audio']),+ // 'transcription' registers a custom OpenAI-compatible STT endpoint. The+ // media_models table, GET /api/media/usage, the /v1/audio/transcriptions+ // handler and the media service's 'custom' adapter all accept it.+ modality: z.enum(['image', 'audio', 'transcription']),apiKey: z.string().optional(),label: z.string().optional(),quotaLabel: z.string().optional(),diff --git a/server/src/routes/proxy.ts b/server/src/routes/proxy.tsindex 45b058a9..7215aff5 100644--- a/server/src/routes/proxy.ts+++ b/server/src/routes/proxy.ts@@ -664,9 +664,10 @@ proxyRouter.post('/audio/speech', async (req: Request, res: Response) => {// disk), routed through the STT provider chain in services/media.ts with the// same key/failover/cooldown machinery as the other media endpoints. The STT// registry (media_models, modality='transcription') is maintained by the-// published catalog's `transcriptionModels` array via catalog-sync; on an-// install that has never synced one, the endpoint answers 503 with code-// 'no_transcription_models' until the first sync lands.+// published catalog's `transcriptionModels` array via catalog-sync, plus any+// OpenAI-compatible endpoint the operator registered themselves through+// POST /api/media/custom; on an install that has never synced one and has no+// custom row, the endpoint answers 503 with code 'no_transcription_models'.//// response_format: 'json' (default, {"text": ...}), 'text' (plain string),// 'verbose_json' (OpenAI verbose shape when the provider returns segments,diff --git a/server/src/services/media.ts b/server/src/services/media.tsindex 5dfaa716..b910203f 100644--- a/server/src/services/media.ts+++ b/server/src/services/media.ts@@ -586,7 +586,10 @@ export async function runImageGeneration(model: string | undefined, params: Imag//// STT models live in media_models with modality='transcription', maintained// by the published catalog's `transcriptionModels` array (see catalog-sync)-// — never hardcoded here, never seeded by migrations. The per-platform+// — never hardcoded here, never seeded by migrations. A user can also+// register their own OpenAI-compatible STT endpoint (platform 'custom') from+// the Keys page; those rows are keyed to an api_keys row and are never touched+// by catalog-sync. The per-platform// adapters below are pure transport; everything model-specific (native// subtitle support, upload ceiling, request flavor) rides on the catalog// entry and lands in the row's meta_json. On an install that has never@@ -617,6 +620,11 @@ export const MAX_TRANSCRIPTION_BYTES = 25 * 1024 * 1024;interface SttCandidate {platform: string;modelId: string;+ /** The api_keys row this model is bound to, or null to pick any healthy key+ * for the platform. Custom endpoints ALWAYS carry one: getProviderCredential+ * refuses to guess a key for platform 'custom', so dropping this here would+ * silently skip every custom STT row. */+ keyId: number | null;nativeSubtitles: Set<string>;maxBytes: number;requestStyle: string | null;@@ -641,6 +649,7 @@ function toSttCandidate(row: MediaModelRow): SttCandidate {return {platform: row.platform,modelId: row.model_id,+ keyId: row.key_id,nativeSubtitles: new Set(Array.isArray(meta.subtitleFormats) ? meta.subtitleFormats : []),maxBytes,requestStyle: typeof meta.requestStyle === 'string' ? meta.requestStyle : null,@@ -680,7 +689,8 @@ function resolveTranscriptionChain(model: string | undefined, responseFormat: st// for / trigger a sync rather than pretending the model id is wrong.throw new MediaError('No transcription models are configured yet. The registry arrives via catalog sync; ' +- 'wait for the next sync (or trigger one from the dashboard) and retry.',+ 'wait for the next sync (or trigger one from the dashboard) and retry, ' ++ 'or register your own OpenAI-compatible endpoint from the Keys page.',503,'no_transcription_models',);@@ -714,6 +724,31 @@ async function callTranscriptionProvider(): Promise<Omit<TranscriptionResult, 'platform' | 'modelId'>> {const key = credential.key;switch (m.platform) {+ case 'custom': {+ // Any OpenAI-compatible STT server (faster-whisper-server, LocalAI,+ // whisper.cpp's server, vLLM…). Same multipart shape as groq below;+ // only the base URL and the optional key differ.+ if (!credential.baseUrl) throw new MediaError('custom transcription provider is missing base_url', 500);+ const form = new FormData();+ form.append('file', new Blob([p.file], { type: p.mimeType || 'application/octet-stream' }), p.filename);+ form.append('model', m.modelId);+ if (p.language) form.append('language', p.language);+ if (p.prompt) form.append('prompt', p.prompt);+ if (p.temperature !== undefined) form.append('temperature', String(p.temperature));+ // 'text' is derived locally from the json shape so failover output stays+ // uniform; 'vtt' never reaches here (no native subtitle support is+ // declared for custom rows, so resolveTranscriptionChain filters them).+ form.append('response_format', p.responseFormat === 'verbose_json' ? 'verbose_json' : 'json');+ // Never set Content-Type by hand — FormData supplies the boundary.+ const r = await mediaFetch(`${credential.baseUrl}/audio/transcriptions`, 'custom', 'transcription', {+ method: 'POST',+ headers: { Authorization: `Bearer ${key ?? 'no-key'}` },+ body: form,+ });+ const j = (await r.json()) as { text?: string; language?: string; duration?: number; segments?: unknown[] };+ if (typeof j.text !== 'string') throw new MediaError('custom endpoint returned no transcription text', 502);+ return { text: j.text, language: j.language, duration: j.duration, segments: j.segments };+ }case 'groq': {// Groq's OpenAI-compatible audio endpoint takes multipart form data.// Never set Content-Type by hand — FormData supplies the boundary.@@ -791,7 +826,7 @@ export async function runTranscription(model: string | undefined, p: Transcripti}let lastError: MediaError | null = null;for (const m of usable) {- const credential = getProviderCredential({ platform: m.platform, key_id: null });+ const credential = getProviderCredential({ platform: m.platform, key_id: m.keyId });if (!credential) continue; // no usable key for this provider — try the nextif (credential.id != null && isOnCooldown(m.platform, m.modelId, credential.id)) continue;const logRow = { platform: m.platform, model_id: m.modelId, modality: 'transcription' as const };diff --git a/shared/types.ts b/shared/types.tsindex 0020d403..c84a9a06 100644--- a/shared/types.ts+++ b/shared/types.ts@@ -242,7 +242,7 @@ export type KeyStatus = 'healthy' | 'rate_limited' | 'invalid' | 'error' | 'unknexport interface ApiKeyModel {id: number;- kind: 'chat' | 'embedding' | 'image' | 'audio';+ kind: 'chat' | 'embedding' | 'image' | 'audio' | 'transcription';modelId: string;displayName: string;family?: string | null;