Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(settings): keep the browsed whisper-list validation off foreign local models
Gabriel Stein204e83b76053
diff --git a/src/components/TranscriptionModelPicker.tsx b/src/components/TranscriptionModelPicker.tsxindex 8536f6174..d571d2df0 100644--- a/src/components/TranscriptionModelPicker.tsx+++ b/src/components/TranscriptionModelPicker.tsx@@ -447,18 +447,19 @@ export default function TranscriptionModelPicker({useEffect(() => {onLocalModelSelectRef.current = onLocalModelSelect;}, [onLocalModelSelect]);+const validateAndSelectModel = useCallback((loadedModels: LocalModel[]) => {const current = selectedLocalModelRef.current;if (!current) return;- const downloaded = loadedModels.filter((m) => m.downloaded);- const isCurrentDownloaded = loadedModels.find((m) => m.model === current)?.downloaded;+ // The whisper list loads on a mere browse of the Whisper tab, so the+ // committed selection can be a foreign id (a Parakeet model while nvidia+ // is committed) — only replace ids this list owns.+ const currentEntry = loadedModels.find((m) => m.model === current);+ if (!currentEntry || currentEntry.downloaded) return;- if (!isCurrentDownloaded && downloaded.length > 0) {- onLocalModelSelectRef.current(downloaded[0].model);- } else if (!isCurrentDownloaded && downloaded.length === 0) {- onLocalModelSelectRef.current("");- }+ const downloaded = loadedModels.filter((m) => m.downloaded);+ onLocalModelSelectRef.current(downloaded[0]?.model ?? "", "whisper");}, []);const loadLocalModels = useCallback(() => {