Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

Merge remote-tracking branch 'upstream/main' into fix/notes-local-model-download-state

Dustin Persekc232a859c0d1
diff --cc src/hooks/useModelDownload.ts
index f27333c07,0706cf69e..4807a9ac6
--- a/src/hooks/useModelDownload.ts
+++ b/src/hooks/useModelDownload.ts
@@@ -289,22 -225,8 +289,21 @@@ export function useModelDownload(
}
} else {
const result = (await window.electronAPI?.modelDownload?.(modelId)) as unknown as
- | { success: boolean; error?: string; code?: string }
- | undefined;
+ { success: boolean; error?: string; code?: string } | undefined;
if (result && !result.success && result.error) {
+ if (result.code === "DOWNLOAD_IN_PROGRESS") {
+ keepActiveDownloadState = true;
+ const hydrated = await hydrateActiveLLMDownload(modelId);
+ if (!hydrated) {
+ setDownloadProgress({ percentage: 0, downloadedBytes: 0, totalBytes: 0 });
+ }
+ toast({
+ title: t("hooks.modelDownload.downloadInProgress.title"),
+ description: t("hooks.modelDownload.downloadInProgress.description"),
+ });
+ return;
+ }
+
const msg = getDownloadErrorMessage(t, result.error, result.code);
setDownloadError(msg);
showAlertDialog({
diff --cc src/types/electron.ts
index 3b7b55c0e,555e82a2d..8350c7bf1
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@@ -1,4 -1,4 +1,5 @@@
+import type { ModelDefinition } from "../models/ModelRegistry";
+ import type { TinfoilCatalogModel } from "../models/tinfoilModels";
export type LocalTranscriptionProvider = "whisper" | "nvidia";