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(streaming): attach NO_API code when OpenWhispr API URL is unconfigured (#740)
eganc6bd135ec759d
diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.jsindex ef2d62184..00c27e709 100644--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@ -4072,7 +4072,11 @@ class IPCHandlers {const fetchRealtimeToken = async (event, options, { streams } = {}) => {const postServerToken = async (path, body = {}) => {const apiUrl = getApiUrl();- if (!apiUrl) throw new Error("OpenWhispr API URL not configured");+ if (!apiUrl) {+ const err = new Error("OpenWhispr API URL not configured");+ err.code = "NO_API";+ throw err;+ }const authHeader = await getAuthHeader(event);if (!Object.keys(authHeader).length) throw new Error("Not authenticated");const url = `${apiUrl}${path}`;