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
feat(keys): add an immediate-probe action for custom endpoints (#730)
suanteab20986c45515
diff --git a/client/src/components/keys/provider-list.tsx b/client/src/components/keys/provider-list.tsxindex 6b86e471..1bb034c0 100644--- a/client/src/components/keys/provider-list.tsx+++ b/client/src/components/keys/provider-list.tsx@@ -17,10 +17,11 @@ import {DropdownMenuItem,DropdownMenuCheckboxItem,} from '@/components/ui/dropdown-menu'-import { ChevronDown, CircleAlert, Copy, ExternalLink, KeyRound, ListPlus, MoreHorizontal, Pencil, Plus, RefreshCw, Search, Trash2 } from 'lucide-react'+import { ChevronDown, CircleAlert, Copy, ExternalLink, KeyRound, ListPlus, MoreHorizontal, Pencil, Plus, RefreshCw, Search, Trash2, Zap } from 'lucide-react'import type { ApiKey, ApiKeyModel } from '../../../../shared/types'import { formatSqliteUtcToLocalTime } from '@/lib/utils'import { useI18n } from '@/i18n'+import { toast } from '@/lib/toast'import {PLATFORMS,CUSTOM_GROUP,@@ -109,6 +110,30 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {},})+ // #685 follow-up: fire one real chat request at a custom endpoint so an+ // unmeasured model gains a reliability/speed sample immediately instead of+ // waiting for natural traffic. Only a successful probe records a sample.+ const probeKey = useMutation({+ // The global MutationCache toast would show the bare server message;+ // silence it and toast a translated line that carries the reason instead.+ meta: { silenceToast: true },+ mutationFn: (keyId: number) =>+ apiFetch<{ modelId: string; latencyMs: number }>(`/api/keys/custom/probe`, {+ method: 'POST',+ body: JSON.stringify({ keyId }),+ }),+ onSuccess: (data) => {+ for (const key of ['keys', 'health', 'fallback']) {+ queryClient.invalidateQueries({ queryKey: [key] })+ }+ queryClient.invalidateQueries({ queryKey: ['fallback', 'routing'] })+ toast.success(t('keys.probeSuccess', { model: data.modelId, latency: data.latencyMs }))+ },+ onError: (error) => {+ toast.error(t('keys.probeFailed', { reason: error instanceof Error ? error.message : String(error) }))+ },+ })+const togglePlatform = useMutation({mutationFn: ({ platform, enabled }: { platform: string; enabled: boolean }) =>apiFetch(`/api/keys/platform/${platform}`, {@@ -495,6 +520,17 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {<ListPlus className="size-3" /></Button></Tooltip>+ <Tooltip text={t('keys.probeNow')}>+ <Button+ variant="ghost"+ size="icon-xs"+ onClick={() => probeKey.mutate(k.id)}+ disabled={probeKey.isPending}+ aria-label={t('keys.probeNow')}+ >+ <Zap className={`size-3 ${probeKey.isPending ? 'animate-pulse' : ''}`} />+ </Button>+ </Tooltip></>)}<Tooltip text={t('keys.checkNow')}>diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex abc3f3eb..c83d1524 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -377,6 +377,9 @@"addAudioModel": "የድምጽ ሞዴል ያክሉ","addingCustom": "በማከል ላይ...","discoverModels": "ሞዴሎችን አምጣ",+ "probeNow": "የመጨረሻ ነጥቡን ይፈትሹ",+ "probeSuccess": "{model} በ{latency}ms ውስጥ ተፈትኗል",+ "probeFailed": "ፍተሻው አልተሳካም፦ {reason}","discoverTitle": "በዚህ መዳረሻ ላይ ያሉ ሞዴሎች","discoverHint": "ለመመዝገብ ሞዴሎችን ይምረጡ። አስቀድመው የተጨመሩት ተቆልፈው ይቆያሉ።","discoverEmpty": "ይህ መዳረሻ ምንም ሞዴል አልመለሰም።",diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex d13ae433..e4fe4fc1 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -377,6 +377,9 @@"addAudioModel": "إضافة نموذج صوتي","addingCustom": "جارٍ الإضافة…","discoverModels": "جلب النماذج",+ "probeNow": "اختبار نقطة النهاية",+ "probeSuccess": "تم اختبار {model} خلال {latency} مللي ثانية",+ "probeFailed": "فشل الاختبار: {reason}","discoverTitle": "النماذج على نقطة النهاية هذه","discoverHint": "اختر النماذج المراد تسجيلها. النماذج المضافة مسبقاً تبقى مقفلة.","discoverEmpty": "لم تُرجع نقطة النهاية أي نماذج.",diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex fac2de7f..12a824a1 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -377,6 +377,9 @@"addAudioModel": "Audio model əlavə et","addingCustom": "Əlavə edirəm...","discoverModels": "Modelləri gətir",+ "probeNow": "Son nöqtəni test et",+ "probeSuccess": "{model} {latency}ms ərzində test edildi",+ "probeFailed": "Test alınmadı: {reason}","discoverTitle": "Bu son nöqtədəki modellər","discoverHint": "Qeyd ediləcək modelləri seçin. Artıq əlavə edilənlər kilidli qalır.","discoverEmpty": "Bu son nöqtə heç bir model qaytarmadı.",diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 89d0ce55..ebe31a17 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -377,6 +377,9 @@"addAudioModel": "Добави аудио модел","addingCustom": "Добавям...","discoverModels": "Извличане на модели",+ "probeNow": "Тествай крайната точка",+ "probeSuccess": "{model} е тестван за {latency}ms",+ "probeFailed": "Тестът е неуспешен: {reason}","discoverTitle": "Модели на тази крайна точка","discoverHint": "Изберете моделите за регистриране. Вече добавените остават заключени.","discoverEmpty": "Тази крайна точка не върна модели.",diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex 6298aabc..5dfd5c38 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -377,6 +377,9 @@"addAudioModel": "অডিও মডেল যোগ করুন","addingCustom": "যোগ করা হচ্ছে...","discoverModels": "মডেল আনুন",+ "probeNow": "এন্ডপয়েন্ট পরীক্ষা করুন",+ "probeSuccess": "{model} {latency}ms-এ পরীক্ষা করা হয়েছে",+ "probeFailed": "পরীক্ষা ব্যর্থ হয়েছে: {reason}","discoverTitle": "এই এন্ডপয়েন্টের মডেল","discoverHint": "নিবন্ধনের জন্য মডেল বেছে নিন। ইতিমধ্যে যোগ করা মডেল লক থাকে।","discoverEmpty": "এই এন্ডপয়েন্ট কোনো মডেল ফেরত দেয়নি।",diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex 41cb64e7..91eb835e 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -377,6 +377,9 @@"addAudioModel": "Přidat audio model","addingCustom": "Přidávám...","discoverModels": "Načíst modely",+ "probeNow": "Otestovat endpoint",+ "probeSuccess": "Model {model} otestován za {latency} ms",+ "probeFailed": "Test se nezdařil: {reason}","discoverTitle": "Modely na tomto endpointu","discoverHint": "Vyberte modely k registraci. Již přidané zůstávají uzamčené.","discoverEmpty": "Tento endpoint nevrátil žádné modely.",diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex b6e1c651..50a9ddd2 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -377,6 +377,9 @@"addAudioModel": "Tilføj lydmodel","addingCustom": "Tilføjer...","discoverModels": "Hent modeller",+ "probeNow": "Test endpointet",+ "probeSuccess": "Testede {model} på {latency} ms",+ "probeFailed": "Testen mislykkedes: {reason}","discoverTitle": "Modeller på dette endpoint","discoverHint": "Vælg de modeller, der skal registreres. Allerede tilføjede forbliver låst.","discoverEmpty": "Dette endpoint returnerede ingen modeller.",diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex 06442c48..9b9b26c6 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -377,6 +377,9 @@"addAudioModel": "Audiomodell hinzufügen","addingCustom": "Hinzufügen…","discoverModels": "Modelle abrufen",+ "probeNow": "Endpunkt testen",+ "probeSuccess": "{model} in {latency} ms getestet",+ "probeFailed": "Test fehlgeschlagen: {reason}","discoverTitle": "Modelle an diesem Endpunkt","discoverHint": "Wähle die Modelle zum Registrieren. Bereits hinzugefügte bleiben gesperrt.","discoverEmpty": "Dieser Endpunkt hat keine Modelle geliefert.",diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex ba49fa65..94cd7027 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -377,6 +377,9 @@"addAudioModel": "Προσθήκη μοντέλου ήχου","addingCustom": "Προσθέτοντας...","discoverModels": "Λήψη μοντέλων",+ "probeNow": "Δοκιμή του endpoint",+ "probeSuccess": "Το {model} δοκιμάστηκε σε {latency}ms",+ "probeFailed": "Η δοκιμή απέτυχε: {reason}","discoverTitle": "Μοντέλα σε αυτό το endpoint","discoverHint": "Επίλεξε τα μοντέλα προς καταχώριση. Όσα έχεις ήδη προσθέσει μένουν κλειδωμένα.","discoverEmpty": "Αυτό το endpoint δεν επέστρεψε μοντέλα.",diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 6eb34d76..ed795cad 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -399,6 +399,9 @@"addAudioModel": "Add audio model","addingCustom": "Adding…","discoverModels": "Fetch models",+ "probeNow": "Probe endpoint",+ "probeSuccess": "Probed {model} in {latency}ms",+ "probeFailed": "Probe failed: {reason}","discoverTitle": "Models on this endpoint","discoverHint": "Pick the models to register. Ones you already added stay locked.","discoverEmpty": "This endpoint returned no models.",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex b2f711e3..fe9ccadf 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -377,6 +377,9 @@"addAudioModel": "Agregar modelo de audio","addingCustom": "Añadiendo…","discoverModels": "Obtener modelos",+ "probeNow": "Probar el endpoint",+ "probeSuccess": "{model} probado en {latency} ms",+ "probeFailed": "La prueba falló: {reason}","discoverTitle": "Modelos en este endpoint","discoverHint": "Elige los modelos a registrar. Los que ya añadiste quedan bloqueados.","discoverEmpty": "Este endpoint no devolvió ningún modelo.",diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex 04f022cb..a38dc799 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -377,6 +377,9 @@"addAudioModel": "اضافه کردن مدل صوتی","addingCustom": "در حال افزودن…","discoverModels": "دریافت مدلها",+ "probeNow": "آزمایش نقطه پایانی",+ "probeSuccess": "{model} در {latency}ms آزمایش شد",+ "probeFailed": "آزمایش ناموفق بود: {reason}","discoverTitle": "مدلهای این نقطه پایانی","discoverHint": "مدلهای موردنظر برای ثبت را انتخاب کنید. مدلهای افزودهشده قفل میمانند.","discoverEmpty": "این نقطه پایانی هیچ مدلی برنگرداند.",diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex 019a1b93..d2d53199 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -377,6 +377,9 @@"addAudioModel": "Lisää äänimalli","addingCustom": "Lisään...","discoverModels": "Hae mallit",+ "probeNow": "Testaa päätepiste",+ "probeSuccess": "{model} testattu, {latency} ms",+ "probeFailed": "Testaus epäonnistui: {reason}","discoverTitle": "Tämän päätepisteen mallit","discoverHint": "Valitse rekisteröitävät mallit. Jo lisätyt pysyvät lukittuina.","discoverEmpty": "Tämä päätepiste ei palauttanut malleja.",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex 2fbd10dd..be41b769 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -377,6 +377,9 @@"addAudioModel": "Ajouter un modèle audio","addingCustom": "Ajout…","discoverModels": "Récupérer les modèles",+ "probeNow": "Tester l'endpoint",+ "probeSuccess": "{model} testé en {latency} ms",+ "probeFailed": "Échec du test : {reason}","discoverTitle": "Modèles sur cet endpoint","discoverHint": "Choisissez les modèles à enregistrer. Ceux déjà ajoutés restent verrouillés.","discoverEmpty": "Cet endpoint n'a renvoyé aucun modèle.",diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 16521682..71ff6761 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -377,6 +377,9 @@"addAudioModel": "ઓડિયો મોડલ ઉમેરો","addingCustom": "ઉમેરી રહ્યું છે...","discoverModels": "મોડેલ મેળવો",+ "probeNow": "એન્ડપોઇન્ટ ચકાસો",+ "probeSuccess": "{model} {latency}ms-માં ચકાસાયું",+ "probeFailed": "ચકાસણી નિષ્ફળ થઈ: {reason}","discoverTitle": "આ એન્ડપોઇન્ટ પરના મોડેલ","discoverHint": "નોંધણી માટે મોડેલ પસંદ કરો. પહેલેથી ઉમેરેલા લોક રહે છે.","discoverEmpty": "આ એન્ડપોઇન્ટે કોઈ મોડેલ પરત કર્યું નથી.",diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex 41f583f4..be3626d7 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -377,6 +377,9 @@"addAudioModel": "Ƙara samfurin sauti","addingCustom": "Ana ƙara…","discoverModels": "Ɗauko samfura",+ "probeNow": "Gwada matattarar",+ "probeSuccess": "An gwada {model} cikin {latency}ms",+ "probeFailed": "Gwajin ya gaza: {reason}","discoverTitle": "Samfura a wannan matattarar","discoverHint": "Zaɓi samfuran da za a yi rajista. Waɗanda aka riga aka ƙara sun kasance a kulle.","discoverEmpty": "Wannan matattarar ba ta dawo da wani samfuri ba.",diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex 0ab63115..704a1a3b 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -377,6 +377,9 @@"addAudioModel": "הוסף מודל אודיו","addingCustom": "מוסיף...","discoverModels": "משיכת מודלים",+ "probeNow": "בדיקת נקודת הקצה",+ "probeSuccess": "{model} נבדק תוך {latency}ms",+ "probeFailed": "הבדיקה נכשלה: {reason}","discoverTitle": "מודלים בנקודת קצה זו","discoverHint": "בחר את המודלים לרישום. אלה שכבר הוספת נשארים נעולים.","discoverEmpty": "נקודת קצה זו לא החזירה מודלים.",diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex bb2937ed..5004b6ed 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -377,6 +377,9 @@"addAudioModel": "ऑडियो मॉडल जोड़ें","addingCustom": "जोड़ा जा रहा है...","discoverModels": "मॉडल लाएँ",+ "probeNow": "एंडपॉइंट का परीक्षण करें",+ "probeSuccess": "{model} का परीक्षण {latency}ms में हुआ",+ "probeFailed": "परीक्षण विफल: {reason}","discoverTitle": "इस एंडपॉइंट के मॉडल","discoverHint": "पंजीकृत करने के लिए मॉडल चुनें। पहले से जोड़े गए मॉडल लॉक रहते हैं।","discoverEmpty": "इस एंडपॉइंट ने कोई मॉडल नहीं लौटाया।",diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex 27d0f1c6..ab000c4b 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -377,6 +377,9 @@"addAudioModel": "Dodaj audio model","addingCustom": "Dodajem...","discoverModels": "Dohvati modele",+ "probeNow": "Testiraj krajnju točku",+ "probeSuccess": "{model} testiran za {latency} ms",+ "probeFailed": "Test nije uspio: {reason}","discoverTitle": "Modeli na ovoj krajnjoj točki","discoverHint": "Odaberi modele za registraciju. Već dodani ostaju zaključani.","discoverEmpty": "Ova krajnja točka nije vratila nijedan model.",diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex a81cdc82..2c8dbb6a 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -377,6 +377,9 @@"addAudioModel": "Hangmodell hozzáadása","addingCustom": "Hozzátéve...","discoverModels": "Modellek lekérése",+ "probeNow": "Végpont tesztelése",+ "probeSuccess": "{model} tesztelve {latency} ms alatt",+ "probeFailed": "A teszt nem sikerült: {reason}","discoverTitle": "Modellek ezen a végponton","discoverHint": "Válaszd ki a regisztrálandó modelleket. A már hozzáadottak zárolva maradnak.","discoverEmpty": "Ez a végpont nem adott vissza modellt.",diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex e0f2212a..afdfae56 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -377,6 +377,9 @@"addAudioModel": "Tambahkan model audio","addingCustom": "Menambahkan…","discoverModels": "Ambil model",+ "probeNow": "Uji endpoint",+ "probeSuccess": "{model} diuji dalam {latency}ms",+ "probeFailed": "Pengujian gagal: {reason}","discoverTitle": "Model di endpoint ini","discoverHint": "Pilih model yang akan didaftarkan. Yang sudah ditambahkan tetap terkunci.","discoverEmpty": "Endpoint ini tidak mengembalikan model apa pun.",diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex cded40fb..da503081 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -377,6 +377,9 @@"addAudioModel": "Tinye ụdị ọdịyo","addingCustom": "Na-agbakwụnye…","discoverModels": "Weta ụdị",+ "probeNow": "Nwalee njedebe",+ "probeSuccess": "A nwalere {model} n'ime {latency}ms",+ "probeFailed": "Nnwale dara: {reason}","discoverTitle": "Ụdị dị na njedebe a","discoverHint": "Họrọ ụdị ị ga-edebanye. Ndị i tinyerelarị na-anọgide na-akpọchi.","discoverEmpty": "Njedebe a ewetaghị ụdị ọ bụla.",diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex 93487c22..05a0c967 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -377,6 +377,9 @@"addAudioModel": "Aggiungi modello audio","addingCustom": "Aggiunta…","discoverModels": "Recupera modelli",+ "probeNow": "Testa l'endpoint",+ "probeSuccess": "{model} testato in {latency} ms",+ "probeFailed": "Test non riuscito: {reason}","discoverTitle": "Modelli su questo endpoint","discoverHint": "Scegli i modelli da registrare. Quelli già aggiunti restano bloccati.","discoverEmpty": "Questo endpoint non ha restituito modelli.",diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex 77d5a76f..8fda9eef 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -377,6 +377,9 @@"addAudioModel": "オーディオモデルの追加","addingCustom": "追加中…","discoverModels": "モデルを取得",+ "probeNow": "エンドポイントをテスト",+ "probeSuccess": "{model} を {latency}ms でテストしました",+ "probeFailed": "テストに失敗しました: {reason}","discoverTitle": "このエンドポイントのモデル","discoverHint": "登録するモデルを選択してください。追加済みのモデルはロックされます。","discoverEmpty": "このエンドポイントはモデルを返しませんでした。",diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex a8fc095a..d19aa261 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -377,6 +377,9 @@"addAudioModel": "აუდიო მოდელის დამატება","addingCustom": "ემატება…","discoverModels": "მოდელების მიღება",+ "probeNow": "ბოლოწერტილის ტესტირება",+ "probeSuccess": "{model} შემოწმდა {latency}ms-ში",+ "probeFailed": "ტესტი ვერ შესრულდა: {reason}","discoverTitle": "მოდელები ამ ბოლოწერტილზე","discoverHint": "აირჩიე რეგისტრირებადი მოდელები. უკვე დამატებულები ჩაკეტილი რჩება.","discoverEmpty": "ამ ბოლოწერტილმა მოდელები არ დააბრუნა.",diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 055a33f9..362dcca8 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -377,6 +377,9 @@"addAudioModel": "បន្ថែមម៉ូដែលសំឡេង","addingCustom": "បន្ថែម...","discoverModels": "ទាញយកម៉ូដែល",+ "probeNow": "សាកល្បងចំណុចបញ្ចប់",+ "probeSuccess": "បានសាកល្បង {model} ក្នុងរយៈពេល {latency}ms",+ "probeFailed": "ការសាកល្បងបានបរាជ័យ៖ {reason}","discoverTitle": "ម៉ូដែលនៅចំណុចបញ្ចប់នេះ","discoverHint": "ជ្រើសរើសម៉ូដែលដើម្បីចុះឈ្មោះ។ ម៉ូដែលដែលបានបន្ថែមរួចនៅតែជាប់សោ។","discoverEmpty": "ចំណុចបញ្ចប់នេះមិនបានផ្តល់ម៉ូដែលណាមួយទេ។",diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex 4a61b952..54415ecc 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -377,6 +377,9 @@"addAudioModel": "ಆಡಿಯೋ ಮಾದರಿಯನ್ನು ಸೇರಿಸಿ","addingCustom": "ಸೇರಿಸಲಾಗುತ್ತಿದೆ...","discoverModels": "ಮಾದರಿಗಳನ್ನು ತರಿಸಿ",+ "probeNow": "ಎಂಡ್ಪಾಯಿಂಟ್ ಪರೀಕ್ಷಿಸಿ",+ "probeSuccess": "{model} ಅನ್ನು {latency}ms ನಲ್ಲಿ ಪರೀಕ್ಷಿಸಲಾಗಿದೆ",+ "probeFailed": "ಪರೀಕ್ಷೆ ವಿಫಲವಾಗಿದೆ: {reason}","discoverTitle": "ಈ ಎಂಡ್ಪಾಯಿಂಟ್ನ ಮಾದರಿಗಳು","discoverHint": "ನೋಂದಾಯಿಸಬೇಕಾದ ಮಾದರಿಗಳನ್ನು ಆರಿಸಿ. ಈಗಾಗಲೇ ಸೇರಿಸಿದವು ಲಾಕ್ ಆಗಿರುತ್ತವೆ.","discoverEmpty": "ಈ ಎಂಡ್ಪಾಯಿಂಟ್ ಯಾವ ಮಾದರಿಯನ್ನೂ ಹಿಂತಿರುಗಿಸಲಿಲ್ಲ.",diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex 5c9f27c7..a3efe35f 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -377,6 +377,9 @@"addAudioModel": "오디오 모델 추가","addingCustom": "추가 중…","discoverModels": "모델 가져오기",+ "probeNow": "엔드포인트 테스트",+ "probeSuccess": "{model} 테스트 완료 ({latency}ms)",+ "probeFailed": "테스트 실패: {reason}","discoverTitle": "이 엔드포인트의 모델","discoverHint": "등록할 모델을 선택하세요. 이미 추가된 모델은 잠긴 상태로 유지됩니다.","discoverEmpty": "이 엔드포인트가 모델을 반환하지 않았습니다.",diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex 43a79f9d..363ff429 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -377,6 +377,9 @@"addAudioModel": "Pridėti garso modelį","addingCustom": "Prideda...","discoverModels": "Gauti modelius",+ "probeNow": "Išbandyti galinį tašką",+ "probeSuccess": "{model} išbandytas per {latency} ms",+ "probeFailed": "Bandymas nepavyko: {reason}","discoverTitle": "Modeliai šiame galiniame taške","discoverHint": "Pasirink registruotinus modelius. Jau pridėti lieka užrakinti.","discoverEmpty": "Šis galinis taškas negrąžino modelių.",diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex 52f29e42..ba6708fa 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -377,6 +377,9 @@"addAudioModel": "ഓഡിയോ മോഡൽ ചേർക്കുക","addingCustom": "ചേർക്കുന്നു...","discoverModels": "മോഡലുകൾ എടുക്കുക",+ "probeNow": "എൻഡ്പോയിന്റ് പരീക്ഷിക്കുക",+ "probeSuccess": "{model} {latency}ms-ൽ പരീക്ഷിച്ചു",+ "probeFailed": "പരീക്ഷണം പരാജയപ്പെട്ടു: {reason}","discoverTitle": "ഈ എൻഡ്പോയിന്റിലെ മോഡലുകൾ","discoverHint": "രജിസ്റ്റർ ചെയ്യേണ്ട മോഡലുകൾ തിരഞ്ഞെടുക്കുക. ഇതിനകം ചേർത്തവ ലോക്ക് ആയി തുടരും.","discoverEmpty": "ഈ എൻഡ്പോയിന്റ് ഒരു മോഡലും നൽകിയില്ല.",diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex 2a07c351..a98311cc 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -377,6 +377,9 @@"addAudioModel": "ऑडिओ मॉडेल जोडा","addingCustom": "जोडत आहे...","discoverModels": "मॉडेल आणा",+ "probeNow": "एंडपॉइंटची चाचणी करा",+ "probeSuccess": "{model} ची चाचणी {latency}ms मध्ये झाली",+ "probeFailed": "चाचणी अयशस्वी झाली: {reason}","discoverTitle": "या एंडपॉइंटवरील मॉडेल","discoverHint": "नोंदणीसाठी मॉडेल निवडा. आधीच जोडलेली मॉडेल लॉक राहतात.","discoverEmpty": "या एंडपॉइंटने कोणतेही मॉडेल परत केले नाही.",diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex 00414ddd..8637db4e 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -377,6 +377,9 @@"addAudioModel": "Tambah model audio","addingCustom": "Menambah...","discoverModels": "Dapatkan model",+ "probeNow": "Uji endpoint",+ "probeSuccess": "{model} diuji dalam {latency}ms",+ "probeFailed": "Ujian gagal: {reason}","discoverTitle": "Model pada endpoint ini","discoverHint": "Pilih model untuk didaftarkan. Yang sudah ditambah kekal terkunci.","discoverEmpty": "Endpoint ini tidak mengembalikan sebarang model.",diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 99f71391..6ed88d0e 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -377,6 +377,9 @@"addAudioModel": "အသံမော်ဒယ် ထည့်ပါ","addingCustom": "ထပ်ထည့်နေသည်...","discoverModels": "မော်ဒယ်များ ရယူရန်",+ "probeNow": "အဆုံးမှတ်ကို စမ်းသပ်ရန်",+ "probeSuccess": "{model} ကို {latency}ms အတွင်း စမ်းသပ်ပြီးပါပြီ",+ "probeFailed": "စမ်းသပ်မှု မအောင်မြင်ပါ: {reason}","discoverTitle": "ဤအဆုံးမှတ်ရှိ မော်ဒယ်များ","discoverHint": "မှတ်ပုံတင်မည့် မော်ဒယ်များကို ရွေးပါ။ ထည့်ပြီးသားများမှာ သော့ခတ်ထားသည်။","discoverEmpty": "ဤအဆုံးမှတ်က မော်ဒယ်တစ်ခုမျှ မပြန်ပါ။",diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex 940655f1..30a22e84 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -377,6 +377,9 @@"addAudioModel": "अडियो नमूना थप्नुहोस्","addingCustom": "थप्दैछ...","discoverModels": "मोडेल ल्याउनुहोस्",+ "probeNow": "एन्डपोइन्ट परीक्षण गर्नुहोस्",+ "probeSuccess": "{model} {latency}ms मा परीक्षण गरियो",+ "probeFailed": "परीक्षण असफल भयो: {reason}","discoverTitle": "यो एन्डपोइन्टका मोडेलहरू","discoverHint": "दर्ता गर्ने मोडेलहरू छान्नुहोस्। पहिल्यै थपिएका लक रहन्छन्।","discoverEmpty": "यो एन्डपोइन्टले कुनै मोडेल फर्काएन।",diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex da6aebc3..d61cde15 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -377,6 +377,9 @@"addAudioModel": "Audiomodel toevoegen","addingCustom": "En ik voeg toe...","discoverModels": "Modellen ophalen",+ "probeNow": "Endpoint testen",+ "probeSuccess": "{model} getest in {latency} ms",+ "probeFailed": "Test mislukt: {reason}","discoverTitle": "Modellen op dit endpoint","discoverHint": "Kies de modellen om te registreren. Al toegevoegde blijven vergrendeld.","discoverEmpty": "Dit endpoint gaf geen modellen terug.",diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex 50355c2e..e6546e9d 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -377,6 +377,9 @@"addAudioModel": "Legg til lydmodell","addingCustom": "Legger til...","discoverModels": "Hent modeller",+ "probeNow": "Test endepunktet",+ "probeSuccess": "Testet {model} på {latency} ms",+ "probeFailed": "Testen mislyktes: {reason}","discoverTitle": "Modeller på dette endepunktet","discoverHint": "Velg modellene som skal registreres. Allerede lagt til forblir låst.","discoverEmpty": "Dette endepunktet returnerte ingen modeller.",diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex c8a7abf9..fad37279 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -377,6 +377,9 @@"addAudioModel": "ଅଡିଓ ମଡେଲ୍ ଯୋଡନ୍ତୁ","addingCustom": "ଯୋଡ଼ିବା...","discoverModels": "ମଡେଲ ଆଣନ୍ତୁ",+ "probeNow": "ଏଣ୍ଡପଏଣ୍ଟ ପରୀକ୍ଷା କରନ୍ତୁ",+ "probeSuccess": "{model} କୁ {latency}ms ରେ ପରୀକ୍ଷା କରାଗଲା",+ "probeFailed": "ପରୀକ୍ଷା ବିଫଳ ହେଲା: {reason}","discoverTitle": "ଏହି ଏଣ୍ଡପଏଣ୍ଟର ମଡେଲ","discoverHint": "ପଞ୍ଜୀକରଣ ପାଇଁ ମଡେଲ ବାଛନ୍ତୁ। ପୂର୍ବରୁ ଯୋଡ଼ାଯାଇଥିବା ମଡେଲ ଲକ୍ ରହିଥାଏ।","discoverEmpty": "ଏହି ଏଣ୍ଡପଏଣ୍ଟ କୌଣସି ମଡେଲ ଫେରାଇନାହିଁ।",diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex 8980ec6e..fa35edf2 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -377,6 +377,9 @@"addAudioModel": "ਆਡੀਓ ਮਾਡਲ ਸ਼ਾਮਲ ਕਰੋ","addingCustom": "ਜੋੜ ਰਿਹਾ ਹੈ...","discoverModels": "ਮਾਡਲ ਲਿਆਓ",+ "probeNow": "ਐਂਡਪੌਇੰਟ ਪਰਖੋ",+ "probeSuccess": "{model} ਨੂੰ {latency}ms ਵਿੱਚ ਪਰਖਿਆ ਗਿਆ",+ "probeFailed": "ਪਰਖ ਅਸਫਲ ਰਹੀ: {reason}","discoverTitle": "ਇਸ ਐਂਡਪੌਇੰਟ ਦੇ ਮਾਡਲ","discoverHint": "ਰਜਿਸਟਰ ਕਰਨ ਲਈ ਮਾਡਲ ਚੁਣੋ। ਪਹਿਲਾਂ ਜੋੜੇ ਮਾਡਲ ਲਾਕ ਰਹਿੰਦੇ ਹਨ।","discoverEmpty": "ਇਸ ਐਂਡਪੌਇੰਟ ਨੇ ਕੋਈ ਮਾਡਲ ਨਹੀਂ ਦਿੱਤਾ।",diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex cd8a34fe..1812a03c 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -377,6 +377,9 @@"addAudioModel": "Dodaj model audio","addingCustom": "Dodawanie…","discoverModels": "Pobierz modele",+ "probeNow": "Przetestuj punkt końcowy",+ "probeSuccess": "Przetestowano {model} w {latency} ms",+ "probeFailed": "Test nie powiódł się: {reason}","discoverTitle": "Modele w tym punkcie końcowym","discoverHint": "Wybierz modele do zarejestrowania. Już dodane pozostają zablokowane.","discoverEmpty": "Ten punkt końcowy nie zwrócił żadnych modeli.",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex 384176de..63b61c40 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -377,6 +377,9 @@"addAudioModel": "Adicionar modelo de áudio","addingCustom": "Adicionando…","discoverModels": "Buscar modelos",+ "probeNow": "Testar o endpoint",+ "probeSuccess": "{model} testado em {latency} ms",+ "probeFailed": "Falha no teste: {reason}","discoverTitle": "Modelos neste endpoint","discoverHint": "Escolha os modelos a registrar. Os já adicionados ficam bloqueados.","discoverEmpty": "Este endpoint não retornou nenhum modelo.",diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 57e587a9..e878641f 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -377,6 +377,9 @@"addAudioModel": "Adicionar modelo de áudio","addingCustom": "Acrescentando...","discoverModels": "Obter modelos",+ "probeNow": "Testar o endpoint",+ "probeSuccess": "{model} testado em {latency} ms",+ "probeFailed": "O teste falhou: {reason}","discoverTitle": "Modelos neste endpoint","discoverHint": "Escolha os modelos a registar. Os já adicionados ficam bloqueados.","discoverEmpty": "Este endpoint não devolveu nenhum modelo.",diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex a399df7f..e44588d7 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -377,6 +377,9 @@"addAudioModel": "Adaugă modelul audio","addingCustom": "Adăugând...","discoverModels": "Preia modelele",+ "probeNow": "Testează endpointul",+ "probeSuccess": "{model} testat în {latency} ms",+ "probeFailed": "Testul a eșuat: {reason}","discoverTitle": "Modele pe acest endpoint","discoverHint": "Alege modelele de înregistrat. Cele deja adăugate rămân blocate.","discoverEmpty": "Acest endpoint nu a returnat niciun model.",diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex c2f37807..1e7a0f31 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -377,6 +377,9 @@"addAudioModel": "Добавить аудиомодель","addingCustom": "Добавление…","discoverModels": "Получить модели",+ "probeNow": "Протестировать конечную точку",+ "probeSuccess": "{model} протестирован за {latency} мс",+ "probeFailed": "Не удалось выполнить тест: {reason}","discoverTitle": "Модели на этой точке доступа","discoverHint": "Выберите модели для регистрации. Уже добавленные остаются заблокированными.","discoverEmpty": "Эта точка доступа не вернула ни одной модели.",diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 1cc60c0f..3cf74e23 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -377,6 +377,9 @@"addAudioModel": "ශ්රව්ය ආකෘතිය එක් කරන්න","addingCustom": "එකතු කරමින්...","discoverModels": "ආකෘති ලබාගන්න",+ "probeNow": "අන්ත ලක්ෂ්යය පරීක්ෂා කරන්න",+ "probeSuccess": "{model} {latency}ms කින් පරීක්ෂා කරන ලදි",+ "probeFailed": "පරීක්ෂණය අසාර්ථක විය: {reason}","discoverTitle": "මෙම අන්තයේ ඇති ආකෘති","discoverHint": "ලියාපදිංචි කළ යුතු ආකෘති තෝරන්න. දැනටමත් එකතු කළ ඒවා අගුළු දමා පවතී.","discoverEmpty": "මෙම අන්තය ආකෘති කිසිවක් ලබා දුන්නේ නැත.",diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex 918045f1..16892728 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -377,6 +377,9 @@"addAudioModel": "Pridať zvukový model","addingCustom": "Pridávam...","discoverModels": "Načítať modely",+ "probeNow": "Otestovať endpoint",+ "probeSuccess": "Model {model} otestovaný za {latency} ms",+ "probeFailed": "Test zlyhal: {reason}","discoverTitle": "Modely na tomto endpointe","discoverHint": "Vyberte modely na registráciu. Už pridané zostávajú uzamknuté.","discoverEmpty": "Tento endpoint nevrátil žiadne modely.",diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex d788a503..ab48a849 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -377,6 +377,9 @@"addAudioModel": "Додајте аудио модел","addingCustom": "Додавање…","discoverModels": "Преузми моделе",+ "probeNow": "Тестирај крајњу тачку",+ "probeSuccess": "{model} тестиран за {latency} ms",+ "probeFailed": "Тест није успео: {reason}","discoverTitle": "Модели на овој крајњој тачки","discoverHint": "Изабери моделе за регистрацију. Већ додати остају закључани.","discoverEmpty": "Ова крајња тачка није вратила ниједан модел.",diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex 81669e51..d1befbb7 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -377,6 +377,9 @@"addAudioModel": "Lägg till ljudmodell","addingCustom": "Lägger till...","discoverModels": "Hämta modeller",+ "probeNow": "Testa endpointen",+ "probeSuccess": "Testade {model} på {latency} ms",+ "probeFailed": "Testet misslyckades: {reason}","discoverTitle": "Modeller på denna endpoint","discoverHint": "Välj modellerna som ska registreras. Redan tillagda förblir låsta.","discoverEmpty": "Denna endpoint returnerade inga modeller.",diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 2916eb60..2cf9e87a 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -377,6 +377,9 @@"addAudioModel": "Ongeza muundo wa sauti","addingCustom": "Inaongeza...","discoverModels": "Leta modeli",+ "probeNow": "Jaribu mwisho huu",+ "probeSuccess": "{model} imejaribiwa kwa {latency}ms",+ "probeFailed": "Jaribio limeshindwa: {reason}","discoverTitle": "Modeli kwenye mwisho huu","discoverHint": "Chagua modeli za kusajili. Zilizoongezwa tayari zinabaki zimefungwa.","discoverEmpty": "Mwisho huu haukurudisha modeli yoyote.",diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex 538a23bd..fbc093a3 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -377,6 +377,9 @@"addAudioModel": "ஆடியோ மாதிரியைச் சேர்க்கவும்","addingCustom": "சேர்க்கிறது…","discoverModels": "மாதிரிகளைப் பெறு",+ "probeNow": "எண்ட்பாயிண்டைச் சோதிக்கவும்",+ "probeSuccess": "{model} {latency}ms-இல் சோதிக்கப்பட்டது",+ "probeFailed": "சோதனை தோல்வியடைந்தது: {reason}","discoverTitle": "இந்த எண்ட்பாயிண்டில் உள்ள மாதிரிகள்","discoverHint": "பதிவு செய்ய வேண்டிய மாதிரிகளைத் தேர்வுசெய். ஏற்கனவே சேர்த்தவை பூட்டப்பட்டிருக்கும்.","discoverEmpty": "இந்த எண்ட்பாயிண்ட் எந்த மாதிரியையும் தரவில்லை.",diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex 8eb7e0e2..fdb8ac0c 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -377,6 +377,9 @@"addAudioModel": "ఆడియో మోడల్ని జోడించండి","addingCustom": "జోడిస్తోంది...","discoverModels": "మోడల్లను తెచ్చు",+ "probeNow": "ఎండ్పాయింట్ను పరీక్షించండి",+ "probeSuccess": "{model} {latency}ms లో పరీక్షించబడింది",+ "probeFailed": "పరీక్ష విఫలమైంది: {reason}","discoverTitle": "ఈ ఎండ్పాయింట్లోని మోడల్లు","discoverHint": "నమోదు చేయాల్సిన మోడల్లను ఎంచుకోండి. ఇప్పటికే జోడించినవి లాక్గా ఉంటాయి.","discoverEmpty": "ఈ ఎండ్పాయింట్ ఏ మోడల్నూ ఇవ్వలేదు.",diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex 0062e02e..64e15228 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -377,6 +377,9 @@"addAudioModel": "เพิ่มโมเดลเสียง","addingCustom": "กำลังเพิ่ม...","discoverModels": "ดึงรายการโมเดล",+ "probeNow": "ทดสอบเอนด์พอยต์",+ "probeSuccess": "ทดสอบ {model} ใน {latency}ms แล้ว",+ "probeFailed": "การทดสอบล้มเหลว: {reason}","discoverTitle": "โมเดลบนเอนด์พอยต์นี้","discoverHint": "เลือกโมเดลที่จะลงทะเบียน โมเดลที่เพิ่มไว้แล้วจะถูกล็อก","discoverEmpty": "เอนด์พอยต์นี้ไม่ได้ส่งโมเดลกลับมา",diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 74c8bd66..0f6550c4 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -377,6 +377,9 @@"addAudioModel": "Magdagdag ng audio model","addingCustom": "Dagdag pa...","discoverModels": "Kunin ang mga modelo",+ "probeNow": "Subukan ang endpoint",+ "probeSuccess": "Nasubukan ang {model} sa loob ng {latency}ms",+ "probeFailed": "Nabigo ang pagsubok: {reason}","discoverTitle": "Mga modelo sa endpoint na ito","discoverHint": "Piliin ang mga modelong irerehistro. Ang mga naidagdag na ay naka-lock.","discoverEmpty": "Walang ibinalik na modelo ang endpoint na ito.",diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex 6b6c8ee7..629af33c 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -377,6 +377,9 @@"addAudioModel": "Ses modeli ekle","addingCustom": "Ekleniyor…","discoverModels": "Modelleri getir",+ "probeNow": "Uç noktayı test et",+ "probeSuccess": "{model} {latency} ms içinde test edildi",+ "probeFailed": "Test başarısız oldu: {reason}","discoverTitle": "Bu uç noktadaki modeller","discoverHint": "Kaydedilecek modelleri seç. Zaten eklenenler kilitli kalır.","discoverEmpty": "Bu uç nokta hiç model döndürmedi.",diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex 3ac7594a..c2e53e6d 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -377,6 +377,9 @@"addAudioModel": "Додати модель звуку","addingCustom": "Додавання…","discoverModels": "Отримати моделі",+ "probeNow": "Протестувати кінцеву точку",+ "probeSuccess": "{model} протестовано за {latency} мс",+ "probeFailed": "Не вдалося виконати тест: {reason}","discoverTitle": "Моделі на цій кінцевій точці","discoverHint": "Виберіть моделі для реєстрації. Уже додані залишаються заблокованими.","discoverEmpty": "Ця кінцева точка не повернула жодної моделі.",diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex 77e73640..f292ba02 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -377,6 +377,9 @@"addAudioModel": "آڈیو ماڈل شامل کریں۔","addingCustom": "شامل کیا جا رہا ہے…","discoverModels": "ماڈلز حاصل کریں",+ "probeNow": "اینڈ پوائنٹ کی جانچ کریں",+ "probeSuccess": "{model} کی جانچ {latency}ms میں مکمل ہوئی",+ "probeFailed": "جانچ ناکام ہوگئی: {reason}","discoverTitle": "اس اینڈ پوائنٹ کے ماڈلز","discoverHint": "رجسٹر کرنے کے لیے ماڈلز منتخب کریں۔ پہلے سے شامل ماڈلز مقفل رہتے ہیں۔","discoverEmpty": "اس اینڈ پوائنٹ نے کوئی ماڈل واپس نہیں کیا۔",diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex d8de55ea..e5ba3ecf 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -377,6 +377,9 @@"addAudioModel": "Audio modelini qo'shing","addingCustom": "Qo‘shilmoqda…","discoverModels": "Modellarni olish",+ "probeNow": "Endpointni sinab ko‘rish",+ "probeSuccess": "{model} {latency}ms ichida sinovdan o‘tdi",+ "probeFailed": "Sinov muvaffaqiyatsiz tugadi: {reason}","discoverTitle": "Ushbu endpointdagi modellar","discoverHint": "Ro'yxatga olinadigan modellarni tanlang. Allaqachon qo'shilganlari qulflangan qoladi.","discoverEmpty": "Ushbu endpoint hech qanday model qaytarmadi.",diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex 3ecb3d4d..8f3b70dd 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -377,6 +377,9 @@"addAudioModel": "Thêm mô hình âm thanh","addingCustom": "Đang thêm…","discoverModels": "Lấy danh sách mô hình",+ "probeNow": "Kiểm thử endpoint",+ "probeSuccess": "Đã kiểm thử {model} trong {latency}ms",+ "probeFailed": "Kiểm thử thất bại: {reason}","discoverTitle": "Mô hình trên endpoint này","discoverHint": "Chọn mô hình cần đăng ký. Những mô hình đã thêm vẫn bị khóa.","discoverEmpty": "Endpoint này không trả về mô hình nào.",diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex 0cef1bf8..45d8e667 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -377,6 +377,9 @@"addAudioModel": "Ṣafikun awoṣe ohun","addingCustom": "Nfi…","discoverModels": "Gba àwọn àwòṣe",+ "probeNow": "Dán ibùdó náà wò",+ "probeSuccess": "A dán {model} wò ní {latency}ms",+ "probeFailed": "Ìdánwò kùnà: {reason}","discoverTitle": "Àwọn àwòṣe lórí ibùdó yìí","discoverHint": "Yan àwọn àwòṣe láti forúkọsílẹ̀. Àwọn tí o ti fikún ń wà ní títì.","discoverEmpty": "Ibùdó yìí kò dá àwòṣe kankan padà.",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex 635e982a..96803d4f 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -377,6 +377,9 @@"addAudioModel": "添加音频模型","addingCustom": "添加中…","discoverModels": "获取模型",+ "probeNow": "立即探测",+ "probeSuccess": "已探测 {model},耗时 {latency}ms",+ "probeFailed": "探测失败:{reason}","discoverTitle": "此端点上的模型","discoverHint": "选择要注册的模型。已添加的模型保持锁定。","discoverEmpty": "此端点未返回任何模型。",diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 315cacc7..9585e139 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -377,6 +377,9 @@"addAudioModel": "新增音訊模型","addingCustom": "新增中...","discoverModels": "取得模型",+ "probeNow": "立即探測",+ "probeSuccess": "已探測 {model},耗時 {latency}ms",+ "probeFailed": "探測失敗:{reason}","discoverTitle": "此端點上的模型","discoverHint": "選擇要註冊的模型。已新增的模型保持鎖定。","discoverEmpty": "此端點未回傳任何模型。",diff --git a/server/src/__tests__/routes/custom-model-discovery.test.ts b/server/src/__tests__/routes/custom-model-discovery.test.tsindex 845d5eb8..a7b4395b 100644--- a/server/src/__tests__/routes/custom-model-discovery.test.ts+++ b/server/src/__tests__/routes/custom-model-discovery.test.ts@@ -2,6 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import type { Express } from 'express';import { createApp } from '../../app.js';import { initDb, getDb } from '../../db/index.js';+import { setCooldown, isOnCooldown } from '../../services/ratelimit.js';import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';// #488: a relay's model list changes weekly, so the endpoint's own /models@@ -299,4 +300,107 @@ describe('median seeding for custom models (#488)', () => {expect([kept.intelligence_rank, kept.speed_rank, kept.size_label]).toEqual([1, 1, 'Frontier']);expect(chatModel('relay-b')!.size_label).toBe('Large');});++ it('probe fires one chat request at the REGISTERED model and records a success sample (#685 follow-up)', async () => {+ await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'relay-a', apiKey: 'relay-secret' });+ const keyId = customKeyIds()[0]!;+ setCooldown('custom', 'relay-a', keyId, 60_000);++ // A registered model means the probe already knows what to hit: one POST+ // /chat/completions, no discovery GET. Were discovery consulted, it would+ // put 'aaa-first' ahead of the registered 'relay-a'.+ const mock = vi.fn(async (url: string, init?: RequestInit) => {+ if (String(url).endsWith('/models')) {+ return jsonResponse({ object: 'list', data: [{ id: 'aaa-first' }, { id: 'relay-a' }] });+ }+ return jsonResponse({+ id: 'chatcmpl-probe',+ object: 'chat.completion',+ created: 0,+ model: 'relay-a',+ choices: [{ index: 0, message: { role: 'assistant', content: 'pong' }, finish_reason: 'stop' }],+ usage: { prompt_tokens: 3, completion_tokens: 1, total_tokens: 4 },+ });+ });+ globalThis.fetch = mock as any;++ const { status, body } = await post(app, '/api/keys/custom/probe', { keyId });++ expect(status).toBe(200);+ expect(body.modelId).toBe('relay-a');+ expect(typeof body.latencyMs).toBe('number');++ // One round trip: the registered model id makes the discovery GET pointless.+ expect(mock.mock.calls.filter(([u]) => String(u).endsWith('/models'))).toHaveLength(0);+ const chatCall = mock.mock.calls.find(([u]) => String(u).endsWith('/chat/completions'))!;+ expect(chatCall).toBeTruthy();+ expect((chatCall[1] as RequestInit).method).toBe('POST');+ const chatBody = JSON.parse(String((chatCall[1] as RequestInit).body)) as any;+ expect(chatBody.max_tokens).toBe(1);+ expect(chatBody.model).toBe('relay-a');++ // The successful probe wrote a request row the stats cache can fold in,+ // token counts included.+ const row = getDb().prepare(+ "SELECT status, input_tokens, output_tokens, latency_ms FROM requests WHERE platform = 'custom' AND model_id = 'relay-a' ORDER BY id DESC LIMIT 1",+ ).get() as { status: string; input_tokens: number; output_tokens: number; latency_ms: number };+ expect(row.status).toBe('success');+ expect(row.input_tokens).toBe(3);+ expect(row.output_tokens).toBe(1);++ // A real completion outranks a health ping: the cooldown is lifted.+ expect(isOnCooldown('custom', 'relay-a', keyId)).toBe(false);+ });++ it('probe falls back to discovery when the endpoint has no registered model (#685 follow-up)', async () => {+ await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'relay-a', apiKey: 'relay-secret' });+ const keyId = customKeyIds()[0]!;+ getDb().prepare("DELETE FROM fallback_config WHERE model_db_id IN (SELECT id FROM models WHERE platform = 'custom')").run();+ getDb().prepare("DELETE FROM models WHERE platform = 'custom'").run();++ const mock = vi.fn(async (url: string) => {+ if (String(url).endsWith('/models')) {+ return jsonResponse({ object: 'list', data: [{ id: 'relay-b', owned_by: 'acme' }] });+ }+ return jsonResponse({+ id: 'chatcmpl-probe',+ object: 'chat.completion',+ created: 0,+ model: 'relay-b',+ choices: [{ index: 0, message: { role: 'assistant', content: 'pong' }, finish_reason: 'stop' }],+ usage: { prompt_tokens: 1, completion_tokens: 1, total_tokens: 2 },+ });+ });+ globalThis.fetch = mock as any;++ const { status, body } = await post(app, '/api/keys/custom/probe', { keyId });++ expect(status).toBe(200);+ expect(body.modelId).toBe('relay-b');+ expect(mock.mock.calls.filter(([u]) => String(u).endsWith('/models'))).toHaveLength(1);+ const chatBody = JSON.parse(String((mock.mock.calls.find(([u]) => String(u).endsWith('/chat/completions'))![1] as RequestInit).body)) as any;+ expect(chatBody.model).toBe('relay-b');+ });++ it('probe failure surfaces the reason, records no sample and keeps the cooldown (#685 follow-up)', async () => {+ await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'relay-a', apiKey: 'relay-secret' });+ const keyId = customKeyIds()[0]!;+ setCooldown('custom', 'relay-a', keyId, 60_000);++ const mock = vi.fn(async (url: string) => {+ if (String(url).endsWith('/models')) {+ return jsonResponse({ object: 'list', data: [{ id: 'relay-a' }] });+ }+ return jsonResponse({ error: { message: 'upstream exploded' } }, 502);+ });+ globalThis.fetch = mock as any;++ const { status, body } = await post(app, '/api/keys/custom/probe', { keyId });++ expect(status).toBe(502);+ expect(String(body.error.message)).toContain('upstream exploded');+ const count = (getDb().prepare("SELECT COUNT(*) AS c FROM requests WHERE platform = 'custom'").get() as { c: number }).c;+ expect(count).toBe(0);+ expect(isOnCooldown('custom', 'relay-a', keyId)).toBe(true);+ });});diff --git a/server/src/routes/keys.ts b/server/src/routes/keys.tsindex 81ca1523..b6961678 100644--- a/server/src/routes/keys.ts+++ b/server/src/routes/keys.ts@@ -13,7 +13,7 @@ import { ensureModelInProfiles } from '../services/profile-models.js';import { getActiveCooldownsForKeys, clearCooldownsForKey } from '../services/ratelimit.js';import { resolveCustomEndpointKey, customEndpointKeyIds, siblingEndpointKeyId, endpointHasCredential } from '../services/custom-endpoint.js';import { customModelSeed } from '../services/custom-model-seed.js';-import { discoverEndpointModels, ModelDiscoveryError } from '../services/model-discovery.js';+import { discoverEndpointModels, probeEndpointModel, ModelDiscoveryError } from '../services/model-discovery.js';import { endpointScopeForBaseUrl, normalizeBaseUrl } from '../lib/endpoint-scope.js';export const keysRouter = Router();@@ -724,6 +724,73 @@ keysRouter.post('/custom/discover-models', async (req: Request, res: Response) =}});+// POST /custom/probe — fire one minimal real chat request at the endpoint so an+// unmeasured model gains a reliability/speed sample without waiting for natural+// traffic (#685 follow-up). Interactive: the operator is watching, so a bounded+// timeout and a clean error beat a silent 120s hang. Only a SUCCESSFUL probe+// writes a `requests` row (which the stats cache folds into the bandit); a+// failure (401 / timeout / unreachable) surfaces the reason and records nothing.+keysRouter.post('/custom/probe', async (req: Request, res: Response) => {+ const parsed = discoverModelsSchema.safeParse(req.body);+ if (!parsed.success) {+ res.status(400).json({ error: { message: parsed.error.errors.map(e => e.message).join(', ') } });+ return;+ }++ let endpoint: CustomEndpointRef;+ try {+ endpoint = resolveEndpointRef(parsed.data);+ } catch (err: any) {+ res.status(err.status ?? 400).json({ error: { message: err.message } });+ return;+ }++ if (await rejectUnsafeBaseUrl(endpoint.baseUrl, res)) return;++ const apiKey = parsed.data.apiKey?.trim() || endpoint.storedKey || 'no-key';++ // Probe a model actually REGISTERED on this endpoint when there is one — the+ // sample must feed the stats of a model the router can pick, not whatever id+ // happens to lead the upstream /models list. Any key of the pool counts+ // (#619), and knowing the id up front also skips the discovery round-trip.+ // Only an endpoint with nothing registered falls back to discovery.+ let registeredModelId: string | null = null;+ if (endpoint.keyId != null) {+ const db = getDb();+ const poolIds = [...customEndpointKeyIds(db, endpoint.keyId)];+ const placeholders = poolIds.map(() => '?').join(', ');+ const row = db.prepare(+ `SELECT model_id FROM models WHERE platform = 'custom' AND key_id IN (${placeholders}) ORDER BY id LIMIT 1`,+ ).get(...poolIds) as { model_id: string } | undefined;+ registeredModelId = row?.model_id ?? null;+ }++ try {+ const probe = await probeEndpointModel(endpoint.baseUrl, apiKey, registeredModelId);++ // Only a successful probe records a sample. The row mirrors what the proxy+ // writes on a real request so the decay-weighted stats cache picks it up.+ if (endpoint.keyId != null) {+ getDb().prepare(`+ INSERT INTO requests (platform, model_id, key_id, status, input_tokens, output_tokens, latency_ms, ttfb_ms, request_type)+ VALUES ('custom', ?, ?, 'success', ?, ?, ?, ?, 'chat')+ `).run(probe.modelId, endpoint.keyId, probe.inputTokens, probe.outputTokens, probe.latencyMs, probe.latencyMs);++ // A real completion just succeeded, which is stronger evidence than any+ // health ping — lift whatever cooldown was still holding the key back.+ clearCooldownsForKey(endpoint.keyId);+ }++ res.json({ modelId: probe.modelId, latencyMs: probe.latencyMs });+ } catch (err: any) {+ if (err instanceof ModelDiscoveryError) {+ res.status(err.status).json({ error: { message: err.message } });+ return;+ }+ res.status(502).json({ error: { message: `Probe failed: ${err?.message ?? 'unknown error'}` } });+ }+});+keysRouter.post('/custom', async (req: Request, res: Response) => {const parsed = customProviderSchema.safeParse(req.body);if (!parsed.success) {diff --git a/server/src/services/model-discovery.ts b/server/src/services/model-discovery.tsindex 28dff422..d3bff511 100644--- a/server/src/services/model-discovery.ts+++ b/server/src/services/model-discovery.ts@@ -1,5 +1,6 @@import { OpenAICompatProvider } from '../providers/openai-compat.js';import { isAbortLikeError } from '../lib/error-classify.js';+import type { ChatCompletionResponse } from '@freellmapi/shared/types.js';// ── Model discovery on a user's own custom endpoint (#488) ──────────────────//@@ -223,3 +224,59 @@ export async function discoverEndpointModels(baseUrl: string, apiKey: string): P}return parseModelCatalog(payload);}++/**+ * Fire one minimal real chat request at a custom endpoint to measure latency+ * and confirm the key works end-to-end ("probe now", #685 follow-up). When the+ * caller already knows which model to probe (a model registered on this+ * endpoint — the one whose bandit stats the sample feeds), it passes+ * `preferredModelId` and the discovery round-trip is skipped entirely; only an+ * endpoint with nothing registered falls back to discovering a model id.+ * Returns the probed model id, the round-trip latency and the token counts so+ * the caller can write a stats row; throws ModelDiscoveryError with a clean+ * message on any failure (the caller must NOT record a sample then).+ */+export async function probeEndpointModel(+ baseUrl: string,+ apiKey: string,+ preferredModelId?: string | null,+): Promise<{ modelId: string; latencyMs: number; inputTokens: number; outputTokens: number }> {+ let modelId = preferredModelId?.trim() || null;+ if (!modelId) {+ const discovered = await discoverEndpointModels(baseUrl, apiKey);+ if (discovered.length === 0) {+ throw new ModelDiscoveryError(502, 'The endpoint returned no models to probe.');+ }+ modelId = discovered[0].id;+ }++ const provider = new OpenAICompatProvider({+ platform: 'custom',+ name: 'Custom (OpenAI-compatible)',+ baseUrl,+ // Interactive: the operator is watching, so a bounded timeout beats the+ // 120s custom-provider chat default.+ timeoutMs: 30_000,+ });++ const startedAt = Date.now();+ let response: ChatCompletionResponse;+ try {+ response = await provider.chatCompletion(+ apiKey,+ [{ role: 'user', content: 'ping' }],+ modelId,+ { max_tokens: 1 },+ );+ } catch (err) {+ const reason = isAbortLikeError(err) ? 'timed out' : ((err as Error)?.message ?? 'unknown error');+ throw new ModelDiscoveryError(502, `Probe request to ${modelId} failed: ${reason}`);+ }++ return {+ modelId,+ latencyMs: Date.now() - startedAt,+ inputTokens: response.usage?.prompt_tokens ?? 0,+ outputTokens: response.usage?.completion_tokens ?? 0,+ };+}